This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (5 pts)
3 Replies Last post: Jul 29, 2008 4:49 PM by Todd Getz  
Travis Bronze 5 posts since
Jul 16, 2008
Currently Being Moderated

Jul 23, 2008 6:12 PM

Users with a " / " in their display name won't import from AD

 

I understand that the /   "forward slash" is an escape character for ADSI, but not for LDAP.

 

 

Does Openfire use the ADSI, if not, why does it fail to import users with a forward slash?

 

 

Todd Getz KeyContributor 1,925 posts since
Apr 2, 2007
Currently Being Moderated
Jul 24, 2008 7:53 AM in response to: Travis
Re: Users with a " / " in their display name won't import from AD

You have already asked this question.  I gave you the answer:

 

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.

 

Short of writing special code to automatically escape this character if found in the username there is no work around for your issue.  Just because other programs have written this code does not make it the proper solution.  In fact it encourages people to continue to use non-valid characters.

Todd Getz KeyContributor 1,925 posts since
Apr 2, 2007
Currently Being Moderated
Jul 29, 2008 4:49 PM in response to: Travis
Re: Users with a " / " in their display name won't import from AD

http://technet2.microsoft.com/windowsserver/en/library/8196d68e-776a-4bbc-99a6-d 8c19f36ded41033.mspx?mfr=true

 

Note

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.

More Like This

  • Retrieving data ...