diff --git a/include/class_password-methods-kerberos.inc b/include/class_password-methods-kerberos.inc
index 1e8ba722dc1f90c579b81c7b0e6bdfa9a7e4f5bd..835ec8bec3de4cddd9cc95aa71cc0484ce7e2f52 100644 (file)
function passwordMethodkerberos($config)
{
function passwordMethodkerberos($config)
{
+ $this->config= &$config;
}
function is_available()
}
function is_available()
print_red (_("Kerberos database communication failed!"));
}
print_red (_("Kerberos database communication failed!"));
}
- $ret= kadm5_chpass_principal($handle, $attrs['uid'][0]."@".$cfg['REALM'],$password);
+ $ret= kadm5_chpass_principal($handle, $this->attrs['uid'][0]."@".$cfg['REALM'],$pwd);
if ($ret === FALSE)
{
if ($ret === FALSE)
{
kadm5_destroy($handle);
kadm5_destroy($handle);
- $newpass= "{kerberos}".$attrs['uid'][0]."@".$cfg['REALM'];
+ $newpass= "{kerberos}".$this->attrs['uid'][0]."@".$cfg['REALM'];
return $newpass;
}
}
}
return $newpass;
}
}
}
+/* Dummy class for OpenLDAP Kerberos/SASL change */
+class passwordMethodsasl extends passwordMethodkerberos
+{
+}
+
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>