Little issue when using ldap specific dn and group require

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
tsy
Posts: 15
Joined: Tue Dec 18, 2007 3:29 pm

Little issue when using ldap specific dn and group require

Post by tsy »

Hello there,


I'm a very, very happy Cacti user since a while now.

But I've recently found a little inconvenience (bug or feature?) using LDAP auth with a specific dn (ldap_mode=2).
It turns out cacti bind first with the ldap_specific_dn/password to authenticate the user (as expected), but when ldap_group_require=1, the ldap compare is done using the dn of the authenticated user, regardless we set a ldap_specific_dn/password.
I would expect this ldap_specific_dn to be used for any ldap request. Or am I wrong?

In attach a little patch for lib/ldap.php that works for me against 0.8.8b-7.el6 and shoud still work against branch 0.8.8.

But as I see a bit further in function Search form the same file, maybe better use the specific dn/password in every mode?

To be more specific, this issue is making my life harder as I have to allow each user to read all group attributes, which I find unnecessary and is apparently not required by other software (like pam_ldap or apache mod_authnz_ldap for instance).


Thx to consider my proposal and congrats for the good job anyway.



bEn


PS: the patch also fix what I think is a little mistake in a comment.
Attachments
cacti_ldap.patch
Patch for ldap.php
(591 Bytes) Downloaded 60 times
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: Little issue when using ldap specific dn and group requi

Post by BSOD2600 »

Have you tried 0.8.8d? there were 2 LDAP issues fixed http://www.cacti.net/changelog.php

If the problem still exists, please file a bug against 0.8.8d http://www.cacti.net/bugs.php
tsy
Posts: 15
Joined: Tue Dec 18, 2007 3:29 pm

Re: Little issue when using ldap specific dn and group requi

Post by tsy »

Thanks a lot for your answer,
BSOD2600 wrote:Have you tried 0.8.8d? there were 2 LDAP issues fixed http://www.cacti.net/changelog.php
I've not tried 0.8.8d (cause not packaged in EPEL...).
But I know for sure the patch still make sense against the current 0.8.8 branch (since I've checked out from SVN).
BSOD2600 wrote:If the problem still exists, please file a bug against 0.8.8d http://www.cacti.net/bugs.php
I guess I could try a manual update to 0.8.8.d to be really sure, but I'm 99% sure it's not fixed in any 0.8.8 version.

Point is: it is even a bug? I would understand if some dev would not approve the patch.
Anyhow, I'll try to find time to submit it... Can always be rejected :-p
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests