Login twice required with LDAP (2.1.1)
Hello,
I've done an upgrade from 1.8.5 to 2.1.1. The LDAP authentication is buggy and have to be manually fixed. After some fix, a problem still occurs : for a new user, the first login will told him : "login/pass incorrect" ; just click again on the "ENTER" button (without any change) and the user is now connected.
Here are fixes manually done (<dokeos>/main/auth/ldap/authldap.php) :
- [ldap_find_user_info] : use "sAMAccountName" instead of "uid" (we are using AD from Microsoft)
- [ldap_find_user_info] : comment out all "$result['courses'] =" which write error to Apache and is not required for us (Paris5???)
- [ldap_update_user] : commented out this line which will call (in another function) an undefined/unimplemented function : ldap_subscribe_user_to_session($login,$uinfo);
After that, login through LDAP works and record of new user too ... but should do it twice (I've watched in MySQL and my user is only recorded once).
Do you have any idea of what's going wrong ? I've tried to fix it but I'm not a PHP developer .. I also tried to copy code from "login.php" to "newUser.php" (past it after the locally recorded user) but it won't works :-/.
I'm recreating this post and I hope to get help and help other people which get same error.
I personally think the LDAP authentication is not well written and is buggy (even out of the box without any upgrade : see the "get_session_by_ldap_cursus" which is not provided ...). Should be fixed :)
Thanks for your help
EDIT: of course, I'm also here to help to debug ;)
- Vous devez vous identifier ou créer un compte pour écrire des commentaires

Hi thanks for putting your
Hi thanks for putting your change log here, i followed and ldap login still not working, can you help me, i think my problem is in the configuration, i dont know how to fill the ldap form, or how to import and ldap user because when i do it, the list is empty.
Thanks for your help
Needs more comments and possible fixes
Hi,
I see. I ask the development team to provide more info and possibly a fix on this.
LDAL Active Directory issues
Hi, We are a school and were wondering how to get LDAP working so students from active directory can login without any issues... however we are running into an error:
Incorrect username and/or password
I have tried all kinds of settings and LDAP extension is enabled... Im out of idea's? anything that you have or could suggest would be great.... any ideas?
Would there be away to add a check LDAP settings button?
Would love to get this up and running asap.
My domain is called College.lan and in the settings is have tried ldap://gserver1.college.lan, the IP address also in domain tried dc=college, dc=lan or dc=college,dc=lan also in capitals. Also tried Master accounts and nothing seems to get passed this error Chamilo had the same problem (based on dokeos) however my student manager that we use with samaccount as the search term worked. I have tried samaccount, sAMAccount etc
Trev
LDAP issues
Hi, We are a school and were wondering how to get LDAP working so students from active directory can login without any issues... however we are running into an error:
Incorrect username and/or password
I have tried all kinds of settings and LDAP extension is enabled... Im out of idea's? anything that you have or could suggest would be great.... any ideas?
Would there be away to add a check LDAP settings button?
Would love to get this up and running asap.
My domain is called College.lan and in the settings is have tried ldap://gserver1.college.lan, the IP address also in domain tried dc=college, dc=lan or dc=college,dc=lan also in capitals. Also tried Master accounts and nothing seems to get passed this error Chamilo had the same problem (based on dokeos) however my student manager that we use with samaccount as the search term worked. I have tried samaccount, sAMAccount etc
I also uncommented lines:
// Uncomment these lines to activate ldap
$extAuthSource["ldap"]["login"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/login.php";
$extAuthSource["ldap"]["newUser"] = $_configuration['root_sys'].$_configuration['code_append']."auth/ldap/newUser.php";
C:\wamp\www\dokeos-2.1.1\main\inc\conf\configuration.php
But now I get this error:
Trev