diff --git a/cps/services/simpleldap.py b/cps/services/simpleldap.py index 87a9b469..80e67e90 100644 --- a/cps/services/simpleldap.py +++ b/cps/services/simpleldap.py @@ -85,8 +85,8 @@ def init_app(app, config): log.error(e) -def get_object_details(user=None, group=None, query_filter=None, dn_only=False): - return _ldap.get_object_details(user, group, query_filter, dn_only) +def get_object_details(user=None): + return _ldap.get_object_details(user) def bind(): diff --git a/cps/web.py b/cps/web.py index d66e27e0..1151c07f 100644 --- a/cps/web.py +++ b/cps/web.py @@ -343,10 +343,7 @@ def import_ldap_users(): if ub.session.query(ub.User).filter(ub.User.nickname == user_identifier.lower()).first(): log.warning("LDAP User: %s Already in Database", user_identifier) continue - user_data = services.ldap.get_object_details(user=user_identifier, - group=None, - query_filter=None, - dn_only=False) + user_data = services.ldap.get_object_details(user=user_identifier) if user_data: content = ub.User() # user_login_field = extract_dynamic_field_from_filter(user, config.config_ldap_user_object)