I have an Organizational Unit in my Active Directory having '//' in 开发者_JAVA技巧its name for example 'Turbo//Boost'.
and when I try to find users using directory searcher it throws error
Unknown Error(0x80005000)
Any idea how can I solve this issue?
Thanks.
If you have forward slashes in your OU name, you need to "escape" those characters when searching by prepending them with a backslash.
So try searching for : ou=Turbo\/\/Boost
- that should work.
See the Characters to Escape page by Richard Mueller for a complete list of all "dangerous" characters that need to be escaped in LDAP.
I think its a bad practice to have // in a AD objects name. Its also used in netbios names.
精彩评论