Lines Matching defs: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;
83 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $parentDn, $add);
104 $userDn = $this->adldap->user()->dn($user, $isGUID);
119 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $groupDn, $add);
148 $result = @ldap_mod_add($this->adldap->getLdapConnection(), $groupDn, $add);
182 $result = ldap_add($this->adldap->getLdapConnection(), "CN=" . $add["cn"] . ", " . $container . "," . $this->adldap->getBaseDn(), $add);
197 if (!$this->adldap->getLdapBind()){ return false; }
202 $result = $this->adldap->folder()->delete($dn);
235 $result = @ldap_mod_del($this->adldap->getLdapConnection(), $parentDn, $del);
261 $userDn = $this->adldap->user()->dn($user, $isGUID);
269 $result = @ldap_mod_del($this->adldap->getLdapConnection(), $groupDn, $del);
296 $result = @ldap_mod_del($this->adldap->getLdapConnection(), $groupDn, $del);
312 if (!$this->adldap->getLdapBind()){ return false; }
313 if ($recursive === NULL){ $recursive = $this->adldap->getRecursiveGroups(); } // Use the default option if they haven't set it
325 $filter = "(&(objectCategory=group)(distinguishedName=" . $this->adldap->utilities()->ldapSlashes($groups[$i]) . "))";
327 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
328 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
332 $filter = "(&(objectCategory=group)(distinguishedName=" . $this->adldap->utilities()->ldapSlashes($groups[$i]) . "))";
334 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
335 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
361 if (!$this->adldap->getLdapBind()){ return false; }
362 if ($recursive === NULL){ $recursive = $this->adldap->getRecursiveGroups(); } // Use the default option if they haven't set it
373 $filter = "(&(objectCategory=person)(distinguishedName=" . $this->adldap->utilities()->ldapSlashes($users[$i]) . "))";
375 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
376 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
380 $filter = "(&(objectCategory=group)(distinguishedName=" . $this->adldap->utilities()->ldapSlashes($users[$i]) . "))";
382 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
383 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
419 if (!$this->adldap->getLdapBind()) { return false; }
425 $filter = "(&(objectCategory=group)(name=" . $this->adldap->utilities()->ldapSlashes($groupName) . "))";
429 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
430 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
446 if (!$this->adldap->getLdapBind()) { return false; }
450 $collection = new adLDAPGroupCollection($info, $this->adldap);
480 $groupNames = $this->adldap->utilities()->niceNames($groups);
504 if (!$this->adldap->getLdapBind()) { return false; }
513 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
514 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
590 $filter = '(objectsid=' . $this->adldap->utilities()->getTextSID($gsid).')';
592 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
593 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
620 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
621 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);