summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c5d168e)
raw | patch | inline | side by side (parent: c5d168e)
author | scheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Nov 2006 12:17:17 +0000 (12:17 +0000) | ||
committer | scheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 20 Nov 2006 12:17:17 +0000 (12:17 +0000) |
Added check for SASL PW Method for newly created accounts
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5164 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5164 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_password-methods-kerberos.inc | patch | blob | history | |
plugins/personal/generic/class_user.inc | patch | blob | history |
diff --git a/include/class_password-methods-kerberos.inc b/include/class_password-methods-kerberos.inc
index 2f3173bf30feb868a2121126f462ccb85db7916e..2023f6c84953403ef6328316607778b7b29febd4 100644 (file)
print_red (_("Kerberos database communication failed!"));
}
- $ret= kadm5_chpass_principal($handle, $this->attrs['uid'][0]."@".$cfg['REALM'],$wd);
+ $ret= kadm5_chpass_principal($handle, $this->attrs['uid'][0]."@".$cfg['REALM'],$pwd);
if ($ret === FALSE)
{
index e7c13fefd0ac3d6397a473ce29f20c7cc69f7b71..93fd5f77d10709fbf7e0e098b5d6aeb542e9f0b7 100644 (file)
} else {
- /* User doesn't exists, create it when pw_storage is kerberos. */
- if ($this->pw_storage == "kerberos"){
+ /* User doesn't exists, create it when pw_storage is kerberos or SASL. */
+ if ($this->pw_storage == "kerberos" || $this->pw_storage == "sasl" ){
$ret= kadm5_create_principal ( $handle, $principal);
if ($ret === FALSE){