Anybody on this, please?
On 26 Apr, 18:03, Nunni <nunni...@gmail.com> wrote: > Hi all. > > I've been asked to setup a support server for software development, > and one of the required applications is jenkins. > I installed the official packed from the linux distribution I'm using: > Ubuntu 12.04 has jenkins 1.424.6 > I need to set up ldap authentication and I'm having a hard time with > it.. I tried both the LDAP and the AD plugin but both fails. > I know that the DC ldap port is reacheable because there's redmine on > the same server that does the auth there. > So.. here's the command I give: > > # jenkins-cli login --username user (I tried also user@domain and > domain\user ) > > I then get prompted for the password and after that I get: > > org.acegisecurity.BadCredentialsException: Bad credentials > at > org.acegisecurity.providers.dao.AbstractUserDetailsAuthenticationProvider.a > uthenticate(AbstractUserDetailsAuthenticationProvider.java: > 125) > at > org.acegisecurity.providers.ProviderManager.doAuthentication(ProviderManage > r.java: > 197) > at > org.acegisecurity.AbstractAuthenticationManager.authenticate(AbstractAuthen > ticationManager.java: > 47) > at > hudson.security.LDAPSecurityRealm.authenticate(LDAPSecurityRealm.java: > 379) > at hudson.security.AbstractPasswordBasedSecurityRealm > $1.authenticate(AbstractPasswordBasedSecurityRealm.java:81) > at hudson.cli.CLICommand.main(CLICommand.java:178) > at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:82) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: > 57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp > l.java: > 43) > at java.lang.reflect.Method.invoke(Method.java:616) > at hudson.remoting.RemoteInvocationHandler > $RPCRequest.perform(RemoteInvocationHandler.java:274) > at hudson.remoting.RemoteInvocationHandler > $RPCRequest.call(RemoteInvocationHandler.java:255) > at hudson.remoting.RemoteInvocationHandler > $RPCRequest.call(RemoteInvocationHandler.java:215) > at hudson.remoting.UserRequest.perform(UserRequest.java:118) > at hudson.remoting.UserRequest.perform(UserRequest.java:48) > at hudson.remoting.Request$2.run(Request.java:287) > at java.util.concurrent.Executors > $RunnableAdapter.call(Executors.java:471) > at java.util.concurrent.FutureTask > $Sync.innerRun(FutureTask.java:334) > at java.util.concurrent.FutureTask.run(FutureTask.java:166) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java: > 1110) > at java.util.concurrent.ThreadPoolExecutor > $Worker.run(ThreadPoolExecutor.java:603) > at java.lang.Thread.run(Thread.java:679) > > and here's my config.xml: > > <?xml version='1.0' encoding='UTF-8'?> > <hudson> > <disabledAdministrativeMonitors/> > <version>1.424.6</version> > <numExecutors>2</numExecutors> > <mode>NORMAL</mode> > <useSecurity>true</useSecurity> > <authorizationStrategy class="hudson.security.AuthorizationStrategy > $Unsecured"/> > <securityRealm class="hudson.security.LDAPSecurityRealm"> > <server>my.cd.controller</server> > <rootDN>DC=dc,DC=controller</rootDN> > <inhibitInferRootDN>false</inhibitInferRootDN> > <userSearchBase>OU=myou</userSearchBase> > <userSearch>uid={0}</userSearch> > <managerDN>CN=ldapuser,CN=Users,DC=dc,DC=controller</managerDN> > <managerPassword>zaaappedaway</managerPassword> > </securityRealm> > <workspaceDir>${ITEM_ROOTDIR}/workspace</workspaceDir> > <buildsDir>${ITEM_ROOTDIR}/builds</buildsDir> > <markupFormatter class="hudson.markup.RawHtmlMarkupFormatter"/> > <jdks/> > <viewsTabBar class="hudson.views.DefaultViewsTabBar"/> > <myViewsTabBar class="hudson.views.DefaultMyViewsTabBar"/> > <clouds/> > <slaves/> > <quietPeriod>5</quietPeriod> > <scmCheckoutRetryCount>0</scmCheckoutRetryCount> > <views> > <hudson.model.AllView> > <owner class="hudson" reference="../../.."/> > <name>All</name> > <filterExecutors>false</filterExecutors> > <filterQueue>false</filterQueue> > <properties class="hudson.model.View$PropertyList"/> > </hudson.model.AllView> > </views> > <primaryView>All</primaryView> > <slaveAgentPort>0</slaveAgentPort> > <label></label> > <nodeProperties/> > <globalNodeProperties/> > </hudson> > > Do anybody has an idea of what I'm doing wrong? > Thank you and best regards.