summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch/winbindd_util.c')
-rw-r--r--source3/nsswitch/winbindd_util.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_util.c b/source3/nsswitch/winbindd_util.c
index e3f00149f7..a14ed96c67 100644
--- a/source3/nsswitch/winbindd_util.c
+++ b/source3/nsswitch/winbindd_util.c
@@ -378,10 +378,16 @@ void free_getent_state(struct getent_state *state)
}
}
-/* Initialise trusted domain info */
+/* Parse winbindd related parameters */
BOOL winbindd_param_init(void)
{
+ if (lp_security() != SEC_DOMAIN && lp_security() != SEC_ADS) {
+ DEBUG(0, ("must be in security = domain or security = ads mode to run winbindd\n"));
+ return False;
+ }
+
+
/* Parse winbind uid and winbind_gid parameters */
if (!lp_winbind_uid(&server_state.uid_low, &server_state.uid_high)) {