Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

LDAP user authentication?

Pietrzak Karl -- on Jul. 28 2006
authenticate users using LDAP
Hey everyone!

You may remember me as the guy who's setting up YACS for his university. So far, it's awesome, and we're impressed with all the functionality.

So now we would like to use our university's LDAP system to authenticate users. The page entitled Why should you suggest your boss switch to YACS? talks about YACS's LDAP support.

However, I couldn't find any documentation on it. I might be going blind or crazy, heh.

Can anyone point me in the right direction?

Thanks!
GnapZ
from Caribbean
2970 posts

on Jul. 28 2006


Hello,

I'm sorry, i don't know very well about LDAP login. This function is not ready but maybe Bernard can tell you what to do for this.
TheAlchemist
19 posts

inspired from GnapZ on Jul. 28 2006


GnapZ:

Thanks for the quick reply! I can help write the code if necessary. My PHP skills are pretty new, but with guidance I could do anything.

Thanks!
GnapZ
from Caribbean
2970 posts

inspired from TheAlchemist on Jul. 28 2006


TheAlchemist : Fine, so take a look at the file users/login.php to adapt a LDAP authentification. Thanks.
Bernard
avatar
from nearby-an-airport
Associate, 6805 posts

on Mar. 23 2007


YACS version 7.3 adds LDAP authentication. The code is ready, yet not tested against a real server. Would you like to check it please?
TheAlchemist
19 posts

inspired from Bernard on Mar. 25 2007


Bernard:

Hi there again! Glad to hear LDAP authentication made it! I'll give a test within the next few days and see whether it works with my university's LDAP server and I'll post back. =)

Thanks!
TheAlchemist
19 posts

on Apr. 6 2007


TheAlchemist:

Success!  The YACS installation for my university now successfully authenticates against the university's LDAP server.

Thanks, Bernard!

Next step: SSO?

Bernard
avatar
from nearby-an-airport
Associate, 6805 posts

inspired from TheAlchemist on Apr. 6 2007


TheAlchemist: Thank you for the positive feed-back. Would you mind to document what you've done in a simple web page, maybe in the section for Guide d'installation et de mise à jour please?

Of course we will move to SSO! After your homework, do not hesitate to suggest adequate technical standard for this, by creating another web page at the special space: Post your requirements here

See you...
Vincent
avatar
from on-a-few-hops-from-you
20 posts

on May 21


Hi All,

I am (also) trying to set up LDAP authentication with YACS, sofar no luck.

My LDAP server allows for anonymous bind and when i read yacs/users/authenticators/ldap.php i think it suggests that leaving uname and passwd parameters out results in anonymous bind.

in http://test.azu.nl/yacs/users/configure.php I write in the Authentication management -> Screening -> Use the authenticator :

ldap test.azu.nl "dc=ribs,dc=azu,dc=nl"

This results in "Impossible to bind to LDAP server test.azu.nl." when i try to log in with a valid name.

A simple php script does the anonymous without trouble and returns what the LDAP contents.

Can someone point out what goes wrong plz?

Alf83
24 posts

on May 21


Vincent :

Maybe is it a LDAP V2 protocol issue ? In this case, try adding the following code between at line Nr 120 (after ldap_connect() & before ldap_bind())in the file called users/authenticators/ldap.php:
@ldap_set_option($handleLDAP_OPT_PROTOCOL_VERSION3);

Vincent
avatar
from on-a-few-hops-from-you
20 posts

inspired from alf83 on May 28


Alf83:

Thanks Alf, you got me going into the right direction. It stopped complaining about can't bind. However, when i start 'slapd -d 256' to see what acutally hits the ldap server, it seems that:
  • I have to provide fields for parameters 3 and 4 (dn of user, password to bind to the ldap server.)
  • i don't have to provide a password anymore for the user to be accepted


I expected from the code that the cn was searched for and returned, but this is not the case.

I'll dig some more ...
Alf83
24 posts

on June 3


Vincent: The latest patch may help you :
-  You can now authenticate the user by binding to the LDAP server under a deduced login name (instead of doing a search in the LDAP tree)
-  LDAP v3 is now the default
-  A bug has been solved which allowed any user to enter the site if anonymous binding was activated. Isn't it related to your second point ?
Vincent
avatar
from on-a-few-hops-from-you
20 posts

inspired from alf83 on Aug. 30


Alf83: Sorry to leave the discussion go cold - for several reasons i was not able to handle the server anymore, nor to finish this post.

I hope to be back on track with this server in a month or so.

Rate this page
Posted by TheAlchemist on Jul. 28 2006, commented by Vincent on Aug. 30, (popular)