Lines Matching refs:adldap

9  *   email: scott@wiggumworld.com, adldap@richardhyland.com
10 * http://adldap.sourceforge.net/
35 * @link http://adldap.sourceforge.net/
51 protected $adldap;
53 public function __construct(adLDAP $adldap) {
54 $this->adldap = $adldap;
66 return $this->adldap->authenticate($username, $password, $preventRebind);
87 if (array_key_exists("password",$attributes) && (!$this->adldap->getUseSSL() && !$this->adldap->getUseTLS())){
96 $add = $this->adldap->adldap_schema($attributes);
119 $result = @ldap_add($this->adldap->getLdapConnection(), "CN=" . $add["cn"][0] . ", " . $container . "," . $this->adldap->getBaseDn(), $add);
175 $result = $this->adldap->folder()->delete($dn);
193 if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } // Use the default option if they haven't set it
194 if (!$this->adldap->getLdapBind()) { return false; }
198 $groups = $this->adldap->utilities()->niceNames($info[0]["memberof"]); // Presuming the entry returned is our guy (unique usernames)
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($entries[0]["objectsid"][0])){
249 $entries[0]["memberof"][] = $this->adldap->group()->getPrimaryGroup($entries[0]["primarygroupid"][0], $entries[0]["objectsid"][0]);
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 option if they haven't set it
325 if (!$this->adldap->getLdapBind()) { return false; }
347 $sr = ldap_read($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), 'objectclass=*', array('maxPwdAge'));
351 $info = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
397 if (array_key_exists("password", $attributes) && !$this->adldap->getUseSSL() && !$this->adldap->getUseTLS()) {
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, $fields);
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; }