[Samba] wbinfo -u/-g/-n works, but not 'wbinfo -i' or 'id'

Rowland Penny rowlandpenny at googlemail.com
Tue Apr 14 08:20:20 MDT 2015


On 14/04/15 14:59, Adam Tauno Williams wrote:
> On Thu, 2014-10-30 at 13:41 -0300, Horacio G. de Oro wrote:
>> Hi! I'm trying to add a member to be used as fileserver, following the
>> guides at:
>> - https://wiki.samba.org/index.php/Setup_a_Samba_AD_Member_Server
>> - https://wiki.samba.org/index.php/Using_RFC2307_on_a_Samba_DC
>> The AD server has been in use for month, but I can't get user
>> information from the new member. The new member was joined to the
>> directory, and nsswitch was configured. Running 'id username' returns
>> 'No such user'.
>> Running 'wbinfo -u' and  'wbinfo -g', 'wbinfo -n username' and 'wbinfo
>> --sid-to-uid' works OK. Also 'wbinfo --online-status' and 'wbinfo
>> --ping-dc'
>> But, when I try 'id username', or 'wbinfo -i username', it fails with
>> WBC_ERR_DOMAIN_NOT_FOUND
>> $ wbinfo -i username
>> failed to call wbcGetpwnam: WBC_ERR_DOMAIN_NOT_FOUND
>> Could not get info for user username
>> $ wbinfo -n username
>> S-1-5-21-3087569779-2873525441-767630994-1118 SID_USER (1)
>> And using '--sid-to-uid' I got the UID:
>> $ wbinfo --sid-to-uid S-1-5-21-3087569779-2873525441-767630994-1118
>> 10000 Servers · Web Development in Python & Java · DevOps · Big Data
> I am experiencing much the same issue; wbinfo -u/-g works but getent
> passwd/group only contains a very partial user list and querying a
> specific user causes the WBC_ERR_DOMAIN_NOT_FOUND error.  Although
> otherwise the domain is functional and there are active workstations.
>
> Did you every identify a solution?
>

It should work, it sounds like a mis-configuration somewhere, can you 
post the smb.conf, /etc/nsswitch.conf, /etc/resolv.conf and 
/etc/krb5.conf from the member server.

Rowland


More information about the samba mailing list