From c332d9a3d4d9485cfe60fb8dd9db7dbde971642c Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Tue, 10 Nov 2015 08:58:35 -0500 Subject: [PATCH] Do not display fork button if target repo already exists (fixes #944) --- src/site/setup_authentication.mkd | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/site/setup_authentication.mkd b/src/site/setup_authentication.mkd index 02d1be7..a3bf445 100644 --- a/src/site/setup_authentication.mkd +++ b/src/site/setup_authentication.mkd @@ -83,10 +83,16 @@ ### PAM Authentication -PAM authentication is based on the use of libpam4j and JNA. To use this service, your Gitblit server must be installed on a Linux/Unix/MacOSX machine and the user that Gitblit runs-as must have root permissions. +PAM authentication is based on the use of libpam4j and JNA. To use this service, your Gitblit server must be installed on a Linux/Unix/MacOSX machine. realm.authenticationProviders = pam - realm.pam.serviceName = system-auth + realm.pam.serviceName = gitblit + +Then define a gitblit authentication policy in `/etc/pam.d/gitblit` + + # PAM configuration for the gitblit service + # Standard Un*x authentication. + @include common-auth ### Htpasswd Authentication @@ -119,7 +125,7 @@ This is the simplest choice where you implement custom authentication and delegate all other standard user and team operations to one of Gitblit's user service implementations. This choice insulates your customization from changes in User and Team model classes and additional API that may be added to IUserService. -Please subclass [com.gitblit.auth.AuthenticationProvider](https://github.com/gitblit/gitblit/blob/master/src/main/java/com/gitblit/auth/AuthenticationProvider.java). +Please subclass [com.gitblit.auth.AuthenticationProvider.UsernamePasswordAuthenticationProvider](https://github.com/gitblit/gitblit/blob/master/src/main/java/com/gitblit/auth/AuthenticationProvider.java). You may use your subclass by specifying its fully qualified classname in the *realm.authenticationProviders* setting. -- Gitblit v1.9.1