471,853 Members | 1,038 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,853 software developers and data experts.

DirectorySearcher: Problem with receiving Account Name (the slash maybe the reason)

Hi!

I do have a problem while retrieving the AccountName of Members of a Active Directory-Group.

I get the members with the DirectorySearcher (of the System.DirectoryServices namespace).
It all works well with member-entries like:
"CN=blablabla,OU=Users,OU=xxx,OU=xx,DC=xx,DC=xxxxx x,DC=com"
or
"CN=lastname\,firstname info&X moreinfo-A,OU=Users,OU=xxx,OU=xx,DC=xx,DC=xxxxxxx,DC=com"

but not with:

"CN=lastname\,firstname xxx/xxx moreinfo-B,OU=Users,OU=bib,OU=xx,DC=xx,DC=xxxxxxx,DC=com"

I suppose the slash between "xxx/xxx" produces the error.

I this a bug, any ideas? I can not change the AD-entries for the users....

thanks in advance

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
Nov 20 '05 #1
1 1310
I got this solution from another newsgroup:

I have to mask the '/' with an '\'.
This seems to be a bug in the directory searcher class, beacuse it masks the
',' automatically, but not the '/'.
"Robin Bully" <el********@gmx.de> schrieb im Newsbeitrag
news:uP**************@TK2MSFTNGP11.phx.gbl...
Hi!

I do have a problem while retrieving the AccountName of Members of a Active Directory-Group.
I get the members with the DirectorySearcher (of the System.DirectoryServices namespace). It all works well with member-entries like:
"CN=blablabla,OU=Users,OU=xxx,OU=xx,DC=xx,DC=xxxxx x,DC=com"
or
"CN=lastname\,firstname info&X moreinfo-A,OU=Users,OU=xxx,OU=xx,DC=xx,DC=xxxxxxx,DC=com"
but not with:

"CN=lastname\,firstname xxx/xxx moreinfo-B,OU=Users,OU=bib,OU=xx,DC=xx,DC=xxxxxxx,DC=com"
I suppose the slash between "xxx/xxx" produces the error.

I this a bug, any ideas? I can not change the AD-entries for the users....

thanks in advance

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &

ASP.NET resources...
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.