Loading...
 
LDAP / Active directory

LDAP / Active directory


Pear::Auth not working

I cannot get Pear::Auth working for the life of me.

Authentication is set to Tiki and Pear Auth, and "Create user if not in Tiki?" is checked, along with my LDAP server's information. However, the LDAP authentication never seems to happen. I have tried setting debug on in LDAP.php under Pear, but still don't see anything. I even put a line towards the top of the code with garbage, hoping that it would bomb, and yet I don't see any errors other than that the password was invalid. It seems to me the LDAP authentication code is not even getting called.

Has anyone else ran into this problem? I'm running version 2.2 with PHP Version 5.1.6.

Thanks,
Ross.

United States

Ross, what LDAP server are you authenticating against? Is there anything in the log showing and attempted login? Also, can you post your config somewhere?

\\Greg

It is a Novell EDir. It does require an SSL connection, so I've got

TLS_REQCERT never

in my /etc/openldap/ldap.conf.

Nothing in the log even about it attempting to do an LDAP authentication. I wasn't sure about which configuration you wanted, but here's a screen shot of the Pear configuration.

Image
Thanks,
Ross.


United States


That's what I was looking for. I don't see anything obviously wrong. one suggestion - to start, create a user in tiki and uncheck the 'Create if not in tiki' box. Then try to login. You'll want that username to match the uid of the eDirectory user. This way we're only trying to make auth work, not auth + create.

So I wasn't very explicit, is there anything in the eDir log?

\\Greg


Greg,
I created a new Tiki from scratch and everything worked like a charm. Since we hadn't put much effort into the one I was working with, we'll just start fresh with the empty database.

In the previous installation, I did, through debugging the code, make sure that the Auth code was called. I debugged it all the way into Pear's Auth module, but then gave up after that.

Thanks for your help.

Ross.


Upcoming Events

1)  18 Apr 2024 14:00 GMT-0000
Tiki Roundtable Meeting
2)  16 May 2024 14:00 GMT-0000
Tiki Roundtable Meeting
3)  20 Jun 2024 14:00 GMT-0000
Tiki Roundtable Meeting
4)  18 Jul 2024 14:00 GMT-0000
Tiki Roundtable Meeting
5)  15 Aug 2024 14:00 GMT-0000
Tiki Roundtable Meeting
6)  19 Sep 2024 14:00 GMT-0000
Tiki Roundtable Meeting
7) 
Tiki birthday
8)  17 Oct 2024 14:00 GMT-0000
Tiki Roundtable Meeting
9)  21 Nov 2024 14:00 GMT-0000
Tiki Roundtable Meeting
10)  19 Dec 2024 14:00 GMT-0000
Tiki Roundtable Meeting