Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

AuthLDAP - Credentials are valid but we failed to create a user.

  • Merrxi
  • Merrxi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 4 weeks ago #263391 by Merrxi
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.1 (docker-image martialblog/limesurvey:6.5.1-240320-fpm-alpine)
Own server or LimeSurvey hosting: self-hosted
Survey theme/template: custom theme

I have the same or a similar issue as in this related post. As suggested there, I opened a new topic.
Our setup is LimeSurvey running in a docker container with AuthLDAP Plugin Version 1.0.0 activated.
It is configured to work with our AD.

Some but not all new users get the error message:
Code:
Credentials are valid but we failed to create a user.

Then I create the user manually, set authentication to AuthLDAP and it works for them.
For some users the auto create user does work as expected.

Recently the message changed to (translated to English, so it could deviate a little)
Code:
Credentials are valid but we failed to create a user.Cannot create user.E-mail is not valid.

Recently I activated the AuditLog plugin to help debugging this issue, so maybe this added the new lines?

Any help to debug and fix this problem would be appreciated.

 

Please Log in to join the conversation.

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 months 4 weeks ago #263410 by DenisChenu
User need a valid email address, your LDAP return a valid email address for all user ?

If not :
  1. Return the issue community.limesurvey.org/bug-tracker/ (i really think we must remove mandatory email address for user)
  2. Create your own LDAP Auth plugin assign a false email address to user

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The following user(s) said Thank You: Merrxi

Please Log in to join the conversation.

  • Merrxi
  • Merrxi's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 months 4 weeks ago #263422 by Merrxi
Thanks for the advice. I checked the AD and it seems, I have used the wrong attribute in the AuthLDAP config.
We have multiple attributes for the mail address, but the one I used did not have always a valid address.
I changed it to use an other attribute and now it works as expected.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Moderators: holchtpartner

Lime-years ahead

Online-surveys for every purse and purpose