473,237 Members | 1,281 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,237 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 1348
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: MatsL | last post by:
Hi, I saw that some other people posted questions about regular expressions here so I thought I would do the same. I'm trying to parse an url to different parts. I want the file name and path to...
2
by: Jim in Arizona | last post by:
I'm trying to do a check to see if a specific active directory user account exists in active directory AND a specific group. I can't seem to get the filter down right. I can do this to find a...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

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.