开发者

How to fetch users from an Active Directory Organisational Unit having '//' in its name

开发者 https://www.devze.com 2023-04-05 16:17 出处:网络
I have an Organizational Unit in my Active Directory having \'//\' in 开发者_JAVA技巧its name for example \'Turbo//Boost\'.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消