<< Back
Message for this thread
Posted by Messages text
Gambetti Luca

Noavatar
Total post : 14
> Profile
Written on : 03/09/2009 18:04 ( more than one month )
Object : LDAP problem
Hi all,
First of all, thank you for this great product. I have successfully implemented Docebo as an elearning tool in a production site in Northern Italy. I have also configured successfully LDAP for accessing our Windows Active Directory. But one of our users (unluckily the HR Manager) cannot access inserting her correct username and password. I know, it is a difficult question... but where the problem could be ? Any ideas for debugging ?

Thank you,
Luca 
 
Erba Claudio

Avatar
Total post : 2688
> Profile
Written on : 03/09/2009 20:05 ( more than one month )
Object : Re: LDAP problem
Does the user is in the LMS database? Users are imported in the LDAP but not the password then your first try is to check there
Claudio 
Docebo CEO and Founder
www.docebo.com
 
Gambetti Luca

Noavatar
Total post : 14
> Profile
Written on : 08/09/2009 08:52 ( more than one month )
Object : Re: LDAP problem
Thank you Claudio; yes, the user (now the users; they are two that cannot access) is into the LMS database. Do you know if the use of uppercase / lowercase in the username could be the cause of problem ? Both of the users have their username with a mix of uppercase / lowercase characters. And what happens if the Windows Active Directory password contains special characters ?

Thank you again,
Luca 
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 08/09/2009 10:36 ( more than one month )
Object : Re: LDAP problem

Hello,
the password can contain special characters and this should not be a problem.. but the username is probably case sensitive so please check that it is typed with the correct uppercase / lowercase letters.

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
Gambetti Luca

Noavatar
Total post : 14
> Profile
Written on : 08/09/2009 16:10 ( more than one month )
Object : Re: LDAP problem
Extended ASCII characters in the password are not rendered as expected when a form passes its contents to PHP, and characters having a special meaning are escaped. I have applied a temporary fix like that in lib.usermanager.php line 878:

function getLoginInfo() {

$info = array(

'userid' => ( isset($_POST['login_userid']) ? $_POST['login_userid'] : '' ),

'password' => ( isset($_POST['login_pwd']) ? stripslashes(utf8_decode($_POST['login_pwd'])) : '' ) );

 
 More elegant and / or general solutions are welcome.
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 09/09/2009 11:08 ( more than one month )
Object : Re: LDAP problem
Hi,
this is a bit weird as it should  avoid it as there is a specific check that should leave the password untouched. (in the LMS - as you can see from doceboLms/lib/lib.preoperation.php)

Maybe the problem is due to your magicquotes settings; you can also check them from
configuration > Common > Diagnostic tool .. but we haven't experienced any problem yet with our installations that are using it with an utf8 connection.

bye,
Giovanni.

Docebo Staff
 - Docebo 4 released! -

 
Gambetti Luca

Noavatar
Total post : 14
> Profile
Written on : 09/09/2009 18:52 ( more than one month )
Object : Re: LDAP problem
Thank you Giovanni,
yes, you are right, I have magic quotes on. My problem was twofolded; special characters were escaped (due to magic quotes), and extended characters were misinterpreted (due to ???). I have left knowingly magic quotes on, having fear to interfere with other PHP applications working on the same http server as Docebo.

Luca 
 
Derks Giovanni

Avatar
Total post : 1861
> Profile
Written on : 10/09/2009 12:28 ( more than one month )
Object : Re: LDAP problem

Hi,
probably (depends on your apache cofiguration - allowoverride) you can put an .htaccess file into your docebo installation root that disables the magic quotes for that folder and subfolders:

php_value magic_quotes_gpc "off" 

this doesn't even requires an apache restart.
..let me know ;)

bye,
Giovanni. 

Docebo Staff
 - Docebo 4 released! -

 
<< Back