creation of user & Changing password for existing
HI All,
I need to Create Users in LDAP server, using ADSI. I tried the following Code. But It gives error "General Access Denied error".
Set ou = GetObject("LDAP://Fathima/OU=People, DC=Fathima")
Set usr = ou.Create("user", "CN=John Smith")
'--- Mandatory Attributes----
usr.Put "objectClass", "top"
usr.Put "objectClass", "Person"
usr.Put "objectClass", "organizationalPerson"
usr.Put "objectClass", "inetorgperson"
usr.Put "uid", "u3"
usr.Put "userpassword", "password"
usr.Put "sn", "u3"
usr.SetInfo
Can anybody post code snippet for the login into ldap server Account, creation of user & Changing password for existing user account in LDAP server using ADSI.
Thanks in advance
kkkfff
|