1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-28 12:30:00 +00:00

Removed unnecessary parameters

This commit is contained in:
Ozzieisaacs 2020-12-03 17:33:30 +01:00
parent a3ef53102d
commit 7c96fac95c
2 changed files with 3 additions and 6 deletions

View File

@ -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():

View File

@ -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)