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

Michael Clay (JIRA) jira at osuosl.org
Wed Aug 31 10:25:07 PDT 2005


     [ http://bugs.osuosl.org/browse/MNT-1352?page=history ]
     
Michael Clay resolved MNT-1352:
-------------------------------

     Resolution: Fixed
    Fix Version:     (was: 2.6)

Fixed in SVN

> 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
>     Assignee: Danny Robert
>     Priority: Minor

>
> Original Estimate: 1 minute
>         Remaining: 1 minute
>
> 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()
> Problem:
> $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:
   http://bugs.osuosl.org/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



More information about the Maintain-dev mailing list