Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

No information for the plugin 'mysql-auth' is available. It may have been removed from distribution.

MySQL Authentication Plugin

This plugin allows users to authenticate to a Hudson instance using credentials stored in a MySQL database.

This plugin is in the early stages of development, and development support is appreciated.

More details to come...

Source code


  1. Unknown User (lbrigandat)

    I try to install mysql-auth 1.0 with hudson 1.366 and I've the following exception when I submit login page :

    exception java.lang.IllegalArgumentException: retrieveUser returned null - a violation of the interface contract

    My configuration (extract config.xml) :
    <securityRealm class="hudson.plugins.mysql.MySQLSecurityRealm">

    An idea ?

    1. Unknown User (cschulz)

      You have to add the MySQL library to the lib folder of your jre.

  2. Unknown User (wolfgang_fahl_bitplan)

    on an Ubuntu 12.04 LTS system i tried the following "to add the MySQL library to the lib folder of your jre"

    sudo apt-get install libmysql-java
    wf@diana:/usr/lib/jvm/java-6-openjdk-common/jre/lib/ext$ sudo ln -s /usr/share/java/mysql-connector-java.jar mysql-connector-java.jar

    The problem exception java.lang.IllegalArgumentException: retrieveUser returned null - a violation of the interface contract persists.

    I have filed the Bugreport https://issues.jenkins-ci.org/browse/JENKINS-14267

    1. Unknown User (vosloco)

      I added the jar to my jre, but it still gave me that nasty stack trace.  I even tried to add the mysql-connector-java.jar to the class path and still got the same stack trace.  Is there anything else I can try?  

      I am on RedHat 6 with java version java version "1.6.0_24".

  3. Unknown User (swift3907)

    I have the same issue as Royce King

    Is there any update for this plugin? 

  4. Unknown User (smokris)

    I experienced the same problem ("retrieveUser returned null"), and was able to get MySQL Authentication working by doing the following:

    • Download MySQL Connector/J from https://dev.mysql.com/downloads/connector/j/
    • Create a lib directory in the working directory from which Jenkins runs (the Winstone Documentation says the "folder for additional jars ... defaults to "lib" under the current directory, with any jar or zip files in this folder being added to the webapp classpath.")
    • Copy mysql-connector-java-5.1.25-bin.jar (from the downloaded archive) into the new lib directory

    Alternatively, you can add a --commonLibFolder argument to specify the location of MySQL Connector/J.