Lines Matching refs:adldap
51 protected $adldap; variable in adLDAPUsers
53 public function __construct(adLDAP $adldap) { argument
54 $this->adldap = $adldap;
66 return $this->adldap->authenticate($username, $password, $preventRebind);
87 …if (array_key_exists("password",$attributes) && (!$this->adldap->getUseSSL() && !$this->adldap->ge…
96 $add = $this->adldap->adldap_schema($attributes);
119 …$result = @ldap_add($this->adldap->getLdapConnection(), "CN=" . $add["cn"][0] . ", " . $container …
175 $result = $this->adldap->folder()->delete($dn);
193 …if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } // Use the default …
194 if (!$this->adldap->getLdapBind()) { return false; }
198 …$groups = $this->adldap->utilities()->niceNames($info[0]["memberof"]); // Presuming the entry retu…
202 $extraGroups = $this->adldap->group()->recursiveGroups($groupName);
221 if (!$this->adldap->getLdapBind()) { return false; }
224 $username = $this->adldap->utilities()->strGuidToHex($username);
240 …$sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields…
241 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
247 …if ($this->adldap->getRealPrimaryGroup() && isset($entries[0]["primarygroupid"][0]) && isset($entr…
249 …$entries[0]["memberof"][] = $this->adldap->group()->getPrimaryGroup($entries[0]["primarygroupid"][…
251 … $entries[0]["memberof"][] = "CN=Domain Users,CN=Users," . $this->adldap->getBaseDn();
276 if (!$this->adldap->getLdapBind()) { return false; }
281 $collection = new adLDAPUserCollection($info, $this->adldap);
300 if (!$this->adldap->getLdapBind()) { return false; }
301 …if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } // Use the default …
325 if (!$this->adldap->getLdapBind()) { return false; }
347 …$sr = ldap_read($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), 'objectclass=*', a…
351 $info = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
397 …if (array_key_exists("password", $attributes) && !$this->adldap->getUseSSL() && !$this->adldap->ge…
408 $mod = $this->adldap->adldap_schema($attributes);
427 $result = @ldap_modify($this->adldap->getLdapConnection(), $userDn, $mod);
481 if (!$this->adldap->getLdapBind()) { return false; }
482 if (!$this->adldap->getUseSSL() && !$this->adldap->getUseTLS()) {
494 $result = @ldap_mod_replace($this->adldap->getLdapConnection(), $userDn, $add);
496 $err = ldap_errno($this->adldap->getLdapConnection());
554 if (!$this->adldap->getLdapBind()) { return false; }
559 …$sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields…
560 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
586 if (!$this->adldap->getLdapBind()){ return false; }
591 …$sr = @ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $field…
592 if (ldap_count_entries($this->adldap->getLdapConnection(), $sr) > 0) {
593 $entry = @ldap_first_entry($this->adldap->getLdapConnection(), $sr);
594 $guid = @ldap_get_values_len($this->adldap->getLdapConnection(), $entry, 'objectGUID');
595 $strGUID = $this->adldap->utilities()->binaryToText($guid[0]);
611 if (!$this->adldap->getLdapBind()){ return false; }
620 …$sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields…
621 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
651 if (!$this->adldap->getLdapBind()) { return false; }
661 $newBaseDn = strtolower($newContainer) . "," . $this->adldap->getBaseDn();
662 $result = @ldap_rename($this->adldap->getLdapConnection(), $dn, $newRDn, $newBaseDn, true);
676 if (!$this->adldap->getLdapBind()) { return false; }