[Samba] Re: A little help with nss_ldap - User xxx in passdb, but getpwnam() fails!

John H Terpstra jht at Samba.Org
Fri Nov 26 18:31:20 GMT 2004

On Friday 26 November 2004 11:19, Tomasz Chmielewski wrote:
> Of all howtos etc. I made through, I was only able to setup Samba + LDAP
> using Samba Guide (chapter 6, Making users happy) - it has the smallest
> number of bugs - without correcting them (like %m needed instead of %u),
> running Samba + LDAP would be impossible.

I guess you are absolutely certain that the use of %u in the "add machine 
script" is a bug. Please file a bug report on bugzilla.samba.org with a 
reproducible test case to prove that this is a bug. 

If it is a bug then we MUST fix it, and then I will update the documentation 

At this time, in my test environment, using %u (not %m) works perfectly as I 
have documented it. If this does not work in your environment please help me 
to see why. At this time I can not reproduce your problem and thus I fear 
that your advice is misleading.

Given that one of us is wrong, let's get to the bottom of the problem and fix 

> There is explained how to check which ldap.conf your system uses (for
> authentication).

 John T.
John H Terpstra
Samba-Team Member
Phone: +1 (650) 580-8668

The Official Samba-3 HOWTO & Reference Guide, ISBN: 0131453556
Samba-3 by Example, ISBN: 0131472216
Hardening Linux, ISBN: 0072254971
Other books in production.

More information about the samba mailing list