[Samba] Samba4 and problem with winbind
Gémes Géza
geza at kzsdabas.hu
Thu Oct 27 12:06:09 MDT 2011
2011-10-27 08:40 keltezéssel, Hervé Hénoch írta:
> Hello
>
> I've installed Samba4 from http://wiki.samba.org/index.php/Samba4/HOWTO
> and everything listed works well, however wbinfo reports the following:
>
> > wbinfo -u : Error looking up domain users
>
> > wbinfo -g : failed to call wbcListGroups: WBC_ERR_DOMAIN_NOT_FOUND
> Error looking up domain groups
>
> > wbinfo --own-domain : is ok and return the name of domain (SAMDOM)
>
> > wbinfo -m : failed to call wbcListTrusts: WBC_ERR_DOMAIN_NOT_FOUND
> Could not list trusted domains
>
> > wbinfo --name-to-sid herve (user created by "samba-tool user add
> herve")
> failed to call wbcLookupName: WBC_ERR_DOMAIN_NOT_FOUND
> Could not lookup name herve
>
> The two last commands are taken from the WIKI "Step1 : Adding user
> into Samba 4 Active Directory"
>
> Does anyone have suggestions ?
>
> _/etc/resolv.conf _
> domain example.com
> search samdom.example.com
> nameserver <pdc ip>
>
> _/etc/nsswitch.conf_
> passwd: compat winbind
> group: compat winbind
> shadow: compat
>
> hosts: files dns
> networks: files
>
> protocols: db files
> services: db files
> ethers: db files
> rpc: db files
>
> netgroup: nis
>
> _ls -la /lib/libnss*_
> -rw-r--r-- 1 root root 31616 Jan 23 2011 /lib/libnss_compat-2.11.2.so
> lrwxrwxrwx 1 root root 23 Oct 25 10:48 /lib/libnss_compat.so.2 ->
> libnss_compat-2.11.2.so
> -rw-r--r-- 1 root root 22928 Jan 23 2011 /lib/libnss_dns-2.11.2.so
> lrwxrwxrwx 1 root root 20 Oct 25 10:48 /lib/libnss_dns.so.2 ->
> libnss_dns-2.11.2.so
> -rw-r--r-- 1 root root 47616 Jan 23 2011 /lib/libnss_files-2.11.2.so
> lrwxrwxrwx 1 root root 22 Oct 25 10:48 /lib/libnss_files.so.2 ->
> libnss_files-2.11.2.so
> -rw-r--r-- 1 root root 18864 Jan 23 2011 /lib/libnss_hesiod-2.11.2.so
> lrwxrwxrwx 1 root root 23 Oct 25 10:48 /lib/libnss_hesiod.so.2 ->
> libnss_hesiod-2.11.2.so
> -rw-r--r-- 1 root root 43552 Jan 23 2011 /lib/libnss_nis-2.11.2.so
> lrwxrwxrwx 1 root root 20 Oct 25 10:48 /lib/libnss_nis.so.2 ->
> libnss_nis-2.11.2.so
> -rw-r--r-- 1 root root 51704 Jan 23 2011 /lib/libnss_nisplus-2.11.2.so
> lrwxrwxrwx 1 root root 24 Oct 25 10:48 /lib/libnss_nisplus.so.2 ->
> libnss_nisplus-2.11.2.so
> lrwxrwxrwx 1 root root 40 Oct 27 08:07 */lib/libnss_winbind.so ->
> /usr/local/samba/lib/libnss_winbind.so.2*
> lrwxrwxrwx 1 root root 22 Oct 27 08:07 */lib/libnss_winbind.so.2 ->
> /lib/libnss_winbind.so*
>
I see two dubious entries here:
lrwxrwxrwx 1 root root 40 Oct 27 08:07 */lib/libnss_winbind.so ->
/usr/local/samba/lib/libnss_winbind.so.2*
lrwxrwxrwx 1 root root 22 Oct 27 08:07 */lib/libnss_winbind.so.2 ->
/lib/libnss_winbind.so*
Could you try to run wbinfo with the whole path: /usr/local/samba/.../wbinfo
IMHO you have different samba/winbind versions installed.
Cheers
Geza
More information about the samba
mailing list