Authenticating through LDAP

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
oddsmojo
Posts: 6
Joined: Thu Aug 19, 2010 9:02 pm

Authenticating through LDAP

Post by oddsmojo »

I'm having a problem authenticating through openLDAP using 0.8.7g. I can't seem to figure out how to solve this.

Tree :: dc=internal,ou=People,uid=USERNAME

Whenever I authenticate, I'm getting login invalid and a different DN is being passed through to the LDAP server than what I have set in the settings.

| ldap_dn | uid=<username>,ou=People,dc=internal

When I force the auth_login.php to exit and dump its variables, I see that ldap_dn is set to ::

[ldap_dn_search_response] => Array
(
[dn] => ou=Users,dc=example,dc=com
...
)

I can't for the life of me get this configured properly to work through LDAP. I'm not sure if what I'm seeing i the reason or not, but no where in the dump do I see the proper ldap_dn set as I have set it in settings and I'm getting authentication failures on valid users.

I've also configured a multitude of services using this configuration and haven't experienced any issue so I'm sure there is something I need to set to make this work.

Any help would be greatly appreciated.

Thank you!

- Robert
oddsmojo
Posts: 6
Joined: Thu Aug 19, 2010 9:02 pm

Post by oddsmojo »

Turned logs to verbosity 5, unable to connect to ldap server. Troubleshooting this issue now... I can telnet to the server and authenticate from command line so I'm not sure why the cacti software can't.

Suggestion for next release, trap connection failures and enable advanced connection logging that show the connection states to analyze why it cannot connect.

Might be great to specify the logging location. Log location 2 doesn't say where it is sending it to ( though I found it very easily ).

Love he software, don't take this as criticism!

Thank you!

- Robert
oddsmojo
Posts: 6
Joined: Thu Aug 19, 2010 9:02 pm

Post by oddsmojo »

Coding error found :: 0.8.7g :: /var/www/cacti/lib/ldap.php ( 375 )


}elseif ($mode == "1"){
/* assume anonymous */
$specific_dn = "";
$specific_password = "";
}


Changed to ::

}elseif ($this->mode == "1"){
/* assume anonymous */
$specific_dn = "";
$specific_password = "";
}

Getting closer...
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This has been fixed by one of the official patches ...
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests