[Dovecot] Tru64 Unix and SIA

Timo Sirainen tss at iki.fi
Sun Oct 8 22:10:36 UTC 2006


On Wed, 2006-09-27 at 13:43 +1000, Simon L Jackson wrote:
>         pw = getpwnam(request->user);
>         if (pw == NULL) {
>                 auth_request_log_info(request, "sia", "unknown user");
>                 callback(PASSDB_RESULT_USER_UNKNOWN, request);
>                 return;
>         }
> 
>         /* check if the password is valid */
>         if (password != NULL) {
>                 char *argutility = "dovecot";
>                 result = ( sia_validate_user
> (checkpw_collect,1,&argutility,NULL,
>                         (char *) request->user,NULL,NULL,NULL,(char *)
> password) == SIASUCCESS );
>         }

Is there a reason why you're doing a getpwnam() lookup, since it looks
like sia_validate_user() does all the work?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061009/df87badb/attachment.pgp 


More information about the dovecot mailing list