Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Re: LDAP query fails... because of parentheses?

Reply
Thread Tools Display Modes

Re: LDAP query fails... because of parentheses?

 
 
Abel Martinez
Guest
Posts: n/a

 
      03-01-2009

"Highlander" <> wrote in message
news:043c069b-cc9c-45df-b7bd-...
> (watch for word wrap below)
>
> Hello all.
>
> I'm using the script found here:
> http://www.microsoft.com/technet/scr...5/hey0419.mspx
>
> When I run it, as it cycles through all the members of the Group, if
> the "strUser" variable is something like this:
> CN=Smith\, John,CN=Users,DC=Name1,DC=ad,DC=Name2,DC=com
>
> ...there's no problem.
>
> But when the "strUser" variable is this:
> CN=Doe\, Jane (LIFE U/W),CN=Users,DC=Name1,DC=ad,DC=Name2,DC=com
>
> Then the script blows up, on this line:
> Set objMember = GetObject("LDAP://" & strUser)
>
> With this error message:
> (null): 0x80005000
>
> The obvious difference is that the strUser variable in question
> contains parentheses. Anyone know a fix for this?
>
> Any help would be greatly appreciated. Thanks!
>
> - Dave


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LDAP query to speficied LDAP server on TCP port 389 failed Shash DNS Server 1 05-29-2009 04:16 PM
Re: LDAP query fails... because of parentheses? Richard Mueller [MVP] Scripting 0 02-24-2009 03:59 PM
Exchage LDAP Query Fails Paul Active Directory 3 05-20-2008 04:12 PM
LDAP Query witn netbios name fails in 2003 sachin Active Directory 7 03-05-2005 03:10 PM
authenticated LDAP query fails with 'permission denied' error :( Akhlaq Khan Active Directory 2 08-24-2004 07:24 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59