openbmc / phosphor-webui

Web-based user interface for managing OpenBMC systems
Apache License 2.0
37 stars 25 forks source link

Backend is lagging behind in LDAP setup and Local User creation #103

Open lpanayioto opened 4 years ago

lpanayioto commented 4 years ago

Context In the current version If there is an LDAP user with the same name as a local user, LDAP configuration will fail. And if LDAP is configured and one tries to create an user with the same name as an LDAP user the user creation will fail.

Unexpected Behavior you saw After Configuring the LDAP server and then disabling it I can't create a new local user with the same name as an LDAP user until I create a different local user first.

Expected behavior After disabling LDAP configuration I should be able to create a Local user with the same name as an LDAP user.

To Reproduce

  1. Login to webui
  2. Navigate to LDAP settings
  3. Enable and configure LDAP
  4. On a different tab Login and Logout with an LDAP user
  5. Disable the LDAP settings
  6. Create a local user with the same LDAP username
  7. Create a local user with a different username
  8. Repeat step 6.

Step 6 is failing, but step 8 is not

OpenBMC Information

manojdesd commented 2 years ago

HI @lpanayioto I don't know why this problem occurs in yours I wish I could help you with that but I am not able to configure LDAP itself. Can you help me issue https://github.com/openbmc/phosphor-webui/issues/130 ? As I am able to see that you are able to configure LDAP connection successfully. Thanks in advance.