s4:server: avoid calling into nss_winbind from within 'samba'
authorStefan Metzmacher <metze@samba.org>
Wed, 10 Jul 2013 12:48:18 +0000 (14:48 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 10 Jul 2013 21:18:06 +0000 (23:18 +0200)
commit596b51c666e549fb518d92931d8837922154a2fe
treebfd22b1a428c46e99a4306ca3a3498e31d60430c
parent1573638212a9733a44939a4d38a226f38dca36f1
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
file_server/file_server.c
source4/smbd/server.c