[Samba] Cannot authenticate new ldap users (unless they are in /etc/passwd too)
TAKAHASHI Motonobu
monyo at monyo.com
Mon May 23 17:22:21 MDT 2011
From: Sean Boran <sean at boran.com>
Date: Mon, 23 May 2011 23:47:41 +0200
snip)
> Now I've added some new users and none of them can authenticate.
> e.g. for the user "inktec".
>
> The user can login via SSH, but not mount a share:
> smbclient \\\\server3\\someshare -U=inktec mypassword
(snip)
> May 23 19:40:47 server3 smbd[7364]: User inktec in passdb, but getpwnam()
> fails!
> May 23 19:40:47 server3 smbd[7364]: [2011/05/23 19:40:47, 0]
> auth/auth_sam.c:355(check_sam_security)
> May 23 19:40:47 server3 smbd[7364]: check_sam_security:
> make_server_info_sam() failed with 'NT_STATUS_NO_SUCH_USER'
According to these logs, you probably failed at Get_Pwnam_alloc() in
lib/username.c referenced by make_server_info_sam() in
auth/auth_util.c
Adding "-d10" to smbclient, you may see useful messages to analyze
such as:
* Get_Pwnam: empty username!
* Finding user
* Trying _Get_Pwnam(), username given as
...
---
TAKAHASHI Motonobu <monyo at samba.gr.jp>
More information about the samba
mailing list