s4:server: avoid calling into nss_winbind from within 'samba'
commit93d42071056980a9a438cfe4660154a6050226dc
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Jul 2013 12:48:18 +0000 (10 14:48 +0200)
committerKarolin Seeger <kseeger@samba.org>
Mon, 29 Jul 2013 19:43:38 +0000 (29 21:43 +0200)
tree1ca07c52eb22ba90171826d294916b84227f9267
parent45349be04011579f0a65ae687c13c90beaeda684
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>
The last 5 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