On Mon, Jul 06, 2009 at 08:45:15AM +1000, paul sorenson wrote:
> > The tests must be done as a non-root user to make sure that file
> > permissions don't restrict getpwnam(3) to the super-user.
> >
>
> # user with ldap entry only:
> [pms@homer domestic]$ (getent passwd bells; postmap -q bells
> unix:passwd.byname) | sort | uniq -c | awk '{print $1}'
> 1
If getent(1) is returning results that are not found via getpwnam(3),
your C-library or nsswitch are broken. Trace the system calls made by
"postmap -q" and "getent" and see if anything interesting turns up.
Is LANG set to any particularly unusual value? Have you tried:
LANG=C postmap -q bells unix:passwd.byname
> Any tips on how to dig deeper would be appreciated. Would it be
> premature to create a bug report for this?
This is a non-Postfix problem, start with a question on the support
forum for your O/S.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:majordomo@...?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.