From 8849b2c3eb4150b661af882cbf18c4470344be8e Mon Sep 17 00:00:00 2001 From: scheiter Date: Mon, 20 Nov 2006 12:17:17 +0000 Subject: [PATCH] Fixed typo in Kerberos Password Methods 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 --- include/class_password-methods-kerberos.inc | 2 +- plugins/personal/generic/class_user.inc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/class_password-methods-kerberos.inc b/include/class_password-methods-kerberos.inc index 2f3173bf3..2023f6c84 100644 --- a/include/class_password-methods-kerberos.inc +++ b/include/class_password-methods-kerberos.inc @@ -53,7 +53,7 @@ class passwordMethodkerberos extends passwordMethod 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) { diff --git a/plugins/personal/generic/class_user.inc b/plugins/personal/generic/class_user.inc index e7c13fefd..93fd5f77d 100644 --- a/plugins/personal/generic/class_user.inc +++ b/plugins/personal/generic/class_user.inc @@ -957,8 +957,8 @@ class user extends plugin } 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){ -- 2.30.2