English « Bug tracker «
LDAP user authentication?
authenticate users using LDAP
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!
Vincent | Yet a newer and happier YACS Just installed the latest (RC30). Thanks Bernard and others, keeping yacs going! Back to LDAP With my server: ldap.example.com authentication works if i fill out this in http://example.com/yacs/users/configure.php -> 'tab authentication' -> 'use the authenticator' ldap ldap.example.com "cn=%u,ou=users,dc=ldap,dc=example,dc=com" %p Great! BUT this works only if plaintext passwords are stored in the LDAP directory. What if i would like to authenticate against passwords stored as {md5}?
|
| FRANCOIS Alexandre | * 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 ?
|
| FRANCOIS Alexandre | 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:
|
Vincent | 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? |
| Pietrzak Karl | TheAlchemist: Success! The YACS installation for my university now successfully authenticates against the university's LDAP server. Thanks, Bernard! Next step: SSO?
|
Bernard Paques |
|
| Manu | 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.
|











