Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VBScript and Active Directory, Characters with Accents

Status
Not open for further replies.

SW2004

Technical User
Jul 13, 2004
24
GB
Hi all,

I’m using the following VBscript to find a user within Active Directory which works fine so long as the CN value doesn’t contain a character with an accent (French, German etc), in the example below I’ve used Léo Apotheker, unfortunately the letter é produces an ‘Object not found error’. Does anyone have any idea what is going on here? I suspect this is an LDAP AD problem but I'm not sure.

Many thanks
Steven

Set dso = GetObject("LDAP:")
Set objUser = dso_OpenDSObject( _
"LDAP://APHRODITE/CN=LéoApotheker,OU=Staff,DC=Domain,DC=Com", _
"Domain\User", _
"password", _
ADS_SECURE_AUTHENTICATION + ADS_SERVER_BIND)
objUser.AllowLogon = Disabled
objUser.SetInfo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top