[Maintain-dev] [JIRA] Created: (MNT-1352) Creating MySQL users

Danny Robert (JIRA) jira at osuosl.org
Wed Jun 1 18:08:46 PDT 2005

Creating MySQL users

         Key: MNT-1352
         URL: http://bugs.osuosl.org/browse/MNT-1352
     Project: Maintain
        Type: Bug
  Components: Modules  
 Environment: maintain being run with MySQL authentication
    Reporter: Danny Robert
 Assigned to: Danny Robert 
    Priority: Minor
     Fix For: 3.0

in /(ht)docs/user.php in the action "create_mysql_user", validation begins:

    //If we are using ldap_auth, make sure username isn't already in LDAP
    if ($conf['ui']->ldap_auth()) {
            if (!$user->check_auth_name($username)) {

                    $conf['error']->add_error('username', "Username already exists in LDAP.");
                    $action = 'show_add_user';
            } //check auth name
    } // if ldap_auth()


$user->check_auth_name($username) returns true if the name exists.  therefore:

!$user->check_auth_name($username) will be true if the name does not exist, counter to the error message and program flow.

Fix simply requires removing the "!"

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
If you want more information on JIRA, or have a bug to report see:

More information about the Maintain-dev mailing list