Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have just set up fresh Jenkins machine. Before enabling security I could use java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart.

Then I have enabled security and if I do java -jar jenkins-cli.jar -s http://localhost:8080 safe-restart --username user.name --password pass I get error hudson.security.AccessDeniedException2: anonymous is missing the Overall/Read permission

Strange thing is that if I run java -jar jenkins-cli.jar -s http://localhost:8080 help --username user.name --password pass everything is ok and I get help options.

I can restart jenkinks from web interface when I login with my username and password.

What seems to be the problem here.

I will edit this post to add security part of xml.

 <securityRealm class="hudson.security.LDAPSecurityRealm" plugin="ldap@1.8">
    <server>ldap://ldap</server>
    <rootDN>ou=People,ou=saturized,dc=ldap</rootDN>
    <inhibitInferRootDN>false</inhibitInferRootDN>
    <userSearchBase></userSearchBase>
    <userSearch>uid={0}</userSearch>
    <disableMailAddressResolver>false</disableMailAddressResolver>
    <displayNameAttributeName>displayname</displayNameAttributeName>
    <mailAddressAttributeName>mail</mailAddressAttributeName>
  </securityRealm>
share|improve this question
1  
what config.xml for security part looks like? –  Danila Ladner Jan 29 at 14:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.