Hi,
I am creating edirectory users using vbscript (see below) but setting the password is not working.
Can anyone help?
thanks
Set Dsobj = GetObject("LDAP:")
Set treeobj = Dsobj.OpenDSObject("LDAP://x.x.x.x/, "cn=admin", "pwd", 32)
Set userobj = treeobj.Create("user", "cn=testuser")
userobj.put "passwordRequired", "false"
userobj.put "passwordMinimumLength", 6
userobj.put "LoginGraceLimit", 6
userobj.put "LoginGraceRemaining", 6
userobj.put "passwordAllowChange", "TRUE"
userobj.put "passwordUniqueRequired", "TRUE"
userobj.put "sn", "lastname"
userobj.setinfo
The code below to set the password for that user is not working.
userobj.getinfo
userobj.setpassword "testpwd"
userobj.setinfo

Today's Posts
Mark All Forums Read

LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks