Question

OpenLdap filter profblem

  • 5 June 2023
  • 1 reply
  • 131 views

Badge

Hello Community

I try to configure my centreon server ( opensource version ) using openldap server.

when try to set “ user filter “ like that 

(&(memberof=cn=XXXXXXXXXXX,cn=groups,cn=accounts,dc=XXXXX,dc=XXXXXXX)) , Centreon throw this error : Incorrect LDAP filter syntax

but when i try to import manually the list of user using the same filter , i can see all the list of users

in /var/log/centreon/ldap.log

 

2023-06-05 05:35:58|0|0|0|LDAP AUTH : uid=XXXXXXXXX,cn=users,cn=accounts,dc=XXXXXX,dc=XXXXXXX :: Authentication in progress
2023-06-05 05:35:58|0|0|0|LDAP AUTH : Success
2023-06-05 05:35:58|0|0|0|LDAP AUTH - Error : No DN for user XXXXXXXXXXX


1 reply

Badge

Hey,

so what is your OID you try to filter out?

(&(samAccountName=%s)(objectClass=user)(samAccountType=805306368))

(&(uid=%s)(objectClass=user)(objectClass=inetOrgPerson))

First is for SAMBA Accounts and 2nd is for OpenLDAP accounts.

Let me know because I can help you all the way since we use OpenLDAP as well.

 

regards

 

Olaf

Reply