Authentication in Jenkins


 
Thread Tools Search this Thread
Special Forums UNIX and Linux Applications Authentication in Jenkins
# 1  
Old 07-14-2014
Authentication in Jenkins

What do you guys use for authentication on Jenkins? We are currently not using anything and I am attempting to use AD, however when I have it enabled, the jenkins CLI does not allow my slaves to register anonymously.. which is understandable, however I cannot find the proper syntax for the create-node command of the CLI.

Without authentication enabled, we can do this..
Code:
/bin/cat node.xml | /usr/bin/java -jar jenkins-cli.jar -s http://jenkins_master_dns_name:8080/ create-node

and node.xml looks like this (excuse the variables that will get populated by puppet):

Code:
<slave>
<name>${::hostname}</name>
<description>jenkins node ${::hostname}</description>
<remoteFS>/home/ec2-user/jenkins</remoteFS>
<numExecutors>4</numExecutors>
<mode>NORMAL</mode>
<retentionStrategy class='hudson.slaves.RetentionStrategy\$Always'/>
<launcher class='hudson.plugins.sshslaves.SSHLauncher' plugin='ssh-slaves@1.5'>
<host>${::ipaddress}</host>
<port>22</port>
<credentialsId>${::credential_id}</credentialsId>
</launcher>
<label>${::ec2_tag_accountname} main_pool</label>
<nodeProperties/>
<userId>anonymous</userId>
</slave>

I have replaced the userId tag with an AD user name and it still fails. I have also tried a local user account that has working SSH keys and it fails in the same manner.

Last edited by s ladd; 07-14-2014 at 10:53 AM.. Reason: CODE tags
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. SuSE

Authentication with PAM

Hello all, I recently updated PAM policy files (pam_authz.policy) on HP-UX Servers with AD groups involving allowing and denying the certain groups.. Could anyone tell me what is the equivalent mechanism in SLES(Linux)? Is it possible to allow/deny AD group access with the SLES LDAP... (0 Replies)
Discussion started by: lcclaj0
0 Replies

2. Shell Programming and Scripting

ksh script doesn't exit in Jenkins

I have a ksh script which runs on the commandline of Jenkins. Script only has commands and few echo statements.I have added set -e as well. But the issue is that , script completes but donot exits on Jenkins commandline. whereas when I run it on unix, it executes perfectly and exits.I need to... (1 Reply)
Discussion started by: dreams619
1 Replies

3. Ubuntu

Jenkins -- No space left on device

I am running a build on Jenkins and I get: No space left on device But when I do df, I get: Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/ROOT 19249724 18267492 4380 100% / udev 1457152 4 1457148 1% /dev tmpfs ... (4 Replies)
Discussion started by: sgffgs
4 Replies

4. IP Networking

authentication of VM's via PPPoE

I have two VM's running on Ubuntu box.Their name and IP addresses are give below. nas 192.168.129.153 home_user 192.168.129.152 I establish a ppp connection between the two machines #nas (server) sudo pppd noauth local lock defaultroute... (0 Replies)
Discussion started by: karthik.sharma
0 Replies

5. Red Hat

Authentication Failed

Hi everyone ... ( Linux Cent OS ) i cant login as root user in my lab machine ... i did give correct root and root passwd ..but it showing Authentication Failed ... plz help me (4 Replies)
Discussion started by: coolboys
4 Replies

6. UNIX for Advanced & Expert Users

Hostbased Authentication

How to setup a host based Authentication for a server and a client,or for a server and more clients? Can someone help me in this please....... (9 Replies)
Discussion started by: Kesavan
9 Replies

7. Red Hat

samba authentication

Hi friends, I have a requirement is to authenticate samba users seperately. 1. Linux samba server 2. Linux Client 3. Need to mount samba share on linux client permanently without providing credentials. 4. when user is accessing that mount point need to be prompted for credentials. ... (1 Reply)
Discussion started by: arumon
1 Replies

8. Red Hat

Authentication failed !

Hey since this morning I(nonrrot user) am not able to log into my system with my username. I am using redhat linux kernel release 2.6.9-5.ELsmp. I aslo found the folowing output for chkconfig command: # chkconfig --list|grep ldap ldap 0: off 1: off 2: off 3: off 4: off 5: off... (5 Replies)
Discussion started by: ashok.g
5 Replies

9. Cybersecurity

Password Authentication

I would like to know how to validate an unix password from shell script (If is possible) Thanks very much ;) (3 Replies)
Discussion started by: juan_o_morillo
3 Replies
Login or Register to Ask a Question