Commit 61cfb534 authored by Sven Lukrafka's avatar Sven Lukrafka

Appendix change

parent ef5f9920
......@@ -17,7 +17,7 @@ class Custom_PDP():
mapper.map()
mapped_list = mapper.ldap_list
mapped_list.append(('userPassword', lss.hash(password)))
mapped_list.append((getattr(settings, 'LUI_OIDC_USER_LOGIN_NAME'), user + '@ldap'))
mapped_list.append((getattr(settings, 'LUI_OIDC_USER_LOGIN_NAME'), user + '@local'))
AddRequest = get_class('AddRequest', 'ldap_app.processors.dispatcher.Request')(mapped_list, location=base_dn, template='selfregTemplate')
AddRequest.login_name = user
return AddRequest.run(determine_dn = True, deactivate_authorization = True, generate_login = False)
......@@ -35,7 +35,7 @@ class Custom_Selfregrequest(AddRequest):
def run(self):
# Check preconditions
USER_LOGIN_NAME_APPENDIX = '@ldap'
USER_LOGIN_NAME_APPENDIX = '@local'
# Check if a user with this email already exist
if len(self.search_by_mail()) == 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment