From 8a78a0a27ae5fdf43f137ea3c9fcd6dc4862a70f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 13 Jan 2003 13:11:36 +0000 Subject: Patch from metze to add what he feels is the correct semantics for a Domain Controller. As we have had a number of attempts at this over the last little while, I need to get my test rig going, and give this whole area a poke... Meanwhile, if you want to use this, just adjust your 'auth methods' line to use samstrict_dc... Andrew Bartlett (This used to be commit 18e598ec24493026008fcfe486057555b8832108) --- source3/lib/util.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 9ab33ce2ed..07f7328b05 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1719,6 +1719,23 @@ BOOL is_myname_or_ipaddr(const char *s) return False; } +/******************************************************************* + Is the name specified our workgroup/domain. + Returns true if it is equal, false otherwise. +********************************************************************/ + +BOOL is_myworkgroup(const char *s) +{ + BOOL ret = False; + + if (strequal(s, lp_workgroup())) { + ret=True; + } + + DEBUG(8, ("is_myworkgroup(\"%s\") returns %d\n", s, ret)); + return(ret); +} + /******************************************************************* Set the horrid remote_arch string based on an enum. ********************************************************************/ -- cgit