slurm-web using openldap but can't work #310
-
i have some trouble in using your slurm-web. When i configure authentication with openldap, and i use user/password as authentication, the login web page always says " ERROR,Authentication error: Invalid user or password"
then I'll paste some configuration in gateway.ini [authentication] [ldap] Through the openldap.log I knew the difference, but I don't know why the web page can't use the same procedure as the test command slurm-web-ldap-check While the login web page has the log message: Obviously, the web login has less procedure than the test command, it didn't use the data that i configure in the gateway.ini such as "bind_dn=cn=admin,dc=s5,dc=localdomain i even tried and tried fullname in login box, still can't work here's my openldap ldif dumpfile LDIF Export for dc=s5,dc=localdomainServer: Local LDAP Server (127.0.0.1)Search Scope: subSearch Filter: (objectClass=*)Total Entries: 9Generated by phpLDAPadmin (http://phpldapadmin.sourceforge.net) on June 19, 2024 6:27 amVersion: 1.2.6.6version: 1 ##Entry 1: dc=s5,dc=localdomain ##Entry 2: cn=admin,dc=s5,dc=localdomain ##Entry 3: ou=Group,dc=s5,dc=localdomain ##Entry 4: cn=acoustic,ou=Group,dc=s5,dc=localdomain ##Entry 5: cn=biology,ou=Group,dc=s5,dc=localdomain ##Entry 6: cn=physic,ou=Group,dc=s5,dc=localdomain ##Entry 7: ou=People,dc=s5,dc=localdomain ##Entry 8: cn=hello_slurm,ou=People,dc=s5,dc=localdomain ##Entry 9: cn=jim_green,ou=People,dc=s5,dc=localdomain |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 25 replies
-
Here's the author's reply, but i still can't fixed it, i doubt the web login code don't work as the test command well, is anybody tried this, can others give me a detailed configuration Thank you for contacting us, I'm glad you are interested in Slurm-web and you started testing! Do you have a Github account? If yes, I invite you to ask technical questions on the community channel at this URL: This way, other people will benefit from the answers. Your sldapd logs indicates:
For more useful information about authentication logic in Slurm-web logs, you can enable debug messages in gateway.ini: [service] Then restart the gateway service and checkout the logs. You can also find more information about Slurm-web logs in troubleshooting guide: https://docs.rackslab.io/slurm-web/misc/troubleshooting.html Best regards, |
Beta Was this translation helpful? Give feedback.
-
Hello @emalovelife, The dn of the user entries in your LDAP directory use the cn attribute. This is not yet supported in Slurm-web 3.0.0, this limitation was reported in #305. A fix has been developed and integrated, it will be released with Slurm-web 3.1.0 (probably next week). Then, in order to support your LDAP tree, you will need to upgrade to Slurm-web 3.1.0 and set this parameter in your
Then you will be able to login with logins jim_green or hello_slurm and their passwords. |
Beta Was this translation helpful? Give feedback.
-
in fact it's like this, the users are under People, the editor does not show what i mean ` |
Beta Was this translation helpful? Give feedback.
Hello @emalovelife,
The dn of the user entries in your LDAP directory use the cn attribute. This is not yet supported in Slurm-web 3.0.0, this limitation was reported in #305. A fix has been developed and integrated, it will be released with Slurm-web 3.1.0 (probably next week).
Then, in order to support your LDAP tree, you will need to upgrade to Slurm-web 3.1.0 and set this parameter in your
gateway.ini
:Then you will be able to login with logins jim_green or hello_slurm and their passwords.