[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

PAM shadow support and NIS+



Hello.

I've found out that getspnam() returns 0 when some shadow field is empty,
while pam_sm_acct_mgmt() compares it to -1:

if ((curdays > spent->sp_expire) && (spent->sp_expire != -1)              
	        && (spent->sp_lstchg != 0)) {                                       
		        _log_err(LOG_NOTICE                                             
				,"account %s has expired (account expired)"            
				,uname);
					    
So, I get this message for every user that have sp_expire field unset.

I'm not quite sure, maybe it's a glibc issue? Maybe it should return -1?

--
Dmitry O Panov         |  mailto:dmitry@tsu.tula.ru
Tula State University  |  http://www.tsu.tula.ru/
Dept. of CS & NIT      |  Fidonet: Dmitry Panov, 2:5022/8.31 aka 2:5022/5.50



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []