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
Digest::JHash(3pm)					User Contributed Perl Documentation					Digest::JHash(3pm)

NAME
Digest::JHash - Perl extension for 32 bit Jenkins Hashing Algorithm SYNOPSIS
use Digest::JHash qw(jhash); $digest = jhash($data); # note that calling jhash() directly like this is the fastest way: $digest = Digest::JHash::jhash($data); DESCRIPTION
The "Digest::JHash" module allows you to use the fast JHash hashing algorithm developed by Bob Jenkins from within Perl programs. The algorithm takes as input a message of arbitrary length and produces as output a 32-bit "message digest" of the input in the form of an unsigned long integer. Call it a low calorie version of MD5 if you like. See http://burtleburtle.net/bob/hash/doobs.html for more information. FUNCTIONS
jhash($data) This function will calculate the JHash digest of the "message" in $data and return a 32 bit integer result (an unsigned long in the C) EXPORTS
None by default but you can have the jhash() function if you ask nicely. See below for reasons not to use Exporter (it is slower than a direct call) SPEED NOTE
If speed is a major issue it is roughly twice as fast to do call the jhash() function like Digest::JHash::jhash('message') than it is to import the jhash() method using Exporter so you can call it as simply jhash('message'). There is a short script that demonstrates the speed of different calling methods (direct, OO and Imported) in examples/oo_vs_func.pl AUTHORS
The JHash implementation was written by Bob Jenkins <bob_jenkins [at] burtleburtle [dot] net>. This perl extension was written by Andrew Towers <mariofrog [at] bigpond [dot] com>. A few mods were added by James Freeman <airmedical [at] gmail [dot] com>). SEE ALSO
http://burtleburtle.net/bob/hash/doobs.html LICENSE
This package is free software and is provided "as is" without express or implied warranty. It may be used, redistributed and/or modified under the terms of the Artistic License 2.0. A copy is include in this distribution. perl v5.14.2 2010-07-26 Digest::JHash(3pm)
All times are GMT -4. The time now is 04:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy