Lines Matching +full:delete +full:- +full:user -(+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
51 $this->adldap = $adldap;
55 * Delete a distinguished name from Active Directory
58 * @param string $dn The distinguished name to delete
61 public function delete($dn){
62 $result = ldap_delete($this->adldap->getLdapConnection(), $dn);
83 if ($recursive === NULL) { $recursive = $this->adldap->getRecursiveGroups(); } //use the default option if they haven't set it
84 if (!$this->adldap->getLdapBind()) { return false; }
108 $filter .= '(objectClass=user)';
117 $searchOu = $this->adldap->getBaseDn();
120 $filter .= '(!(distinguishedname=' . $ou . ',' . $this->adldap->getBaseDn() . ')))';
121 $searchOu = $ou . ',' . $this->adldap->getBaseDn();
124 $filter .= '(!(distinguishedname=' . $this->adldap->getBaseDn() . ')))';
128 $sr = ldap_search($this->adldap->getLdapConnection(), $searchOu, $filter, array('objectclass', 'distinguishedname', 'samaccountname'));
129 $entries = @ldap_get_entries($this->adldap->getLdapConnection(), $sr);
135 $sr = ldap_list($this->adldap->getLdapConnection(), $searchOu, $filter, array('objectclass', 'distinguishedname', 'samaccountname'));
136 $entries = @ldap_get_entries($this->adldap->getLdapConnection(), $sr);
169 $result = ldap_add($this->adldap->getLdapConnection(), "OU=" . $add["OU"] . ", " . $containers . $this->adldap->getBaseDn(), $add);