Note that there are some explanatory texts on larger screens.

plurals
  1. POZend: ApacheDS and Windows ldap authentication issues
    text
    copied!<p>I am trying to integrate ldap authentication to one of my Zend project. </p> <p>I tried using ApacheDS and Windows ldap for windows 7. I can connect to the both ldap servers, but the authentication is not getting successful.</p> <p>My development environment is:</p> <ul> <li>Windows 7</li> <li>IIS Server</li> <li>PHP &amp; MSSQL</li> <li>ApacheDS or Windows LDAP</li> </ul> <p>When I am using ApachDS I am getting the following error:</p> <pre><code>object(Zend_Auth_Result)#122 (3) { ["_identity":protected] =&gt; string(9) "mshakeel1" ["_messages":protected] =&gt; array(4) { [0] =&gt; string(28) "Account not found: mshakeel1" [1] =&gt; string(71) "0x20: No object found for: (&amp;(objectClass=posixAccount)(uid=mshakeel1))" [2] =&gt; string(188) "host=localhost,accountDomainName=foo.net,accountDomainNameShort=FOO,accountCanonicalForm=3,username=uid=admin,ou=system,password=*****,baseDn=ou=users,ou=system,bindRequiresDn=1,port=10389" [3] =&gt; string(104) "mshakeel1 authentication failed: 0x20: No object found for: (&amp;(objectClass=posixAccount)(uid=mshakeel1))" } } </code></pre> <p>My application.ini is as follows for ApacheDS:</p> <pre><code>ldap.server.host = localhost ldap.server.accountDomainName = foo.net ldap.server.accountDomainNameShort = FOO ldap.server.accountCanonicalForm = 3 ldap.server.username = "uid=admin,ou=system" ldap.server.password = 'secret' ldap.server.baseDn = "ou=users,ou=system" ldap.server.bindRequiresDn = true ldap.server.port = 10389 </code></pre> <p>When I using Windows LDAP I am getting the following error:</p> <pre><code>object(Zend_Auth_Result)#122 (3) { ["_code":protected] =&gt; int(-3) ["_identity":protected] =&gt; string(9) "mshakeel1" ["_messages":protected] =&gt; array(4) { [0] =&gt; string(19) "Invalid credentials" [1] =&gt; string(129) "0x31 (Invalid credentials; 8009030C: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 2030, v1db0): W\mshakeel1" [2] =&gt; string(139) "host=ABC-PC-SH,useStartTls=,accountDomainName=w.net,accountDomainNameShort=W,accountCanonicalForm=3,baseDn=CN=Employees,DC=ABC,DC=SHGroup" [3] =&gt; string(162) "mshakeel1 authentication failed: 0x31 (Invalid credentials; 8009030C: LdapErr: DSID-0C0903A9, comment: AcceptSecurityContext error, data 2030, v1db0): W\mshakeel1" } </code></pre> <p>My application.ini is as follows for Windows LDAP:</p> <pre><code>ldap.server.host = ABC-PC-SH ldap.server.useStartTls = false ldap.server.accountDomainName = w.net ldap.server.accountDomainNameShort = W ldap.server.accountCanonicalForm = 3 ldap.server.baseDn = "CN=Employees,DC=ABC,DC=SHGroup" </code></pre> <p>Can anyone give me a hint to fix this please? Thanks.</p> <p>Edit: Thought add some more information.. My ApacheDS structure as shown below.</p> <p><img src="https://i.stack.imgur.com/5SUJv.png" alt="enter image description here"></p> <p>And my windows light weight AD service is as shown below.</p> <p><img src="https://i.stack.imgur.com/C3l6R.png" alt="enter image description here"></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload