summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2009-05-21 22:40:48 -0400
committerRob Crittenden <rcritten@redhat.com>2009-05-21 22:43:10 -0400
commit762d38a73477ce166fa2f269144157b3850e02db (patch)
tree03e15dce29971c3fe082d2d4b9b3e8357fb7f71c /ipaserver
parentcac8ebb8667ece0a6066fad8cd757c2be65c1856 (diff)
downloadfreeipa-762d38a73477ce166fa2f269144157b3850e02db.tar.gz
freeipa-762d38a73477ce166fa2f269144157b3850e02db.tar.xz
freeipa-762d38a73477ce166fa2f269144157b3850e02db.zip
Fix password setting on python 2.4 systems (it doesn't like None for oldpw)
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/plugins/ldapapi.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipaserver/plugins/ldapapi.py b/ipaserver/plugins/ldapapi.py
index 3d62507e7..6a3c992a6 100644
--- a/ipaserver/plugins/ldapapi.py
+++ b/ipaserver/plugins/ldapapi.py
@@ -284,7 +284,7 @@ class ldap(CrudBackend):
return scope_dict.get(scope_str, _ldap.SCOPE_SUBTREE)
def modify_password(self, dn, **kw):
- return servercore.modify_password(dn, kw.get('oldpass'), kw.get('newpass'))
+ return servercore.modify_password(dn, kw.get('oldpass', ''), kw.get('newpass'))
def add_member_to_group(self, memberdn, groupdn, memberattr='member'):
"""