Lines Matching +full:list +full:- +full:users -(+path:inc +path:lang) -(+path:lib +path:plugins +path:lang) -(+path:lib +path:tpl +path:dokuwiki +path:lang)

12  * Copyright (c) 2006-2012 Scott Barnett, Richard Hyland
31 * @copyright (c) 2006-2012 Scott Barnett, Richard Hyland
32 * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html LGPLv2.1
52 $this->adldap = $adldap;
74 $add = $this->adldap->adldap_schema($attributes);
91 $result = @ldap_add($this->adldap->getLdapConnection(), "CN=" . $this->adldap->utilities()->escapeCharacters($add["cn"][0]) . ", " . $container . "," . $this->adldap->getBaseDn(), $add);
100 * Determine the list of groups a contact is a member of
109 if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } //use the default option if they haven't set it
110 if (!$this->adldap->getLdapBind()){ return false; }
113 $info = @$this->info($distinguishedName, array("memberof", "primarygroupid"));
114 $groups = $this->adldap->utilities()->niceNames($info[0]["memberof"]); //presuming the entry returned is our contact
118 $extraGroups = $this->adldap->group()->recursiveGroups($groupName);
136 if (!$this->adldap->getLdapBind()) { return false; }
142 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
143 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
147 if ($this->adldap->getRealPrimaryGroup() && isset($entries[0]["primarygroupid"][0]) && isset($entries[0]["primarygroupid"][0])){
148 //$entries[0]["memberof"][]=$this->group_cn($entries[0]["primarygroupid"][0]);
149 $entries[0]["memberof"][] = $this->adldap->group()->getPrimaryGroup($entries[0]["primarygroupid"][0], $entries[0]["objectsid"][0]);
151 $entries[0]["memberof"][] = "CN=Domain Users,CN=Users," . $this->adldap->getBaseDn();
169 if (!$this->adldap->getLdapBind()) { return false; }
171 $info = $this->info($distinguishedName, $fields);
174 $collection = new adLDAPContactCollection($info, $this->adldap);
192 if (!$this->adldap->getLdapBind()) { return false; }
193 if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } //use the default option if they haven't set it
195 // Get a list of the groups
196 $groups = $this->groups($distinguisedName, array("memberof"), $recursive);
198 // Return true if the specified group is in the group list
217 $mod = $this->adldap->adldap_schema($attributes);
225 $result = ldap_modify($this->adldap->getLdapConnection(), $distinguishedName, $mod);
241 $result = $this->folder()->delete($distinguishedName);
249 * Return a list of all contacts
257 if (!$this->adldap->getLdapBind()) { return false; }
262 $sr = ldap_search($this->adldap->getLdapConnection(), $this->adldap->getBaseDn(), $filter, $fields);
263 $entries = ldap_get_entries($this->adldap->getLdapConnection(), $sr);
291 return $this->adldap->exchange()->contactMailEnable($distinguishedName, $emailAddress, $mailNickname);