phpScheduleIt
May 24, 2013, 07:26:59 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: phpScheduleIt 2.4.2 has been released!
 
   Home   Help Login Register  
Pages: [1]
  Print  
Author Topic: LDAP, ldap url & binding  (Read 4434 times)
boblenon
Newbie
*

Karma: 0
Posts: 1


« on: March 26, 2008, 01:58:20 PM »

I've been using phpScheduleIt for some time now (since 1.0.x something) ... and the one thing that has not changed (which I've never made a post about) is the ldap configuration. Every time I upgrade, I must "fix" the LDAPEngine class.

The way the system is written, it assumes the following:
 - ldap server is not over ldaps (SSL)
 - binding is anonymous OR to a specified account
 
I am in an environment where I need to connect via ssl, and non anon-bind ldap - essitaly by binding with the username/pw supplied I have authenticated the user

So currently (1.2.8), I've changed LDAPEngine as such:

Line 61:
Code:
$this->ldap = ldap_connect( "ldaps://ldap.foo.com:636/" ) or die ("Could not connect to LDAP server." );

Line 68: (the basedn is the same as $config['ldap']['basedn']
Code:
$bind = @ldap_bind( $this->ldap, "uid=$uid,ou=people,dc=foo,dc=com", $password );


This connects via SSL, then binds using the username/password supplied via the form. Provided the user/pw binds, I have verified the user ... if one really wanted to, one could futher add the user a group in ldap to permit/disallow them from logging in.

So as a new feature, I would recommend the $conf[] to allow for ldap urls (makes handling ssl/port stuff easier),  and allowing authentication via ldap (as I did with the ldap_bind call).

-dave
Logged
Nick
Administrator
Hero Member
*****

Karma: 15
Posts: 5419


WWW
« Reply #1 on: March 27, 2008, 10:01:37 AM »

Good suggestion.  For phpScheduleIt 2.0, the LDAP authentication is going to be rewritten and this will all be taken into consideration.
Logged
phloggu
Newbie
*

Karma: 0
Posts: 8


« Reply #2 on: April 02, 2008, 01:02:00 PM »

Please see also http:///forums/viewtopic.php?t=2903.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!