General information
Category:
Windows API functions
Title:
How Do I Use CREATEMAILBOX Method with LDAP?
objuser = objOU.CREATE("User", "cn="+cfullname)
objuser.Put("cn", cfullname)
objuser.Put("sAMAccountName", calias)
objuser.Put("userPrincipalName", cemail)
objuser.Put("givenName", cfirstname)
objuser.Put("sn", clastname)
objuser.SetInfo
objuser.AccountDisabled = .f.
objuser.SetPassword(cpassword)
objuser.SetInfo
objuser.Put("userAccountControl",Bitor(objuser.GET("userAccountControl"), 65536))
objuser.SetInfo
* Create mailbox
objuser.CreateMailbox(chomemdb)
objuser.SetInfo
Above is code to create a user in LDAP, chomemdb is properly defined but it does not seem to work properly...
objuser.CreateMailbox(chomemdb) gives a OLE error code 0x80020006: unknown name
any ideas?
David
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only