tag:blogger.com,1999:blog-6436041520035693228.post8636987024116595238..comments2017-04-20T09:16:46.436-07:00Comments on Technical Thoughts of Another Idle Fellow: AD / OD Plugin - Some tweaks!Idle Thoughts of Another Fellowhttp://www.blogger.com/profile/03145960192462398528noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-6436041520035693228.post-2782825591408600642012-07-18T01:36:19.016-07:002012-07-18T01:36:19.016-07:00Hi Tristan
I haven't tried this with that rele...Hi Tristan<br />I haven't tried this with that release of RS yet.<br />Can you give me any more info on the error?Idle Thoughts of Another Fellowhttps://www.blogger.com/profile/03145960192462398528noreply@blogger.comtag:blogger.com,1999:blog-6436041520035693228.post-90168728881080184982012-07-17T02:46:51.167-07:002012-07-17T02:46:51.167-07:00Thanks for your work on this great plugin! Unfortu...Thanks for your work on this great plugin! Unfortunately we're having trouble getting it to work for the latest version of ResourceSpace (v3428) and our Active Directory server.<br /><br />We had it working before, and can't work out why it's no longer working - we keep getting an error now on the plugin configuration page;<br /><br />Error: Could not bind to AD, please check credentials .<br /><br />We've made a couple of edits to get this far;<br /><br />FIRST EDIT (As from your blog)<br /><br />Domain Login<br />When using Active Directory, the user is required to login with the format user@domain.<br />The reason for this is that the plugin is designed to work in an environment with cross domain trusts.<br />If you don't have multiple domains, then it's possible to change this behaviour by hardcoding the domain name into ldap_class.php<br /><br />Change line 89 in ldap_class.php from:<br />$this->ldaprdn = $username;// ."@".$userContainer;<br />to:<br />$this->ldaprdn = $username ."@". "domainName";<br /><br />Change line 103 from:<br />$filter="(samaccountname=".$usercn.")";<br />to<br />$filter="(samaccountname=".$username.")";<br /><br /><br />SECOND EDIT (As from the ResourceSpace forums)<br /><br />The solution was to insert into hooks/ldap_class.php <br />after line 59 (ldap_set_option($this->ldapconn, <br />LDAP_OPT_PROTOCOL_VERSION, 3);) <br />following code: <br />ldap_set_option($this->ldapconn, LDAP_OPT_REFERRALS, 0);<br /><br />Before when we made these edits we could get it working fine - any ideas how we might getting it working with the latest version of Resourcespace?<br /><br />Any help would be greatly appreciated!<br /><br />Thanks,<br />Tristan.eatechhttps://www.blogger.com/profile/16034338472632105314noreply@blogger.com