Hi guys,
I have a problems with LDAP authentication in cacti. One of the problem was solved. Using group membership functionality I was receiving and error about ldap_group_member_type variable which was not defined. This is a bug an I resolved it by replacing
if ($ldap_group_member_type == 1)
with
if ($this->group_member_type == 1)
in lib/ldap.php file.
But now I have another problem. Function ldap_compare returns "-1" and I don't know why.
My Ldap server is not supporting anonymous authentication so I'm using "Specific Searching" Mode in Cacti configuration.
Cacti configuration:
LDAP Group Settings:
-> Group Distingished Name (DN): cn=cactiauth,ou=sysadmin,ou=groups,dc=comp,dc=com
-> Group Member Attribute: member
-> Group Member Type: Distingished Name
LDAP Specific Search Settings:
-> Search Base: dc=comp,dc=com
-> Search Filter: (&(objectClass=inetOrgPerson)(sn=<username>))
-> Search Distingished Name (DN): cn=admin,dc=comp,dc=com
-> Search Password: <password>
With this setup ldap_comprare fucntion returns -1
If I'm not using "group membership" functionality LDAP authentication works fine.
Can anyone help?
Thx
ldap_compare function return -1
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Please open a bug report at http://bugs.cacti.net. Attach the info that you provided here to that bug report and then update this post with the bug report link.
Thanks,
TheWitness
Thanks,
TheWitness
True understanding begins only when we realize how little we truly understand...
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Life is an adventure, let yours begin with Cacti!
Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages
For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Who is online
Users browsing this forum: No registered users and 3 guests