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

6 Comments

  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
    org.springframework.util.Assert.notNull(Assert.java:112)
    org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:129)
    org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManager.java:195)
    org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthenticationManager.java:45)
    org.acegisecurity.ui.webapp.AuthenticationProcessingFilter.attemptAuthentication(AuthenticationProcessingFilter.java:71)
    org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:252)
    hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
    hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
    hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
    hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
    hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)

    My configuration (extract config.xml) :
    <securityRealm class="hudson.plugins.mysql.MySQLSecurityRealm">
    <myServer>myMysqlHost</myServer>
    <myUsername>dbName</myUsername>
    <myPassword>myPassword</myPassword>
    <myDatabase>myDatabase</myDatabase>
    <myDataTable>myUser</myDataTable>
    <myUserField>myLoginField</myUserField>
    <myPassField>myPasswordFiel</myPassField>
    <myPort>3306</myPort>
    <myCondition></encryption>
    </securityRealm>

    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.