Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How Do I Use CREATEMAILBOX Method with LDAP?
Message
De
04/10/2007 22:23:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
How Do I Use CREATEMAILBOX Method with LDAP?
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01258795
Message ID:
01258795
Vues:
70
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
Répondre
Fil
Voir

Click here to load this message in the networking platform