summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ac7e7a5)
raw | patch | inline | side by side (parent: ac7e7a5)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Nov 2006 13:45:57 +0000 (13:45 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 15 Nov 2006 13:45:57 +0000 (13:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5126 594d385d-05f5-0310-b6e9-bd551577e9d8
Changelog | patch | blob | history | |
include/class_password-methods-kerberos.inc | patch | blob | history | |
include/class_password-methods.inc | patch | blob | history |
diff --git a/Changelog b/Changelog
index 5c04a2748d67ad4262fcc6b3639ada5587c4d27b..92b29026013c454abb74642cf5179d1f213462e9 100644 (file)
--- a/Changelog
+++ b/Changelog
- Avoid removal of shares while they are used by users
- Added finer grained ACL settings for mail accounts
- Fixed day of birth problem in M$ IE
+ - Fixed setting of Kerberos passwords
* gosa 2.5.5
- Added remove method for shared folder in kolab mode
diff --git a/include/class_password-methods-kerberos.inc b/include/class_password-methods-kerberos.inc
index 1e8ba722dc1f90c579b81c7b0e6bdfa9a7e4f5bd..d1c7757825982638be9d18d51785869c49640bb3 100644 (file)
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'],$password);
if ($ret === FALSE)
{
kadm5_destroy($handle);
- $newpass= "{kerberos}".$attrs['uid'][0]."@".$cfg['REALM'];
+ $newpass= "{kerberos}".$this->attrs['uid'][0]."@".$cfg['REALM'];
return $newpass;
}
index 97571da7900f3e6d51f3190319cc0ba9508d6e64..2755134f11c15115fe7420b9ffada04b9da1afc6 100644 (file)
class passwordMethod
{
var $config = false;
+ var $attrs= array();
// Konstructor
function passwordMethod($config)
// read current password entry for $dn, to detect the encryption Method
$ldap = $config->get_ldap_link();
- $ldap->cat ($dn, array("shadowLastChange", "userPassword"));
+ $ldap->cat ($dn, array("shadowLastChange", "userPassword", "uid"));
$attrs = $ldap->fetch ();
// Set encryption type to clear if required
// Crypt with the detected Method
$test = new $available[$hash]($config);
+ $test->attrs= $attrs;
$newpass = $test->generate_hash($password);
} else {