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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

One User getting an Error : LDAP Object creation

Status
Not open for further replies.

ncotton

IS-IT--Management
Jan 27, 2006
2,841
GB
Hey,
I have just ONE user that is getting an error message on this section of a logon script. Anyone have any ideas

Code:
Set oSysInfo = CreateObject("ADSystemInfo")
sUserAdsPath = oSysInfo.UserName
Set objUser = GetObject("LDAP://" & sUserAdsPath)

Neil J Cotton
Technical Consultant
Anix
 
What is it you are trying to do with the logon script?.IF you can try and post the whole script.
I would also find out from him, when he is entering his credentials is he putting DOMAIN\username or just his username. That could be causing some errors. I had that happen to me..
 
It's to bind the User to the LDAP provider, to later assign the users home directory.

I would image he just logs on with his username, and password, with the domain set. I've never known anyone specify domain in their username of a Windows XP Logon. As there is the option to select which domain/local account they logon to.

Neil J Cotton
Technical Consultant
Anix
 
WScript.echo the sUserAdsPath. Check what it is for the one that works and what it is for the one that doesn't work. It may be caused by some strange registry setting.

I normally specify the domain as I use several networks with varying accessibility rights. Normally get round logging out and in as a different user by using runas.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top