summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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'):
"""