From 341a47f5a3786f96602bcc0c0ecd12aa86f5b9c1 Mon Sep 17 00:00:00 2001 From: Pavel Zuna Date: Thu, 18 Jun 2009 19:18:06 +0200 Subject: Fix bug in basegroup and passwd plugins (incorrect use of find_entry_by_attr). --- ipalib/plugins/passwd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ipalib/plugins/passwd.py') diff --git a/ipalib/plugins/passwd.py b/ipalib/plugins/passwd.py index 6c339856..fbc12263 100644 --- a/ipalib/plugins/passwd.py +++ b/ipalib/plugins/passwd.py @@ -61,8 +61,8 @@ class passwd(Command): else: principal = '%s@%s' % (principal, self.api.env.realm) - dn = ldap.find_entry_by_attr( - 'krbprincipalname', principal, 'posixaccount' + (dn, entry_attrs) = ldap.find_entry_by_attr( + 'krbprincipalname', principal, 'posixaccount', [''] ) ldap.modify_password(dn, password) -- cgit