|
when wbinfo -u (wbinfo -g) works, but getent passwd (getent group) doesn't
My Debian v5 (aka Lenny) file server was that way (even after successfully joining the domain and like you, wbinfo commands showed AD users and groups); went back into the samba config file and uncommented the winbind enum lines (note: comments stated "was the default behavior" but now not because "it might induce performance issues in large organizations", as was in my case); stopped winbind, restarted samba, started winbind, and poof (okay, took a few moments to get the results), getent showed ids for the various groups and users!
sudo pico /etc/samba/smb.conf
uncomment (i.e. remove the leading semi-colon):
winbind enum users = yes
winbind enum groups = yes
Ctrl (aka control) and "x", "y", Enter
sudo /etc/init.d/winbind stop
sudo /etc/init.d/samba restart
sudo /etc/init.d/winbind start
getent group
But wait, you seem to show that your enum lines are uncommented; wonder if you have a firewall issue (e.g. for me, I use iptables, so something like "sudo iptables -A INPUT -p udp -j LOG --log-prefix "UDP DROP:" before "sudo iptables -A INPUT -p udp -j DROP" and then "dmesg" after trying the getent commands to see if dropped traffic is getting logged). I also left my "shadow: compat" in my /etc/nsswitch.conf, and I "sudo ln -s /lib/libnss_winbind.so.2 /lib/libnss_winbind.so" just in case. Hope this helps.
Last edited by hunter3740; 06-30-2011 at 04:18 PM.
|