diff options
author | Jeremy Allison <jra@samba.org> | 2001-12-18 19:44:14 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-12-18 19:44:14 +0000 |
commit | 7b8fb8d85c406b8755f60cf14dc2377bc59eda53 (patch) | |
tree | 9293e0a6aab24e4fa3e40954ad338ed1fb1e973b /source/lib/util_sid.c | |
parent | 2a1b531a1c4f1a4772c95c867f35eac50ed1c7fa (diff) | |
download | samba-7b8fb8d85c406b8755f60cf14dc2377bc59eda53.tar.gz samba-7b8fb8d85c406b8755f60cf14dc2377bc59eda53.tar.xz samba-7b8fb8d85c406b8755f60cf14dc2377bc59eda53.zip |
Fixup JF's weird SID return :-).
Jeremy
Diffstat (limited to 'source/lib/util_sid.c')
-rw-r--r-- | source/lib/util_sid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/lib/util_sid.c b/source/lib/util_sid.c index 72365f5e46d..1e0feac049c 100644 --- a/source/lib/util_sid.c +++ b/source/lib/util_sid.c @@ -42,6 +42,7 @@ DOM_SID global_sid_Builtin_Guests; /* Builtin guest users */ DOM_SID global_sid_Authenticated_Users; /* All authenticated rids */ DOM_SID global_sid_Network; /* Network rids */ DOM_SID global_sid_Anonymous; /* Anonymous login */ +DOM_SID global_sid_nonexistent; /* S-0-0. Used in Lsa level 3. */ const DOM_SID *global_sid_everyone = &global_sid_World; @@ -182,6 +183,7 @@ void generate_wellknown_sids(void) string_to_sid(&global_sid_Authenticated_Users, "S-1-5-11"); string_to_sid(&global_sid_Network, "S-1-5-2"); string_to_sid(&global_sid_Anonymous, "S-1-5-7"); + string_to_sid(&global_sid_nonexistent, "S-0-0"); /* Used in Lsa level 3. */ /* Create the anon token. */ sid_copy( &anonymous_token.user_sids[0], &global_sid_World); @@ -360,10 +362,10 @@ char *sid_to_string(fstring sidstr_out, DOM_SID *sid) Convert a string to a SID. Returns True on success, False on fail. *****************************************************************/ -BOOL string_to_sid(DOM_SID *sidout, char *sidstr) +BOOL string_to_sid(DOM_SID *sidout, const char *sidstr) { pstring tok; - char *p = sidstr; + const char *p = sidstr; /* BIG NOTE: this function only does SIDS where the identauth is not >= 2^32 */ uint32 ia; |