From a0c34e37fe8e456a21c7a57e9d45e637ab40cce8 Mon Sep 17 00:00:00 2001 From: Florian Zschocke Date: Tue, 9 Jul 2013 13:07:13 +0200 Subject: Add an Apache htpasswd user service Add a new class, HtpasswdUserService, which performs authentication against a text file created with the Apache 'htpasswd' program. Added dependency on commons-codec:1.7 --- src/site/design.mkd | 1 + src/site/setup_authentication.mkd | 8 ++++++++ 2 files changed, 9 insertions(+) (limited to 'src/site') diff --git a/src/site/design.mkd b/src/site/design.mkd index 601d68ab..ce676201 100644 --- a/src/site/design.mkd +++ b/src/site/design.mkd @@ -52,6 +52,7 @@ The following dependencies are automatically downloaded by Gitblit GO (or alread - [JNA](https://github.com/twall/jna) (LGPL 2.1) - [Guava](https://code.google.com/p/guava-libraries) (Apache 2.0) - [libpam4j](https://github.com/kohsuke/libpam4j) (MIT) +- [commons-codec](http://commons.apache.org/proper/commons-codec) (Apache 2.0) ### Other Build Dependencies - [Fancybox image viewer](http://fancybox.net) (MIT and GPL dual-licensed) diff --git a/src/site/setup_authentication.mkd b/src/site/setup_authentication.mkd index 0ec07fa5..3fb4a6c1 100644 --- a/src/site/setup_authentication.mkd +++ b/src/site/setup_authentication.mkd @@ -7,6 +7,7 @@ Gitblit supports additional authentication mechanisms aside from it's internal o * LDAP authentication * Windows authentication * PAM authentication +* Htpasswd authentication * Redmine auhentication * Salesforce.com authentication * Servlet container authentication @@ -91,6 +92,13 @@ PAM authentication is based on the use of libpam4j and JNA. To use this service realm.userService = com.gitblit.PAMUserService realm.pam.serviceName = system-auth +### Htpasswd Authentication + +Htpasswd authentication allows you to maintain your user credentials in an Apache htpasswd file thay may be shared with other htpasswd-capable servers. + + realm.userService = com.gitblit.HtpasswdUserService + realm.htpasswd.userFile = /path/to/htpasswd + ### Redmine Authentication You may authenticate your users against a Redmine installation as long as your Redmine install has properly enabled [API authentication](http://www.redmine.org/projects/redmine/wiki/Rest_Api#Authentication). This user service only supports user authentication; it does not support team creation based on Redmine groups. Redmine administrators will also be Gitblit administrators. -- cgit v1.2.3