diff options
author | Jan Cholasta <jcholast@redhat.com> | 2013-10-31 16:54:21 +0000 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-01-24 20:38:15 +0100 |
commit | c2bd6f365d2b65082f72bd9eb104e79e8c507fe3 (patch) | |
tree | 31449afe21beb62edf20982c2215568997eb6c11 /ipalib/plugins/passwd.py | |
parent | 5737eaf1348ba101ae227fa79fb4451a2413fc84 (diff) | |
download | freeipa.git-c2bd6f365d2b65082f72bd9eb104e79e8c507fe3.tar.gz freeipa.git-c2bd6f365d2b65082f72bd9eb104e79e8c507fe3.tar.xz freeipa.git-c2bd6f365d2b65082f72bd9eb104e79e8c507fe3.zip |
Convert remaining frontend code to LDAPEntry API.
Diffstat (limited to 'ipalib/plugins/passwd.py')
-rw-r--r-- | ipalib/plugins/passwd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ipalib/plugins/passwd.py b/ipalib/plugins/passwd.py index 280517cd..2581a46e 100644 --- a/ipalib/plugins/passwd.py +++ b/ipalib/plugins/passwd.py @@ -103,7 +103,7 @@ class passwd(Command): """ ldap = self.api.Backend.ldap2 - (dn, entry_attrs) = ldap.find_entry_by_attr( + entry_attrs = ldap.find_entry_by_attr( 'krbprincipalname', principal, 'posixaccount', [''], DN(api.env.container_user, api.env.basedn) ) @@ -115,9 +115,9 @@ class passwd(Command): raise errors.ACIError(info=_('Invalid credentials')) if current_password == MAGIC_VALUE: - ldap.modify_password(dn, password) + ldap.modify_password(entry_attrs.dn, password) else: - ldap.modify_password(dn, password, current_password) + ldap.modify_password(entry_attrs.dn, password, current_password) return dict( result=True, |