I think the answer is in the message: "You must authenticate to access this Jenkins. Use --username/--password/--password-file parameters or login command."
If seems like you have security enabled, and you should be providing a --username <username> or authentication method for it to work. On 15 February 2012 13:32, Lestin Liu <[email protected]> wrote: > Hi, > > Did anyone have CLI creditential problem? I met with the following messege: > > --> java -jar jenkins-cli.jar -s http://hudson-01:8008/ help > You must authenticate to access this Jenkins. > Use --username/--password/--password-file parameters or login command. > > --> java -jar jenkins-cli.jar -s http://hudson-01:8008/ login > org.acegisecurity.userdetails.UsernameNotFoundException: User anonymous > not found in directory. > at > org.acegisecurity.ldap.search.FilterBasedLdapUserSearch.searchForUser(FilterBasedLdapUserSearch.java:126) > at > hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:430) > at > hudson.security.LDAPSecurityRealm$LDAPUserDetailsService.loadUserByUsername(LDAPSecurityRealm.java:408) > at > hudson.security.LDAPSecurityRealm.loadUserByUsername(LDAPSecurityRealm.java:388) > at > hudson.cli.ClientAuthenticationCache.set(ClientAuthenticationCache.java:94) > at hudson.cli.LoginCommand.run(LoginCommand.java:37) > at hudson.cli.CLICommand.main(CLICommand.java:228) > at hudson.cli.CliManagerImpl.main(CliManagerImpl.java:92) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > 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 > hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) > at hudson.cli.CliManagerImpl$1.call(CliManagerImpl.java:63) > at > hudson.remoting.InterceptingExecutorService$2.call(InterceptingExecutorService.java:95) > at > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > at java.util.concurrent.FutureTask.run(FutureTask.java:138) > at > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > at java.lang.Thread.run(Thread.java:619) > > Thanks. > > Yours truly > Lestin Liu > -- Danny Staple Director, ODM Solutions Ltd w: http://www.odmsolutions.co.uk Blog: http://orionrobots.co.uk/blog1-Danny-Staple
