dgzyk / phpvirtualbox

Automatically exported from code.google.com/p/phpvirtualbox
Other
0 stars 0 forks source link

Problem with LDAP authentication #687

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi !

I'm working as a sysadmin in an IT company.
I've been looking at how to configure phpvirtualbox to authenticate users 
against our internal LDAP server, which runs on openldap 2.4.

I first followed the indications on the wiki 
(https://code.google.com/p/phpvirtualbox/wiki/AuthenticationModules#LDAP), but 
it still didn't work.

I managed to make it work by taking a look at lib/auth/LDAP.php.
The problem is with the bind operation. Indeed, the user DN is not what it 
should be. I just changed sprintf($config['bind_dn'], $username) to 
sprintf($this->config['bind_dn'], $username).
After doing this, the authentication worked for me.

I just wanted to let you know about this, as you might not have sufficient 
feedback to be aware of that bug.

Original issue reported on code.google.com by anthony....@gmail.com on 23 Apr 2013 at 2:55

GoogleCodeExporter commented 8 years ago
Thanks! This will be updated in the code

Original comment by imooreya...@gmail.com on 11 Jul 2013 at 4:37