Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How Do I Use CREATEMAILBOX Method with LDAP?
Message
From
04/10/2007 22:23:38
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
How Do I Use CREATEMAILBOX Method with LDAP?
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01258795
Message ID:
01258795
Views:
71
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
Map
View

Click here to load this message in the networking platform