dgzyk / phpvirtualbox

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

adminUser setting not working for ActiveDirectory authentication #649

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use ActiveDirectory authentication
2. set adminUser setting for a user in config
3. login with the user and try to do admin stuff

What is the expected output? What do you see instead?
Login works but I dont have admin permissions, e.g. grouping vms

What version of phpVirtualBox, VirtualBox, and PHP are you using? On what
operating system?
phpVirtualBox 4.2.4

Please provide any additional information below.
The admin session variable not yet set when comparing with adminUser setting.
I fixed the issue by changing lines 130 and 153 in lib/auth/ActiveDirectory.php 
to
$_SESSION['admin'] = (strtolower($this->config['adminUser']) == 
strtolower($username));

Original issue reported on code.google.com by f.traenk...@gmail.com on 12 Dec 2012 at 1:08

GoogleCodeExporter commented 8 years ago
Merged. Thank you.

Original comment by imooreya...@gmail.com on 11 Jul 2013 at 3:56