Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-27685

Could not enabel ldap plugin on jenkins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ldap-plugin
    • None

      Hello Support,

      I would appreciate if some one give help on the following

      1) Install Jenkins 1.606 on windows
      2) Ldapplugin 1.11

      Here is the config ldap enable security

      <useSecurity>true</useSecurity>
      <authorizationStrategy class="hudson.security.FullControlOnceLoggedInAuthorizationStrategy"/>
      <securityRealm class="hudson.security.LDAPSecurityRealm" plugin="ldap">
      <server>ldap://test-corpldap.com:389</server>
      <rootDN>dc=mycompany,dc=com</rootDN>
      <inhibitInferRootDN>false</inhibitInferRootDN>
      <userSearchBase>ou=internal,ou=users,dc=statestreet,dc=com</userSearchBase>
      <userSearch>(&(ObjectClass=person)(uid=

      {0}

      ))</userSearch>
      <managerDN>uid=mgrid,ou=system,ou=users,dc=mycompany,dc=com</managerDN>
      <managerPassword>UGFzc3dvcmRAMTIz</managerPassword>
      <disableMailAddressResolver>false</disableMailAddressResolver>
      </securityRealm>

      Everytime we try, we always see invalida login error screen, dont know how to enable debug. On the comsole we see following while start up.

      INFO: Completed initialization
      Mar 31, 2015 10:11:28 AM org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
      INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@e1d0e53: display name [Root WebApplicationContext]; startup date [Tue Mar 31 10:11:28 EDT 2015]; root of context hierarchy
      Mar 31, 2015 10:11:28 AM org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
      INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@e1d0e53]: org.springframework.beans.factory.support.DefaultListableBeanFactory@21cf628a
      Mar 31, 2015 10:11:28 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@21cf628a: defining beans [initialDirContextFactory,bindAuthenticator,ldapUserSearch,authenticationManager,authoritiesPopulator]; root of factory hierarchy
      Mar 31, 2015 10:11:28 AM org.acegisecurity.ldap.DefaultInitialDirContextFactory setProviderUrl
      INFO: URL 'ldap://test-corpldap.com:389/dc=mycompany,dc=com', root DN is 'dc=mycompany,dc=com'
      Mar 31, 2015 10:11:28 AM org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator setGroupSearchBase
      INFO: groupSearchBase is empty. Searches will be performed from the root: dc=mycompany,dc=com
      Mar 31, 2015 10:11:28 AM org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
      INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@5771e1f8: display name [Root WebApplicationContext]; startup date [Tue Mar 31 10:11:28 EDT 2015]; root of context hierarchy
      Mar 31, 2015 10:11:28 AM org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
      INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@5771e1f8]: org.springframework.beans.factory.support.DefaultListableBeanFactory@69f5350b
      Mar 31, 2015 10:11:28 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@69f5350b: defining beans [filter,legacy]; root of factory hierarchy
      Mar 31, 2015 10:11:28 AM hudson.WebAppMain$3 run
      INFO: Jenkins is fully up and running
      Mar 31, 2015 10:11:48 AM hudson.model.AsyncPeriodicWork$1 run
      INFO: Finished Download metadata. 21,455 ms

      I also need help to enable the debug to see if the request is hitting acegi.

      thanks
      Venkat

            Unassigned Unassigned
            vsathyamurthy Venkat Sathyamurthy
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: