Code

Fixed typo in Kerberos Password Methods
authorscheiter <scheiter@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 20 Nov 2006 12:17:17 +0000 (12:17 +0000)
committerscheiter <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

include/class_password-methods-kerberos.inc
plugins/personal/generic/class_user.inc

index 2f3173bf30feb868a2121126f462ccb85db7916e..2023f6c84953403ef6328316607778b7b29febd4 100644 (file)
@@ -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)
                        {
index e7c13fefd0ac3d6397a473ce29f20c7cc69f7b71..93fd5f77d10709fbf7e0e098b5d6aeb542e9f0b7 100644 (file)
@@ -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){