summaryrefslogtreecommitdiffstats
path: root/source3/lib/username.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/username.c')
-rw-r--r--source3/lib/username.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/username.c b/source3/lib/username.c
index 071943f2ffc..fdb942cd234 100644
--- a/source3/lib/username.c
+++ b/source3/lib/username.c
@@ -25,6 +25,16 @@
static struct passwd *uname_string_combinations(char *s, struct passwd * (*fn) (const char *), int N);
static struct passwd *uname_string_combinations2(char *s, int offset, struct passwd * (*fn) (const char *), int N);
+/*****************************************************************
+ Check if a user or group name is local (this is a *local* name for
+ *local* people, there's nothing for you here...).
+*****************************************************************/
+
+BOOL name_is_local(const char *name)
+{
+ return !strchr_m(name, *lp_winbind_separator());
+}
+
/****************************************************************************
Get a users home directory.
****************************************************************************/