tecnickcom / tcexam

TCExam is a CBA (Computer-Based Assessment) system (e-exam, CBT - Computer Based Testing) for universities, schools and companies, that enables educators and trainers to author, schedule, deliver, and report on surveys, quizzes, tests and exams.
http://www.tcexam.org
Other
564 stars 401 forks source link

LDAP password sync issue #326

Open sudharssic opened 4 years ago

sudharssic commented 4 years ago

Dear team,

We are using LDAP based authentication for TCExam. However when LDAP user changes the password, it is not reflected in TCExam as it stores the password in mysql DB when LDAP user login for first time and does not update when changes the password in active directory. Please let us know if there is a fix to solve this issue.

nicolaasuni commented 4 years ago

TCExam should automatically resync the password. Are you using the latest TCExam version?

ureman2 commented 6 months ago

good day. I can't do LDAP authentication in any way. The config has already been studied. I tried different options, but I still get an "incorrect username or password" at the output. correct the pliz if it's not difficult. define('K_LDAP_ENABLED', true); define('K_LDAP_HOST', 'ldaps://srv.jobname.com'); define('K_LDAP_PORT', 389); define('K_LDAP_PROTOCOL_VERSION', 3); define('K_LDAP_ROOT_DN', 'CN=examen,OU=SystemUsers,DC=jobname,DC=com'); define('K_LDAP_ROOT_PASS', 'password'); define('K_LDAP_BASE_DN', 'CN=examen,OU=SystemUsers,DC=jobname,DC=com'); define('K_LDAP_FILTER', 'uid=sAMAccountName=user');

$ldap_attr = array(); $ldap_attr['dn'] = 'dn'; $ldap_attr['user_email'] = 'mail'; $ldap_attr['user_firstname'] = 'givenName'; $ldap_attr['user_lastname'] = 'sn'; //$ldap_attr['user_regnumber'] = '';

define('K_LDAP_UTF8', false); define('K_LDAP_USER_LEVEL', 1); define('K_LDAP_USER_GROUP_ID', 1);