i use pam auth in courier,i modified preauthpam.c,add these lines
 pw=mygetpw(userid); 
 auth.sysusername=userid;
 auth.sysgroupid = 101;//pw->pw_gid;
 auth.homedir=pw->pw_dir;
 auth.address=userid;
 auth.fullname=pw->pw_gecos;
 auth.passwd=pw->pw_passwd;
and all my pam function return PAM_SUCCESS,the homedir is /var/mail/aaa/,and its uid 
is 167772160(i always got this uid,so i set the dir\'s uid to 167772160,i dont know 
why i always got this),gid is 101.
now when i telnet localhost 143,i input a1 login [EMAIL PROTECTED] password ,i got \"Fatal 
error: ~��: No such file or directory\",then i try the second time, i got \"No Login 
Failed\".






-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to