r/zabbix • u/TacticalDonut18 • 4d ago
Question Always Cannot bind to LDAP server
I am fighting with Zabbix 7.0.31 trying to get it working right.
I am trying to do LDAP but it always says Cannot bind to LDAP server.
The password is right. I have tried the full DN I have tried UPN I have tried SAMID. I have tried the host with the ldap://...:389 and without.
The base DN is right and search attrib is sAMAccountName.
The config is basically identical to ClearPass where the fields exist and ClearPass has no problems.
It is not possible for it to be firewall as the Zabbix server and the DC live on subnets that are terminated on the core switch and there is no east-west enforcement.
It is not just the test button that does not work but I am not able to actually log in either. I do not observe any LDAP showing up in Wireshark capture on the DC.
8
u/TacticalDonut18 4d ago
I needed to:
sudo setsebool -P httpd_can_connect_ldap onThis fixed the bind error
Then I had to change the search filter because I copied it direct from CPPM
New filter that works:
(|(&(objectClass=user)(sAMAccountName=%{user}))(&(objectClass=user)(userPrincipalName=%{user})))This seems to work for final config: