[Samba] wbinfo -u/-g/-n works, but not 'wbinfo -i' or 'id'
Horacio G. de Oro
hgdeoro at gmail.com
Thu Oct 30 10:41:49 MDT 2014
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
The UID was added using ADUC, just to the user I'm using for the tests.
I've confirmed the information is in the directory, since I can see it
when dumping the user information (from the AD server):
$ ldapsearch -x -h 127.0.0.1 -b DC=mydomain,DC=com,DC=ar -D
CN=Administrator,CN=Users,DC=pea,DC=com,DC=ar samaccountname=username
-W
(...)
msSFU30NisDomain: mydomain
uidNumber: 10000
loginShell: /bin/sh
unixHomeDirectory: /home/username
gidNumber: 10000
msSFU30Name: username
unixUserPassword: ABCD!efgh12345$67890
uid: username
(...)
The full log is available at:
https://gist.github.com/hgdeoro/3a8cbce9defc43bc5699.
The new member configuration file is at:
https://gist.github.com/hgdeoro/4e6204b482f0d790cc8b
I'm using CentOS 6 in both servers, with Samba 4.0.22 from SerNet.
Am I missing some step or configuration? Any help will be appreciated.
Thanks in advance
Horacio
--
Email: hgdeoro at gmail.com
Web: http://www.data-tsunami.com
Cel: +54 9 3572 525359
LinkedIn: https://www.linkedin.com/in/hgdeoro
Linux Servers · Web Development in Python & Java · DevOps · Big Data
More information about the samba
mailing list