Hi Antoine,

Are you trying to build my uw-imapd package?

The uw-imapd works for me in 10.2 without any code modification. It 
should recognize usernames from the system automatically (indeed there 
is nothing to configure in uw-imapd). By design uw-imapd also does not 
allow root to login for security reasons (your root must use a .forward 
file) but this doesn't sound like the problem you are having.

Which version of Mac OS X are you using?

You might want to contact UW about modifying their code, maybe they 
have a mailing list to help with that.

Carsten

On Monday, October 14, 2002, at 03:40  am, Antoine Duch�teau wrote:

> Hi list,
>
> For about one month I try to find a way to build a unix app so that 
> users
> are correctly recognised whatever the authentication mechanism 
> (password
> server Or Netinfo) they use.
>
> The solution was actually obvious (maybe too obvious, I didn't expect 
> it to
> work)... You have to use PAM.
>
> I have built a fink package for uw-imap which works well under Jaguar 
> Server
> but I had to modify the source code though I am pretty sure it was not
> necessary.
>
> There is a uwimap source file called ckp_pam.c which is responsible 
> for PAM
> authentication:
>
<snip>

> My problem is that if I log in as unixuser, after the pam_start call,
> pw->pw_name becomes root and the pop/imap server refuses to log me in.
>
> An easy way to work around the problem consists in adding a
>   pw = pwuser (usr); /* restore original pw */
> statement just before the "return pw;" line, in order to get back the
> original pw structure.
>
> However, I am pretty sure there is a better way to do it. Is there a 
> PAM
> guru out there who could explain me how to solve this problem ?
>
> My imap and pop pam.d files look like this (they are copy of 
> pam.d/login):
<snip>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to