note 32187 added to function.ldap-add

From: Date: Mon, 19 May 2003 23:52:11 +0000
Subject: note 32187 added to function.ldap-add
Groups: php.notes 
Request: Send a blank email to php-notes+get-48629@lists.php.net to get a copy of this message
In response to jharnett's question about accounts disabled by default from ldap_add, we have found a solution. The attribute userAccountControl contains a value that includes whether the account is disabled or enabled. The default for us is 546; when we changed that to 544 the account became enabled. Changing whatever value is in userAccountControl by 2 seems to enable or disable the account. The following code worked for us to create a new user with an enabled account: $adduserAD["userAccountControl"] = "544"; We just added this element to the above example's array. ---- Manual Page -- http://www.php.net/manual/en/function.ldap-add.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+32187 Approve Note -- http://master.php.net/manage/user-notes.php?action=approve+32187&report=yes Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+32187&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+32187&report=yes

« previous php.notes (#48629) next »