? core/nis_api.php
Index: account_page.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/account_page.php,v
retrieving revision 1.45
diff -c -r1.45 account_page.php
*** account_page.php 26 May 2004 02:28:54 -0000 1.45
--- account_page.php 5 Jul 2004 22:13:04 -0000
***************
*** 52,57 ****
--- 52,58 ----
extract( $row, EXTR_PREFIX_ALL, 'u' );
$t_ldap = ( LDAP == config_get( 'login_method' ) );
+ $t_nis = ( NIS == config_get( 'login_method' ) );
# In case we're using LDAP to get the email address... this will pull out
# that version instead of the one in the DB
***************
*** 77,83 ****
!
--- 78,84 ----
!
***************
*** 92,98 ****
! The password settings are controlled by your LDAP entry,
hence cannot be edited here.
|
--- 93,99 ----
! The password settings are controlled by your entry,
hence cannot be edited here.
|
Index: config_defaults_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_defaults_inc.php,v
retrieving revision 1.170
diff -c -r1.170 config_defaults_inc.php
*** config_defaults_inc.php 28 Jun 2004 10:13:22 -0000 1.170
--- config_defaults_inc.php 5 Jul 2004 22:13:07 -0000
***************
*** 794,799 ****
--- 807,816 ----
# You can simply change this at will. Mantis will try to figure out how the passwords were encrypted.
$g_login_method = MD5;
+ # for NIS, you can specify search domains. This is optional. The default is to use
+ # the default domain set up on the server (through /etc/yp.conf)
+ # $g_nis_domains = 'foo,bar';
+
# --- limit reporters -------------
# Set to ON if you wish to limit reporters to only viewing bugs that they report.
$g_limit_reporters = OFF;
Index: config_inc.php.sample
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/config_inc.php.sample,v
retrieving revision 1.12
diff -c -r1.12 config_inc.php.sample
*** config_inc.php.sample 8 Feb 2004 13:16:57 -0000 1.12
--- config_inc.php.sample 5 Jul 2004 22:13:07 -0000
***************
*** 49,57 ****
$g_return_path_email = 'admin@example.com';
# --- login method ----------------
! # CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH
$g_login_method = MD5;
# --- email vars ------------------
# set to OFF to disable email check
# These should be OFF for Windows installations
--- 49,61 ----
$g_return_path_email = 'admin@example.com';
# --- login method ----------------
! # CRYPT or PLAIN or MD5 or LDAP or BASIC_AUTH or NIS
$g_login_method = MD5;
+ # for NIS, you can specify search domains. This is optional. The default is to use
+ # the default domain set up on the server (through /etc/yp.conf)
+ # $g_nis_domains = 'foo,bar';
+
# --- email vars ------------------
# set to OFF to disable email check
# These should be OFF for Windows installations
Index: core/authentication_api.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/authentication_api.php,v
retrieving revision 1.39
diff -c -r1.39 authentication_api.php
*** core/authentication_api.php 26 May 2004 00:59:27 -0000 1.39
--- core/authentication_api.php 5 Jul 2004 22:13:07 -0000
***************
*** 146,151 ****
--- 146,155 ----
return ldap_authenticate( $p_user_id, $p_test_password );
}
+ if ( NIS == $t_configured_login_method ) {
+ return nis_authenticate( $p_user_id, $p_test_password );
+ }
+
$t_password = user_get_field( $p_user_id, 'password' );
$t_login_methods = Array(MD5, CRYPT, PLAIN);
foreach ( $t_login_methods as $t_login_method ) {
Index: core/constant_inc.php
===================================================================
RCS file: /cvsroot/mantisbt/mantisbt/core/constant_inc.php,v
retrieving revision 1.18
diff -c -r1.18 constant_inc.php
*** core/constant_inc.php 8 Jun 2004 06:47:13 -0000 1.18
--- core/constant_inc.php 5 Jul 2004 22:13:08 -0000
***************
*** 90,95 ****
--- 90,96 ----
define( 'LDAP', 4 );
define( 'BASIC_AUTH', 5 );
define( 'HTTP_AUTH', 6 );
+ define( 'NIS', 7 );
# file upload methods
define( 'DISK', 1 );