Hi,
I’m using LDAP for authentication a while now, but due to restructering of the LDAP tree we changed from one mail user tree to several trees with aliases to th real users.
Example:
dc=company
|
— ou=users
| |
| — user1
|
— ou=groups
|
|
— dc=application
|
— ou=openfire
|
— alias to user1
Ok so the problem is the resolving from alias to the user dn, openfire always adds this base dn to the resolved user dn.
Example:
basedn: ou=openfire,dc=application,dc=company
alias to resolve: cn=user1,ou=openfire,dc=application,dc=company
openfire resolved user dn: cn=user1,ou=users,dc=company,ou=openfire,dc=application,dc=company
So for authentication that resolved user dn can’t work because it don’t exists!
I tried to set the ldap.alternateBaseDN to ‘’ but that didn’t work too, because openfire now try to auth with ‘cn=user1,ou=users,dc=company,’. Yes the comma behind dc=company is not my fault, but the dn which openfire uses to auth the user against LDAP, which isn’t a valid dn so the auth failes, too.
What can I do to get rid of these miss resolving. I think there is no easy fix because I think it’s java ldap library problem, but maybe someone got a nice hotfix.
Thanks in advance.
Simon