Kiss G?bor:
> Feb 16 11:39:56 MYHOST postfix/local[22389]: warning: error looking up passwd 
> info for +bar: No such file or directory

That is a bug in your system library implementation: it returns an
error (ENOENT) for an entry that does not exist.

API:
   int getpwnam_r(const char *name, struct passwd *pwd,
               char *buf, size_t buflen, struct passwd **result);

OpenGroup standard:
    The getpwnam_r() function shall return zero on success or if
    the requested entry was not found and no error has occurred.
    If an error has occurred, an error number shall be returned to
    indicate the error.

What is the back-end for your UNIX system account lookups: is this
LDAP, files, or something else? This weekend there was a thread
about getpwnam_r() not returning errors when an LDAP server was
down. Now we have getpwnam_r() returing errors for non-error lookups.
If this is the same LDAP driver then it badly needs fixing.

        Wietse

Reply via email to