diff mantis-1.1.1-base/config_defaults_inc.php mantis-1.1.1/config_defaults_inc.php
1160c1160
< 	# CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH
---
> 	# CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH or HTML_AUTH or PKI_AUTH
1192a1193,1200
> 	# -- pki (x509 certificate) -----
> 	# This is ONLY used for PKI_AUTH. It is the password that should be set in the database for
> 	#  each user that will authenticate via PKI. 
> 	# The password in the database should be an MD5 hash of $g_pki_password.
> 	# This is only used to provide minimal modification to the Mantis auth schema
> 	# Note: $g_logout_redirect_page	should be set to '%path%logout_pki.php' ;
> 	$g_pki_password             = 'password' ; // the MD5 hash is '5f4dcc3b5aa765d61d8327deb882cf99'
> 	
diff mantis-1.1.1-base/login_page.php mantis-1.1.1/login_page.php
37c37
< 	# Check for HTTP_AUTH. HTTP_AUTH is handled in login.php
---
> 	# Check for HTTP_AUTH & PKI_AUTH. HTTP_AUTH is handled in login.php; PKI_AUTH with login_pki.php
38a39,40
> 	$t_login_method = config_get( 'login_method' );
> 	
42c44
< 		if ( !$f_return && ON == config_get( 'allow_anonymous_login' ) ) {
---
> 		if ( !$f_return && ON == $t_login_method ) {
53a56,68
> 	if ( PKI_AUTH == $t_login_method) {
> 		$t_uri = "login_pki.php";
> 		if ( !$f_return && ON == config_get( 'allow_anonymous_login' ) ) {
> 			$t_uri = "login_anon.php";
> 		}	
> 		if ( $f_return ) {
> 			$t_uri .= "?return=" . urlencode( $f_return );
> 		}
> 		
> 		print_header_redirect( $t_uri );
> 		exit;
> 	}
> 	
Only in mantis-1.1.1: login_pki.php
Only in mantis-1.1.1: logout_pki.php
diff mantis-1.1.1-base/core/constant_inc.php mantis-1.1.1/core/constant_inc.php
118a119
> 	define( 'PKI_AUTH',			7 );

