FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » ldap user login (debugging the ldap plugin)
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: ldap user login [message #162380 is a reply to message #162376] Tue, 04 May 2010 16:48 Go to previous messageGo to previous message
lbrigman124 is currently offline  lbrigman124   United States
Messages: 26
Registered: March 2010
Karma:
Junior Member
I got the plugin working in my environment.
There were a couple of things that had problems that were difficult to find.
1) how to determine what was wrong with the connect?
Solution: enable ldap debugging Code added. Submitted as commented out.
2) Syntax error in code for checking bind failure was wrong.
Solution: Fix syntax error and update the message info.
3) Why does the lookup/search fail?
Solution: Turn Referrals to 0. http://www.mantisbt.org/bugs/view.php?id=7620
This was in the php.net manual but no reasons were given as to why one should use it.
Even the link didn't understand why you need to do this in an Active Directory environment. I
believe I have a clue. If you have more than one site (ie a domain controller per site) then
your search will get referred to the master of the tree which in my case is not the local. It would always
get error #1: Operation failed.


Diffs attached for the fixes.
Diff against $Id: ldap.plugin 4939 2010-04-06 20:14:17Z

Could probably add the debug and referral as options in the
web interface.
  • Attachment: ldap.diff
    (Size: 1.31KB, Downloaded 1008 times)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ID For Messages to Move
Next Topic: Can't Log in to Admin
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 17:00:04 GMT 2024

Total time taken to generate the page: 0.03837 seconds