Thursday, December 20, 2012

Active directory login from Zend

After spending hours solving this issue,
and ive found that each different company have different active directory path setting.

For login purpose, the main concern are the baseDn.
Some uses this:
CN=Users,DC=EXAMPLE,DC=COM

Some uses this:
OU=Users,DC=EXAMPLE,DC=COM

And event this:
OU=Users,OU=.User Accounts,DC=EXAMPLE,DC=COM

Example of Zend 1 config in yaml:

ldap:
    server1:
      host: EXAMPLE.LOCAL
      accountDomainName: EXAMPLE.LOCAL
      accountDomainNameShort: EXAMPLE
      baseDn: OU=Users,OU=.User Accounts,DC=EXAMPLE,DC=LOCAL
      bindRequiresDn: false


No comments: