LDAP config - error No such object

I can’t get the server to authenticated using LDAP. Here is a snippet of my config on a test server:

$config[‘auth_ldap_version’] = 3;
$config[‘auth_ldap_server’] = “servermame.mycompany.com”;
$config[‘auth_ldap_port’] = 389;
$config[‘auth_ldap_starttls’] = “TRUE”;
$config[‘auth_ldap_suffix’] = “dc=mycompany,dc=com”;
$config[‘auth_ldap_groupbase’] = “ou=groups,dc=mycompany,dc=com”;
$config[‘auth_ldap_groups’][‘admin’][‘level’] = 10; # admins
$config[‘auth_ldap_groups’][‘staff’][‘level’] = 5; # global read access
$config[‘auth_ldap_prefix’] = ‘uid=’;
$config[‘auth_ldap_group’] = ‘cn=admin,ou=groups,dc=mycompany,dc=com’;
$config[‘auth_ldap_groupmemberattr’] = ‘memberUid’;
$config[‘auth_ldap_userdn’] = true;
$config[‘auth_ldap_userlist_filter’] = ‘service=informatique’;
$config[‘auth_ldap_wildcard_ou’] = false;

The bind was successfully and it prompted for password, but I am getting no such object error

$ ./auth_test.php -u quan -v -d

Error: LibreNMS\Exceptions\AuthenticationException thrown!
No such object

Please also note that I am able to query using ldapsearch, so I think I have my suffix and groupbase correct:

ldapsearch -h servername.mycompany.com -x -b dc=mycompany,dc=com ‘uid=quan’

increase the ldap debug.

This topic was automatically closed 186 days after the last reply. New replies are no longer allowed.