Local User as well as AD User

41 views
Skip to first unread message

Eric Fetzer

unread,
Oct 2, 2015, 2:29:04 PM10/2/15
to Jenkins Users
When Jenkins is integrated with AD, is it also possible to have 1 or more local users?  I'd like to have a local user that builds can be called remotely from to perform automated builds via the CLI.  I know I can obviously use my user and add an id_rsa key to use my own user, but I'd like the user to be just for these automated builds.  Is this possible?  Thanks!  Eric

Eric Fetzer

unread,
Oct 2, 2015, 2:53:31 PM10/2/15
to Jenkins Users
Sorry for the posting, I found it wandering around.  Credentials / Global Credentials / New Credentials / Create as "SSH Username with private key"

Thanks,
Eric


On Friday, October 2, 2015 at 12:29:04 PM UTC-6, Eric Fetzer wrote:

Eric Fetzer

unread,
Oct 2, 2015, 3:33:36 PM10/2/15
to Jenkins Users
Well, this didn't work.  I added the user in Global Credentials:

  • Global User
  • username = apache
  • Private key = Enter Directly (I added this from cat ~/.ssh/id_rsa.pub that for the user running the build from another server)

When I attempt to build, I get:  Authentication failed. No private key accepted.  Note that my passphrase is blank but when I go back in it looks like there's a passphrase entered in there.  Any help?

Thanks,
Eric
 
On Friday, October 2, 2015 at 12:29:04 PM UTC-6, Eric Fetzer wrote:

Eric Fetzer

unread,
Oct 2, 2015, 3:58:49 PM10/2/15
to Jenkins Users
This has taken a turn so I'm going to open a new item...  Sorry for the confusion.


On Friday, October 2, 2015 at 12:29:04 PM UTC-6, Eric Fetzer wrote:

Michael O'Cleirigh

unread,
Oct 3, 2015, 8:09:25 AM10/3/15
to jenkins...@googlegroups.com

Hi Eric,

I just noticed that your point number three uses id_rsa.pub file as the private key but that's actually the public key.

There should be another file I think without the .pub that holds the private key.

I wonder if that could be the configuration issue?

Regards,

Michael

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/d34a8e12-ea27-4aa6-bcbd-baf4463eb0a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Gmail Account

unread,
Oct 3, 2015, 8:53:35 AM10/3/15
to jenkins...@googlegroups.com
Hmmm, that's a good point Michael!  I wonder why Jenkins is asking for the private key rather than public key.  The private key, id_rsa, is always paired on the "from" side with the id_rsa.pub on the "to" side.  Am I perhaps misinterpreting the use of these global credentials?  I'm trying to talk from a different machine to Jenkins using the CLI using them.  Are they intended for Jenkins to communicate outwards?
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/jtcsC6ljFoI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAGUfqupqcvppP3ggyLJ0Ni0um4VDN3a5%2B_foipMcR%3DnU1b4AfQ%40mail.gmail.com.

James Nord

unread,
Oct 3, 2015, 3:53:04 PM10/3/15
to Jenkins Users
You cant do what you are trying to do. There is no support for 2 different security realms.

Credentials are by jenkins to authenticate with other systems, or to be used in a build.

Reply all
Reply to author
Forward
0 new messages