Menu

#1651 Add admin user with LDAP authentication

open
nobody
1
2018-12-05
2018-12-04
No

Just wondering the easiest way to add a single admin account while still using ldap for authentication. Thanks

Discussion

  • Campbell Morrison

    For just a single admin account the easiest way is probably to add the administrator in the config file:

    unset($auth["admin"]);   // Include this when copying to config.inc.php
    $auth["admin"][] = "admin_username";
    
     
  • John Beranek

    John Beranek - 2018-12-05

    I was unsure if you were asking for an admin user which wasn't an LDAP user. If so, I'd say you'd have to update the auth_ldap scheme yourself, as it's not a simple change.

     
  • Gordon Johnson

    Gordon Johnson - 2018-12-05

    Thanks so much Campbell and John. Those lines of code worked without any issue - thanks again so much for your help

     
MongoDB Logo MongoDB