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