Lines Matching refs:dn
79 $dn = $this->makeFilter(
85 $dn = $this->makeFilter(
96 // Try to bind to with the dn if we have one.
97 if (!empty($dn)) {
99 if (!@ldap_bind($this->con, $dn, $pass)) {
100 $this->debug("LDAP: bind with $dn failed", -1, __LINE__, __FILE__);
101 $this->debug('LDAP user dn bind: ' . hsc(ldap_error($this->con)), 0, __LINE__, __FILE__);
109 if (empty($info['dn'])) {
112 $dn = $info['dn'];
115 // Try to bind with the dn provided
116 if (!@ldap_bind($this->con, $dn, $pass)) {
117 $this->debug("LDAP: bind with $dn failed", -1, __LINE__, __FILE__);
139 * dn string distinguished name (DN)
242 $info['dn'] = $user_result['dn'];
332 // find the information about the user, in particular the "dn"
334 if (empty($info['dn'])) {
335 $this->debug('LDAP cannot find your user dn', 0, __LINE__, __FILE__);
338 $dn = $info['dn'];
347 if (!@ldap_bind($this->con, $dn, $pass)) {
349 'LDAP user bind failed: ' . hsc($dn) . ': ' . hsc(ldap_error($this->con)),
372 if (!@ldap_mod_replace($this->con, $dn, ['userpassword' => $hash])) {
374 'LDAP mod replace failed: ' . hsc($dn) . ': ' . hsc(ldap_error($this->con)),