Script Security Realm

Skip to end of metadata
Go to start of metadata

This plugin allows you to use a user-written custom script to authenticate the username and password. This is useful if you need to plug into a custom authentication scheme, but don't want to write your own plugin.

Plugin Information

Plugin ID script-realm Changes In Latest Release
Since Latest Release
Latest Release
Latest Release Date
Required Core
Dependencies
1.5
Jun 24, 2012
1.330
Source Code
Issue Tracking
Maintainer(s)
GitHub
Open Issues
Dominik Bartholdi (id: imod)
Usage Installations 2013-Apr 178
2013-May 197
2013-Jun 190
2013-Jul 196
2013-Aug 181
2013-Sep 188
2013-Oct 195
2013-Nov 191
2013-Dec 183
2014-Jan 204
2014-Feb 210
2014-Mar 206
This plugin now supports group resolving for a user loging in. One can define two scripts:

  • script to authenticate the user.
    Each time the authentication is attemped (which is once per session), the specified script will be invoked with the username in the 'U' environment variable and the password in the 'P' environment variable. If the script returns exit code 0, the authentication is considered successful, and otherwise failure.
simple authentication script
#!/bin/sh
if [ "$U" == "domi" ] && [ "$P" == "imod" ]; then
   exit 0
fi
exit 1
  • a second script to resolve the groups for a user loging in.
    The specified script will be invoked with the username in the 'U' environment variable.
    If the script returns exit code 0, the output will be tokenized by the delimiter (default: ',') to create a groups with each token.
simple group command script
#!/bin/sh
if [ "$U" == "domi" ]; then
 echo "admin,superuser"
fi

Help and Support

For Help and support please use the Jenkins Users mailing list.
The comment list below is not monitored.

Changelog

Version 1.5 (June 24, 2012)

  • fix issue while resolving groups through the UI

Version 1.4 (Jul 29, 2011)

  • define 'SystemRoot' variable on Windows to prevent SocketException

Version 1.3 (Jan 16, 2011)

Version 1.2 (Nov 7, 2010)

  • adding support for groups

Version 1.0 (Nov 5, 2009)

  • Initial release

Labels

Edit
plugin-user plugin-user Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.