Barry L. Kline
2006-Oct-26 17:32 UTC
[Samba] wbinfo -u works, getent passwd doesn't, not nsswitch.conf
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a Red Hat Enterprise Linux 4.4 box running on the PPC64 platform. It has been configured as a domain member. I installed RHEL4.4 by selecting a minimal install and when completed, manually added the "samba" and "samba-common" packages. I modified the smb.conf to make it a domain member, successfully joined the domain and then started winbind. A quick test using wbinfo -u & wbinfo -g confirms that all is well. Next I modifed /etc/nsswitch.conf such that I have the following entries: passwd: files winbind shadow: files group: files winbind When I try a "getent passwd" I get only the local users. Similarly, when I try a "getent group" I get only the local groups. To try and narrow this down, I fired up a VMWare instance and installed on it CentOS 4.4 (a RHEL4 respin) and followed the same steps. Everything works as it should, both wbinfo and getent. When I browse from a Windows box to the VMWare instance, I get immediate access to my "homes" share. If I browse to the PPC64 instance, I get prompted for my username & password. When entered they are never successfully accepted. For fun, I wiped the PPC64 machine and reinstalled the OS, this time adding "Windows File Server" to the mix. Following the same procedure as before, "getent passwd" now displays entries from winbind, but they are all blank... They look like: ::0:10001:, with one of these per user from the domain. Looking over the installed packages list I note that I have two "samba-common" packages installed. One is compiled for ppc, the other for ppc64. Erasing the one compiled for ppc puts me in the same state as before -- wbinfo returns domain users and getent doesn't. I have even copied /etc/samba/smb.conf and /etc/nsswitch.conf from the working machine to the PPC64 machine, with the same result. I'm at a complete standstill here. Can anyone offer any suggestions as to what I'm missing or what I should next check? This is Samba 3.0.10, with Samba configured as a domain member on RHEL 4 PPC64. Thanks in advance! Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFFQOLbCFu3bIiwtTARAoB0AJwKiGwjdaszAyB5EHU/+vXwvjHRgQCcC0ut Udi/mdwha06/cLwwHdc2fjA=97Mr -----END PGP SIGNATURE-----
Barry L. Kline
2006-Oct-26 18:35 UTC
[Samba] wbinfo -u works, getent passwd doesn't, not nsswitch.conf
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Henrik Zagerholm wrote:> Hello, > > I had a similar problem and the solution was to make sure that the > libnss_winbind.so was linked correctly. > > More details here => > http://us3.samba.org/samba/docs/man/Samba-HOWTO-Collection/winbind.html > > Cheers, > HenrikHello Henrik. Thanks for the suggestion. I should have mentioned in my original post that I had verified the link -- per the "The Official Samba-3 HOWTO and Reference Guide.". I double-checked and that is properly linked. Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFFQP/fCFu3bIiwtTARAnf+AJ98aHSnWhve/4fko66uuxc7Y19k5wCdGeoP Yitjl2rDKxd8GWHvI+ya0Co=qSo0 -----END PGP SIGNATURE-----
Henrik Zagerholm
2006-Oct-26 18:40 UTC
[Samba] wbinfo -u works, getent passwd doesn't, not nsswitch.conf
Hello, I had a similar problem and the solution was to make sure that the libnss_winbind.so was linked correctly. More details here => http://us3.samba.org/samba/docs/man/Samba-HOWTO- Collection/winbind.html Cheers, Henrik 26 okt 2006 kl. 18:31 skrev Barry L. Kline:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I have a Red Hat Enterprise Linux 4.4 box running on the PPC64 > platform. > It has been configured as a domain member. I installed RHEL4.4 by > selecting a minimal install and when completed, manually added the > "samba" and "samba-common" packages. > > I modified the smb.conf to make it a domain member, successfully > joined > the domain and then started winbind. A quick test using wbinfo -u & > wbinfo -g confirms that all is well. > > Next I modifed /etc/nsswitch.conf such that I have the following > entries: > > passwd: files winbind > shadow: files > group: files winbind > > When I try a "getent passwd" I get only the local users. Similarly, > when I try a "getent group" I get only the local groups. > > To try and narrow this down, I fired up a VMWare instance and > installed > on it CentOS 4.4 (a RHEL4 respin) and followed the same steps. > Everything works as it should, both wbinfo and getent. > > When I browse from a Windows box to the VMWare instance, I get > immediate > access to my "homes" share. If I browse to the PPC64 instance, I get > prompted for my username & password. When entered they are never > successfully accepted. > > For fun, I wiped the PPC64 machine and reinstalled the OS, this time > adding "Windows File Server" to the mix. Following the same > procedure > as before, "getent passwd" now displays entries from winbind, but they > are all blank... They look like: ::0:10001:, with one of these per > user from the domain. > > Looking over the installed packages list I note that I have two > "samba-common" packages installed. One is compiled for ppc, the other > for ppc64. Erasing the one compiled for ppc puts me in the same state > as before -- wbinfo returns domain users and getent doesn't. > > I have even copied /etc/samba/smb.conf and /etc/nsswitch.conf from > the > working machine to the PPC64 machine, with the same result. > > I'm at a complete standstill here. Can anyone offer any > suggestions as > to what I'm missing or what I should next check? This is Samba > 3.0.10, > with Samba configured as a domain member on RHEL 4 PPC64. > > Thanks in advance! > > Barry > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.6 (GNU/Linux) > > iD8DBQFFQOLbCFu3bIiwtTARAoB0AJwKiGwjdaszAyB5EHU/+vXwvjHRgQCcC0ut > Udi/mdwha06/cLwwHdc2fjA> =97Mr > -----END PGP SIGNATURE----- > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/listinfo/samba
Barry L. Kline
2006-Oct-26 18:41 UTC
[Samba] wbinfo -u works, getent passwd doesn't, not nsswitch.conf
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Matt wrote:> try adding the following to your smb.conf > winbind enum users = yes > winbind enum groups = yes > > The above will work if you are using samba 3.0.23b or higherHi Matt. Unfortunately, I'm at 3.0.10, which is packaged with RHEL. I tried that anyway, without luck. Barry -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (GNU/Linux) iD8DBQFFQQAmCFu3bIiwtTARApEOAJ98jr5l5yAKTHewKTGOAg8HJn2HUQCgg57a Cn5bOri8aCXktNUwb2fOm9s=obwT -----END PGP SIGNATURE-----
Reasonably Related Threads
- CESA-2006:0500 Moderate CentOS 4 s390(x) freetype - security update
- CentOS-announce Digest, Vol 3, Issue 5
- CentOS-announce Digest, Vol 17, Issue 6
- CESA-2006:0500 Moderate CentOS 4 x86_64 freetype - security update
- CESA-2006:0500 Moderate CentOS 4 i386 freetype - security update