LDAP user Locked out from HumHub

I have searched the forum for similar issues

on

This category is for issues regarding specific apps, NOT general issues with YunoHost.

on

This form is written in English but feel free to write in French if you’re more comfortable!

on

What app is this about, and its version

HumHub 1.19.3

What YunoHost version are you running

12.1.41.2

What type of hardware are you using

Old laptop or computer

Describe your issue

My LDAP users in HumHub are locked out Especially stupid is, it also affects the admin user. Non LDAP Users works.

my ldap configuration is:

 /var/www/humhub/protected# sudo -u www-data php yii settings/list-module ldap
╔════════════════════════════╤══════════════════════════════════════╗
║ Name                       │ Value                                ║
╟────────────────────────────┼──────────────────────────────────────╢
║ enabled                    │ 1                                    ║
╟────────────────────────────┼──────────────────────────────────────╢
║ hostname                   │ localhost                            ║
╟────────────────────────────┼──────────────────────────────────────╢
║ port                       │ 389                                  ║
╟────────────────────────────┼──────────────────────────────────────╢
║ encryption                 │                                      ║
╟────────────────────────────┼──────────────────────────────────────╢
║ username                   │ uid=xxxxxxx,ou=users,dc=yunohost,dc=org ║
╟────────────────────────────┼──────────────────────────────────────╢
║ password                   │ xxxxxxxxxxxxxxxxxx                   ║
╟────────────────────────────┼──────────────────────────────────────╢
║ baseDn                     │ ou=users,dc=yunohost,dc=org              ║
╟────────────────────────────┼──────────────────────────────────────╢
║ loginFilter                │ (uid=%s)                             ║
╟────────────────────────────┼──────────────────────────────────────╢
║ userFilter                 │ (objectClass=mailAccount)            ║
╟────────────────────────────┼──────────────────────────────────────╢
║ emailAttribute             │ mail                                 ║
╟────────────────────────────┼──────────────────────────────────────╢
║ usernameAttribute          │ uid                                  ║
╟────────────────────────────┼──────────────────────────────────────╢
║ idAttribute                │ uid                                  ║
╟────────────────────────────┼──────────────────────────────────────╢
║ refreshUsers               │ 1                                    ║
╟────────────────────────────┼──────────────────────────────────────╢
║ disableCertificateChecking │ 0                                    ║
╟────────────────────────────┼──────────────────────────────────────╢
║ ignoredDNs                 │                                      ║
╟────────────────────────────┼──────────────────────────────────────╢
║ allowedAuthClientIds       │ ["ldap"]                             ║
╟────────────────────────────┼──────────────────────────────────────╢
║ name                       │                                      ║
╚════════════════════════════╧══════════════════════════════════════╝

Share relevant logs or error messages

root@xxxxxxx:/var/www/humhub/protected# sudo -u www-data php yii ldap/list-users
*** LDAP User List for connection: ldap

Error: Invalid DN syntax

Is it a new install or an existing instance? Did you do something particular before it happened?

hi and thank you,

its an existing one, and updated at 1.11.2026. after a user logout today i cant log in than.

This is strange. You may compare the ldap config with the one in the package, or force an upgrade to regenerate the configuration

i tried reinstall but no change. i don’t know how to compare ldap configs?

perhaps password recover would help and it sends indeed an recovery link, but than i get an “password recover is disabled”.

how to enable it?

many thx.

Same issue here. Can not login via yunohost LDAP User.

@sipa66 Can you run

yunohost app shell humhub
cd protected

and share the output of

php yii settings/list-module ldap

?

Same issue here…

In my case there was an issue with a ldap filter :

php yii ldap/show-user <user>
*** LDAP User Details for "user" - connection: ldap

Error: ldap_search(): Search: Bad search filter

=> missing parentesis in a ldap filter

Running

 php yii settings/set ldap userFilter '('objectClass=mailAccount')'

solved this issue.

after fiddling around a lot, i disabled ldap for this user. i can login now but cant help with more infos

thank you for help