s4:server: avoid calling into nss_winbind from within 'samba'
commit1ed811b598618421fb4ce4ba0677802fb52a65f9
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Jul 2013 12:48:18 +0000 (10 14:48 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 5 Aug 2013 18:25:08 +0000 (5 20:25 +0200)
tree6790b56b3c0e3bc05850b2ad03a1998a123e45eb
parent8925c93f3e1df4886554340ef2edd3d3c81d5ecf
s4:server: avoid calling into nss_winbind from within 'samba'

The most important part is that the 'winbind_server' doesn't
recurse into itself. This could happen if the krb5 libraries
call getlogin().

As we may run in single process mode, we need to set
_NO_WINBINDD=1 everywhere, the only exception is the forked
'smbd'.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Jul 10 23:18:06 CEST 2013 on sn-devel-104
(cherry picked from commit 596b51c666e549fb518d92931d8837922154a2fe)

The last 4 patches address bug #9820 - crash of winbind after "ls -l
/usr/local/samba/var/locks/sysvol".
file_server/file_server.c
source4/smbd/server.c