Hello, all-- I've a question regarding using WINS for resolving names while on the unix box. As I understand it, you're supposed to add something to the /etc/nsswitch.conf file, but it's not clear to me whether it's supposed to be 'wins', 'winbind', or 'winbindd' as in the following example: hosts: files wins nisplus nis dns hosts: files winbind nisplus nis dns hosts: files winbindd nisplus nis dns Which is correct? (I'm not using nis, so I guess those could be removed but they aren't hurting anything by being there.) I believe I have the windbind options in smb.conf configured correctly, and winbindd is starting automatically. In my situation, the Samba server is also acting as a WINS server. Thanks, --Jon jon@sutinen.com
--- Jonathan Johnson <jon@sutinen.com> wrote:> I've a question regarding using WINS for resolving > names while on the unix > box. As I understand it, you're supposed to add > something to the > /etc/nsswitch.conf file, but it's not clear to me > whether it's supposed to > be 'wins', 'winbind', or 'winbindd' as in the > following example: > > hosts: files wins nisplus nis dns > hosts: files winbind nisplus nis dns > hosts: files winbindd nisplus nis dns > > Which is correct? (I'm not using nis, so I guess > those could be removed but > they aren't hurting anything by being there.)winbind; nisplus and nis can indeed be removed if not used.> I believe I have the windbind options in smb.conf > configured correctly, and > winbindd is starting automatically. In my situation, > the Samba server is > also acting as a WINS server.Sometimes there is no link called /lib/libnss_winbind.so.2 created, which links to /lib/libnss_winbind.so so you might need to create one. Also, make sure winbind is started ps ax | grep winbind and run getent passwd You should see your usernames. /dev/idal __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
As I said below, winbind. /dev/idal --- Jonathan Johnson <jon@sutinen.com> wrote:> To restate the question: should the line in > nsswitch.conf have 'wins', > 'winbind', or 'winbindd'?? Assume that everything > else is correctly > configured, the syntax is all I want to know. > > --Jon > > On Tue, 28 Jan 2003, Chris de Vidal wrote: > > --- Jonathan Johnson <jon@sutinen.com> wrote: > > > I've a question regarding using WINS for > resolving > > > names while on the unix box > <snip> > > > hosts: files wins nisplus nis dns > > > hosts: files winbind nisplus nis dns > > > hosts: files winbindd nisplus nis dns > > > > > > Which is correct? (I'm not using nis, so I > guess > > > > those could be removed but > > > > they aren't hurting anything by being there.) > > > > > > winbind; nisplus and nis can indeed be removed > if > > not > > > used. > > <snip> > > > Sometimes there is no link called > > > /lib/libnss_winbind.so.2 > > > created, which links to > > > /lib/libnss_winbind.so > > > so you might need to create one. > > > > Thanks for this tip; I'll watch out for that.__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
WINS != winbind The appropriate hosts entry in nsswitch.conf would be wins, not winbind. You might also want to look at 'name resolve order' in smb.conf. Since you've made your samba server the wins server, make sure your windows clients know it. Winbind is for making unix users out of windows users without creating "real" accounts on the system. I don't think this is what you were going for. ~ Daniel> -----Original Message----- > From: Jonathan Johnson > Sent: Tuesday, January 28, 2003 5:00 PM > Subject: [Samba] Using Winbindd in nsswitch.conf > > > Hello, all-- > > I've a question regarding using WINS for resolving names > while on the unix > box. As I understand it, you're supposed to add something to the > /etc/nsswitch.conf file, but it's not clear to me whether > it's supposed to > be 'wins', 'winbind', or 'winbindd' as in the following example: > > hosts: files wins nisplus nis dns > hosts: files winbind nisplus nis dns > hosts: files winbindd nisplus nis dns > > Which is correct? (I'm not using nis, so I guess those could > be removed but > they aren't hurting anything by being there.) > > I believe I have the windbind options in smb.conf configured > correctly, and > winbindd is starting automatically. In my situation, the > Samba server is > also acting as a WINS server. > > Thanks, > --Jon > jon@sutinen.com > > ------------------------------------------------------------------------- This message is the property of Time Inc. or its affiliates. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message. Thank you.