Hi, I am using centos 6.3 and did the migration from samba3 to Samba4. More the "getent passwd" does not return users. I made the link: ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2 And change in /etc/nsswitch: passwd: files winbind shadow: files group: files winbind When I run the command: /usr/local/samba/bin/wbinfo-u Returns correctly. Can anyone help me.
On 03/12/12 12:07, Clodonil Trigo wrote:> Hi, > > I am using centos 6.3 and did the migration from samba3 to Samba4. More the > "getent passwd" does not return users. > > I made the link: > ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so > ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2 > > And change in /etc/nsswitch: > > passwd: files winbind > shadow: files > group: files winbind > > When I run the command: > > /usr/local/samba/bin/wbinfo-u > > Returns correctly. > > Can anyone help me.Hi, have you tried restarting Samba4? Rowland -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
>>On 03/12/12 12:07, Clodonil Trigo wrote: >>* Hi,*>>**>>* I am using centos 6.3 and did the migration from samba3 to Samba4. More the*>>* "getent passwd" does not return users.*>>**>>* I made the link:*>>* ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so*>>* ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2*>>**>>* And change in /etc/nsswitch:*>>**>>* passwd: files winbind*>>* shadow: files*>>* group: files winbind*>>**>>* When I run the command:*>>**>>* /usr/local/samba/bin/wbinfo-u*>>**>>* Returns correctly.*>>**>>* Can anyone help me.*>Hi, have you tried restarting Samba4?>Rowland>-- >This message has been scanned for viruses and >dangerous content by MailScanner, and is >believed to be clean.**I did restart, but it did not work. The Samba4 is working normal. Only getent not. Clodonil
On 12/3/12, Clodonil Trigo <clodonil at nisled.org> wrote:> I am using centos 6.3 and did the migration from samba3 to Samba4. More the > "getent passwd" does not return users. > I made the link: > ln-s /usr/local/samba/lib/libnss_winbind.so.2 / lib/libnss_winbind.so > ln-s /lib/libnss_winbind.so /lib/libnss_winbind.so.2I had similar problem but with Debian package, so I'm not sure that I'll help you (debian samba4 package is rather interesting thing) but in my case the problem was that libnss_winbind expects socket to be in /tmp/.winbind/ (or .winbindd? Check with "strings".) while winbind component stores it in /var/run/samba4/winbind/ (I don't know the correct path for your case). Try to make bind mount of socket directory or set correct path in smb.conf.
Hello Clodonil, I just got to this point in my testing. Be sure you link the files to /lib64 if you are running a 64 bit version of CentOS. I was having the same problem and realized the files needed to go in /lib64.
Hello Thomas, That was it. I made a link in / lib64 and resolved. Clodonil 2012/12/13 Thomas Simmons <twsnnva at gmail.com>> I just got to this point in my testing. Be sure you link the files to > /lib64 if you are running a 64 bit version of CentOS. I was having the same > problem and realized the files needed to go in /lib64. >