Menu

Strange error message when tried the LDAP authentication

Help
2013-11-20
2014-03-20
  • stephane de labrusse

    Hi ian

    I wanted to play with LDAP authentication and phpvirtualbox/smeserver
    But i have always this error message, whatever are values in config.php

    "An unknown PHP error occurred. This is most likely a syntax error in config.php in phpVirtualBox's folder. The most common errors are an unclosed quote or a missing semicolon in a configuration item that has been entered (e.g. location, username, or password).

    Depending on your PHP configuration, navigating directly to config.php in your web browser may display the PHP error message.

    If find that this is not the case, or have no idea what this error message means, please raise the issue at http://code.google.com/p/phpvirtualbox/issues/list"

    It is possible that i put bad values to authenticate but in this case, the message should be adapted to reflect the error.

    this is the chapter i follow https://sourceforge.net/p/phpvirtualbox/wiki/Authentication%20Modules/#ldap

    and this is the default value I added

    var $authLib = 'LDAP';
    var $authConfig = array(
    'host' => '127.0.0.1', // LDAP server IP
    'bind_dn' => 'uid=%s, ou=admins, dc=internal, dc=local', // %s will be replaced with login username
    'adminUser => '' // leave blank to let all users be admins in phpVirtualBox or specify a username
    );

    i have tried to adapt to my configuration, but all the time i have had the same error...and even with the code above...

    If you have an idea ian, not sure it is a bug, possible that i'm the bug :D

     
  • Ian Moore

    Ian Moore - 2013-11-27

    Hello,

    Can you attach your entire config.php file please? You can remove the username / password portion.

     
  • stephane de labrusse

    sorry for this long delay...i need to take some time on this ldap authentication. It is really interesting.

    I will go back here soon.

     
  • stephane de labrusse

    Hi ian

    bug raised the error come from a ' missing

    see https://sourceforge.net/p/phpvirtualbox/bugs/20/

    after that i can log in without a dialog box prompted where write passwords and name of users. it seems completely opened :)

    see my ldap configuration

    var $authLib = 'LDAP';
    var $authConfig = array(
    'host' => '127.0.0.1', // LDAP server IP
    'bind_dn' => 'uid=%s, ou=admins, dc=mycompany, dc=local', // %s will be replaced with login username
    'adminUser' => '' // leave blank to let all users be admins in phpVirtualBox or specify a username
    );

     

Log in to post a comment.