The forward slash is a special character that LDAP normally uses for internal purposes, as a separator between certain bits of the LDAP string. That’s why it gets confused if an object name suddenly contains a /
You can try to “escape” it with a \ - so replace your forward slash with a backslash-forward slash combo.
This also applies to a number of other special chars in LDAP, such as comma (,), dot (.), equal sign (=), and a few more as you yourself have mentioned.
Here is some info that suggests there is an issue with forward slashes, and the ADSI, http://www.rlmueller.net/CharactersEscaped.htm although my co-workers tell me that we are using other apps making LDAP queries, and not having any difficulties with the / 's.
I changed a forward slash to a backslash, it was escaped by default, and worked.
This should work for a solution, I was hoping I wouldn’t have to remove them all together, you’d be surprised how particular some people are about how there name and title are displayed.
The forward slash is still an issue in our organization. There’s no way it’s going to be changed since we’re an organization of 100,000+ users and the forward slash is used for all contractor accounts.
I’ve verified that it’s the slash causing the problem because I had my AD guy temporarily remove it from displayName and cn on my account.
displayName and
As others have mentioned, we have other apps authenticating against AD that don’t seem to have this problem.
I know OpenFire uses Java… here is a bug report on Sun’s site about slashes in JNDI… not sure if it’s relevant, but it does give more evidence that a forward slash (/) is valid in an AD cn and displayName: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4307193
•
If the name of a container includes a forward slash character (/), the system requires an escape character in the form of a backslash () to distinguish between forward slashes that separate elements of the canonical name and the forward slash that is part of the container name. For example, if the name of an OU is Promotions/Northeast and the name of the domain is proseware.com, the canonical name is displayed as proseware.com/Promotions/Northeast.
Wow, that sucks. There’s no way I’ll convince my organization to make this change. It would need to go to the parent company and go global… I guess Openfire is out for us.