Lines Matching full:if

72     * If you specify a password here, this can only be performed over SSL
80if (!array_key_exists("username", $attributes)){ return "Missing compulsory field [username]"; }
81if (!array_key_exists("firstname", $attributes)){ return "Missing compulsory field [firstname]"; }
82if (!array_key_exists("surname", $attributes)){ return "Missing compulsory field [surname]"; }
83 if (!array_key_exists("email", $attributes)){ return "Missing compulsory field [email]"; }
84if (!array_key_exists("container", $attributes)){ return "Missing compulsory field [container]"; }
85 if (!is_array($attributes["container"])){ return "Container attribute must be an array."; }
87if (array_key_exists("password",$attributes) && (!$this->adldap->getUseSSL() && !$this->adldap->ge…
91 if (!array_key_exists("display_name", $attributes)) {
109 if (!$attributes["enabled"]) {
120 if ($result != true) {
137 if (is_array($options)) {
138 if (in_array("SCRIPT",$options)){ $val=$val+1; }
139 if (in_array("ACCOUNTDISABLE",$options)){ $val=$val+2; }
140 if (in_array("HOMEDIR_REQUIRED",$options)){ $val=$val+8; }
141 if (in_array("LOCKOUT",$options)){ $val=$val+16; }
142 if (in_array("PASSWD_NOTREQD",$options)){ $val=$val+32; }
145 if (in_array("ENCRYPTED_TEXT_PWD_ALLOWED",$options)){ $val=$val+128; }
146 if (in_array("TEMP_DUPLICATE_ACCOUNT",$options)){ $val=$val+256; }
147 if (in_array("NORMAL_ACCOUNT",$options)){ $val=$val+512; }
148 if (in_array("INTERDOMAIN_TRUST_ACCOUNT",$options)){ $val=$val+2048; }
149 if (in_array("WORKSTATION_TRUST_ACCOUNT",$options)){ $val=$val+4096; }
150 if (in_array("SERVER_TRUST_ACCOUNT",$options)){ $val=$val+8192; }
151 if (in_array("DONT_EXPIRE_PASSWORD",$options)){ $val=$val+65536; }
152 if (in_array("MNS_LOGON_ACCOUNT",$options)){ $val=$val+131072; }
153 if (in_array("SMARTCARD_REQUIRED",$options)){ $val=$val+262144; }
154 if (in_array("TRUSTED_FOR_DELEGATION",$options)){ $val=$val+524288; }
155 if (in_array("NOT_DELEGATED",$options)){ $val=$val+1048576; }
156 if (in_array("USE_DES_KEY_ONLY",$options)){ $val=$val+2097152; }
157 if (in_array("DONT_REQ_PREAUTH",$options)){ $val=$val+4194304; }
158 if (in_array("PASSWORD_EXPIRED",$options)){ $val=$val+8388608; }
159 if (in_array("TRUSTED_TO_AUTH_FOR_DELEGATION",$options)){ $val=$val+16777216; }
176 if ($result != true) {
192 if ($username === NULL) { return false; }
193if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } // Use the default …
194 if (!$this->adldap->getLdapBind()) { return false; }
200 if ($recursive === true){
220 if ($username === NULL) { return false; }
221 if (!$this->adldap->getLdapBind()) { return false; }
223 if ($isGUID === true) {
227 else if (strstr($username, "@")) {
234 if ($fields === NULL) {
237 if (!in_array("objectsid", $fields)) {
243 if (isset($entries[0])) {
244 if ($entries[0]['count'] >= 1) {
245 if (in_array("memberof", $fields)) {
247if ($this->adldap->getRealPrimaryGroup() && isset($entries[0]["primarygroupid"][0]) && isset($entr…
253 if (!isset($entries[0]["memberof"]["count"])) {
275 if ($username === NULL) { return false; }
276 if (!$this->adldap->getLdapBind()) { return false; }
280 if ($info !== false) {
288 * Determine if a user is in a specific group
298 if ($username === NULL) { return false; }
299 if ($group === NULL) { return false; }
300 if (!$this->adldap->getLdapBind()) { return false; }
301if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } // Use the default …
306 // Return true if the specified group is in the group list
307 if (in_array($group, $groups)) {
324 if ($username === NULL) { return "Missing compulsory field [username]"; }
325 if (!$this->adldap->getLdapBind()) { return false; }
326if (!function_exists('bcmod')) { throw new adLDAPException("Missing function support [bcmod] http:…
332 if ($userInfo[0]['useraccountcontrol'][0] == '66048') {
336 if ($pwdLastSet === '0') {
348 if (!$sr) {
367 // If the low 32 bits of maxPwdAge are equal to 0 passwords do not expire
371 if (bcmod($maxPwdAge, 4294967296) === '0') {
390 …* @param array $attributes The attributes to modify. Note if you set the enabled attribute you mu…
396 if ($username === NULL) { return "Missing compulsory field [username]"; }
397if (array_key_exists("password", $attributes) && !$this->adldap->getUseSSL() && !$this->adldap->ge…
403 if ($userDn === false) {
410 // Check to see if this is an enabled status update
411 if (!$mod && !array_key_exists("enabled", $attributes)){
415 // Set the account control attribute (only if specified)
416 if (array_key_exists("enabled", $attributes)){
417 if ($attributes["enabled"]){
428 if ($result == false) {
444 if ($username === NULL) { return "Missing compulsory field [username]"; }
447 if ($result == false) { return false; }
461 if ($username === NULL) { return "Missing compulsory field [username]"; }
464 if ($result == false) { return false; }
479 if ($username === NULL) { return false; }
480 if ($password === NULL) { return false; }
481 if (!$this->adldap->getLdapBind()) { return false; }
482 if (!$this->adldap->getUseSSL() && !$this->adldap->getUseTLS()) {
487 if ($userDn === false) {
495 if ($result === false){
497 if ($err) {
499 if($err == 53) {
537 if ($user[0]["dn"] === NULL) {
554 if (!$this->adldap->getLdapBind()) { return false; }
564 if ($includeDescription && strlen($entries[$i]["displayname"][0])>0){
572 if ($sorted) {
586 if (!$this->adldap->getLdapBind()){ return false; }
587 if ($username === null){ return "Missing compulsory field [username]"; }
592 if (ldap_count_entries($this->adldap->getLdapConnection(), $sr) > 0) {
611 if (!$this->adldap->getLdapBind()){ return false; }
615 if ($searchField) {
625 if ($includeDescription && strlen($entries[$i]["displayname"][0]) > 0) {
628 else if ($includeDescription) {
635 if ($sorted){
651 if (!$this->adldap->getLdapBind()) { return false; }
652 if ($username === null) { return "Missing compulsory field [username]"; }
653 if ($container === null) { return "Missing compulsory field [container]"; }
654 if (!is_array($container)) { return "Container must be an array"; }
663 if ($result !== true) {
676 if (!$this->adldap->getLdapBind()) { return false; }
677 if ($username === null) { return "Missing compulsory field [username]"; }