Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
lemonldap-ng
lemonldap-ng
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 244
    • Issues 244
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 3
    • Merge Requests 3
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • LemonLDAP NG
  • lemonldap-nglemonldap-ng
  • Merge Requests
  • !144

Open
Opened May 07, 2020 by Louis Chemineau@artonge
  • Report abuse
Report abuse

Allow user to set their login when registering

  • Overview 5
  • Commits 21
  • Pipelines 20
  • Changes 7

Hi,

I added the possibility for a registering user to set its login.

Changes:

  • Introduce registerDisplayLoginInput config variable to toggle the visibility of the login input.
  • Use registerDisplayLoginInput to create a template variable DISPLAY_LOGIN_INPUT
  • Create a login input in register.tpl
  • Add the login param to the registerInfo object in Register.pm
  • Use the provided login instead of calling computeLogin
  • Make isLoginUsed method a public method in SAML and AD
  • Add a isLoginUsed method to DEMO to make it compliant with the new API requirement
  • Add default values for the variables in Attributes.pm

Extra changes:

  • Introduce loginControl config variables to validate the login and validate the login in the registration flow in Register.pm
  • Introduce registerLdapObjectClasses config variable to customize the objectClass in userCreation in LDAP.pm and AD.pm
  • Introduce registerTransformNames to prevent first and last name transformation in userCreation

Needed changes (I would need guidance):

  • Create a PE_LOGINALREADYEXISTS variable in Register.pm and a correct error message
  • Add inputs in manager
  • Write tests
Edited Sep 09, 2020 by Xavier Guimard
Assignee
Assign to
Reviewer
Request review from
3.0.0
Milestone
3.0.0
Assign milestone
Time tracking
Reference: lemonldap-ng/lemonldap-ng!144
Source branch: master