diff options
Diffstat (limited to 'source3/smbd/uid.c')
-rw-r--r-- | source3/smbd/uid.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 524ddb15ab..9a9de0a796 100644 --- a/source3/smbd/uid.c +++ b/source3/smbd/uid.c @@ -437,6 +437,16 @@ void add_supplementary_nt_login_groups(int *n_groups, gid_t **pp_groups, NT_USER } /***************************************************************** + 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()); +} + +/***************************************************************** *THE CANONICAL* convert name to SID function. Tries winbind first - then uses local lookup. *****************************************************************/ |