On Thu, Jun 05, 2003 at 01:18:21PM -0700, joe ritter wrote:
> Hello,
> I would like to not use /etc/passwd for
> authentication. I have been reading the docs and I see
> the in the prescence of /etc/cram-md5 5ha5 this file
> will be used instead. I am imagining that this method
> does not scale well. We need to be able to be able to

 The usual trick here is to create your own library function set,
 which supplies   getpwnam()  API, and inside does all things your
 particular environment wants.  Then link that statically to your
 instance of binaries.

 Platform depending, also shared library dynamic preloading can
 do the same thing -- and without hazzles of static library linkage.

 There is a big problem in UNIX API of   getpwnam() -- its error
 handling is challenging.  It appears, when you want to absolutely
 separate situations of database access problem, and success of access,
 but lack of user entry.  Both yield NULL, one is where you want
 to report (perhaps not in IMAP, but in mail delivery) "retry this",
 another: "no such user".

....
-- 
/Matti Aarnio   <[EMAIL PROTECTED]>

Reply via email to