Goal: join a Solaris 10 machine to an existing Active Directory.
Steps I did:
- Installed software (Samba 3.4.2 from http://www.sunfreeware.com)
- Received a Kerberos ticket with
kinit admin-user@KERB.EXAMPLE.ORG - Join domain:
net ads join -U admin-user - Start Samba and winbind
All steps are ok, checked this with klist, net getdomainsid
, wbinfo -g and wbinfo -u.
Now the problem: getent passwd EXAMPLE+username returns nothing at all (on another Solaris 10 machine this works). Everytime I request somehing from AD, this shows up in log.winbind:
[2010/09/07 10:51:41, 0] winbindd/winbindd.c:750(request_len_recv)
request_len_recv: Invalid request size received: 2088 (expected 2096)
According to google, I should ensure the version of libnss_winbind.so running does match the version of winbind that is running.
But how do I do that?
-
Hello,
probably pam_winbind.so is the wrong version. look this link: http://www.mentby.com/adrian-graham/samba-334-31-sshwinbind-login-failure.html fix your problem. The winbind.so
weeheavy : Hi, I only found pam_winbind.so in the `/usr/local/samba/lib/security` directory. So i copied this to `/usr/lib/security`. After a restart of smbd, nmbd and winbind I get other errors: [2010/09/08 08:43:38, 3] winbindd/winbindd_misc.c:787(winbindd_priv_pipe_dir) [ 8182]: request location of privileged pipe [2010/09/08 08:43:38, 2] winbindd/winbindd.c:878(remove_client) final write to client failed: Broken pipe [2010/09/08 08:43:38, 3] winbindd/winbindd_misc.c:127(winbindd_list_ent) [ 8182]: list groupsFrom unicard-ic -
Solaris 10 ships with a working (if not up-to-date) version of samba however the libraries are not compatible with the sunfreeware product.
The problem you are seeing is caused by the sunfreeware product not having an
nss_winbind.solibrary in the package and/usr/lib/nss_winbind.sois not compatible.To fix you will have to create your own. Download the samba source from sunfreeware and unpack it to a convenient directory then cd to it (samba-3.4.2 is current)
cd source3 ./configure make nss_modulesthis will produce a
../nsswitch/libnss_winbind.soOn my test system copying this file to
/usr/local/samba/lib/nss_winbind.so.1fixed the problem.
weeheavy : This works, many thanks! Great explanation too, somehow I lost myself after days of try & error.From Iain
0 comments:
Post a Comment