Hi,
i try to integrate LibreNMS with my LDAP Server (Authentik), and have problem with WebUI login.
Where i use auth_test.php i get:
[librenms@librenms ~]$ ./scripts/auth_test.php -u bkopec
Authentication Method: ldap
Password:
Authenticate user bkopec:
AUTH SUCCESS
User (2028):
username => 9a4b2eba66279b6fdff56cc21ace34aa3be22c735e24dce345df8b8
realname => bkopec
user_id => 2028
email => [email protected]
Groups:
If i use WebUI login i only get error i log:
ldap_get_entries(): Argument #2 ($result) must be of type LDAP\Result, bool given {"exception":"[object] (TypeError(code: 0): ldap_get_entries(): Argument #2 ($result) must be of type LDAP\\Result, bool given at /opt/librenms/LibreNMS/Authentication/LdapAuthorizer.php:184)"}
The problem propably is with username you can see above.
For username my server return the value of uid, even if i configure:
$config['auth_ldap_attr.uid'] = "sAMAccountName";
Do you have any solution for that ?
Best regards.