Sponsored Content
Full Discussion: Authentication in Jenkins
Special Forums UNIX and Linux Applications Authentication in Jenkins Post 302909076 by s ladd on Monday 14th of July 2014 08:53:13 AM
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
 

9 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

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. 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

7. 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

8. 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

9. 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
nodehostnamesize(5)						File Formats Manual					       nodehostnamesize(5)

NAME
nodehostnamesize - size of node name and host name DESCRIPTION
The HP-UX operating system default configuration allows the system node name and host name to be up to 8 and 64 bytes in length, respec- tively. The node name supports the UUCP utilities. The host name supports the internet Domain Name Services (DNS) host name label. Setting a node name of more than 8 bytes or a host name of more than 64 bytes is possible only with the appropriate configuration options enabled. APPLICATION USAGE
See the whitepaper for more information. WARNINGS
It is strongly recommended that all related documentation be completely understood before setting a larger node or host name. A node name larger than 8 bytes, or host name larger than 64 bytes, can cause anomalous behavior or failure in applications which use the and/or com- mands or the and/or system functions to obtain the names. SEE ALSO
hostname(1), uname(1), uucp(1), setuname(1M), gethostname(2), sethostname(2), uname(2), hostname(5). whitepaper, available on nodehostnamesize(5)
All times are GMT -4. The time now is 02:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy