| | |
| | |
|
| | | ### 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
|
| | |
|
| | |
| | |
|
| | | 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.
|
| | |
|