LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-23-2003, 12:54 PM   #16
acb67
Member
 
Registered: Jun 2002
Posts: 50

Rep: Reputation: 15

the entried winbind uid and winbind gid have apparently been replaced by idmap in samba 3. i get a warning in the logs saying winbind uid and winbind gid have been deprecated. i tried changing the ceiling of the ranges to 50000, but i get the same result.

wbinfo -u, -g, -a, -t, -p all work successfully, as well as getent passwd.

that function i mentioned about, getpwnam(), seems to just read in the /etc/passwd file and check against that. when i do a getent passwd, i get every single domain user, but the passwd file remains unchanged. i hacked this a little by doing 'getent passwd >> /etc/passwd' and everything worked. unfortunately, there are a lot of issues associated with cheating this way, so i can't really use this as a solution.

the man page did say that "if libnss_winbind was installed correctly, getpwnam() should always work properly." i'm pretty sure libnss_winbind is installed correctly...is there someway to tell if it is not??

again, we are back to the same problem...is there a way to make getpwnam() read from the PDC directly?
 
Old 07-23-2003, 02:45 PM   #17
Linuxpenguin
LQ Newbie
 
Registered: Jul 2003
Posts: 28

Original Poster
Rep: Reputation: 15
I am not sure if this is the answer you're looking for, but you can tell getpwnam to look at the PDC by editing the /etc/nsswitch.conf file.

You should add winbind to the passwd: and group: lines.

Example:

passwd: files nisplus winbind

group: files nisplus winbind

I am running SAMBA 2.2.8 so it may be a little different for you.
 
Old 07-23-2003, 05:06 PM   #18
acb67
Member
 
Registered: Jun 2002
Posts: 50

Rep: Reputation: 15
ok, so it is finally working. thank you so much for all the help. the solution was pretty simple.

i had to reboot.

i think that problem was the changes i made to nsswitch.conf were not available to winbind. even when i did the ldconfig. so when i rebooted, it got sent the SIGHUP signal, which reinitialized everything. that was most likely the cause of the problems. either that or winbind was using its old cache and not looking to the PDC. either way, the SIGHUP signal fixed the problem.

now to tackle the home drives.....

again, thanks for all the help. im sure ill be back asking for more help soon.
 
Old 07-24-2003, 07:48 AM   #19
Linuxpenguin
LQ Newbie
 
Registered: Jul 2003
Posts: 28

Original Poster
Rep: Reputation: 15
For future reference you can stop and restart the winbind and samba services by typing the following in a terminal.

samba stop

service winbind stop

then type:

samba start

service winbind start
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Winbind and AD Trainlogan Linux - Networking 2 10-04-2005 09:23 AM
winbind --with-winbind-auth-challenge paul_mat Linux - Networking 0 09-27-2005 01:19 AM
winbind paul_mat Linux - Networking 0 05-08-2005 07:21 PM
NT users login choices disappeared on Mandrake with winbind activated smiler Mandriva 1 06-24-2004 01:26 PM
winbind Mandrake 9.1 Linuxpenguin Linux - Newbie 0 07-10-2003 02:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration