summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2000-07-06 06:48:54 +0000
committerTim Potter <tpot@samba.org>2000-07-06 06:48:54 +0000
commit084af3c5be2d7cd6ab68431f4f2b12113e246528 (patch)
tree0fe0f4d1329560362d266fb36b6f86f57e7b7c3d
parentdc7b20a47d52e8eed87a93150cb9f11384157676 (diff)
downloadsamba-084af3c5be2d7cd6ab68431f4f2b12113e246528.tar.gz
samba-084af3c5be2d7cd6ab68431f4f2b12113e246528.tar.bz2
samba-084af3c5be2d7cd6ab68431f4f2b12113e246528.zip
Added global_sid_NULL S-1-0-0 to list of global sids.
(This used to be commit f49905e74c6e3891b5816b136fd1d0d77c392e2f)
-rw-r--r--source3/include/sids.h1
-rw-r--r--source3/lib/util_sid.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/source3/include/sids.h b/source3/include/sids.h
index faf311937a..86aa58b621 100644
--- a/source3/include/sids.h
+++ b/source3/include/sids.h
@@ -31,6 +31,7 @@ extern DOM_SID global_member_sid;
extern DOM_SID global_sid_S_1_5_32; /* local well-known domain */
extern DOM_SID global_sid_S_1_1; /* Global Domain */
+extern DOM_SID global_sid_NULL;
extern const DOM_SID *global_sid_everyone;
extern const DOM_SID *global_sid_system; /* SYSTEM */
diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c
index 43fd7ecc59..42fdfb15fe 100644
--- a/source3/lib/util_sid.c
+++ b/source3/lib/util_sid.c
@@ -39,6 +39,7 @@ DOM_SID global_sid_World; /* everyone */
DOM_SID global_sid_Creator_Owner_Domain; /* Creator Owner */
DOM_SID global_sid_Creator_Owner; /* Creator Owner */
DOM_SID global_sid_NT_Authority; /* NT Authority */
+DOM_SID global_sid_NULL; /* NULL sid */
const DOM_SID *global_sid_everyone = &global_sid_World;
@@ -93,6 +94,7 @@ void generate_wellknown_sids(void)
string_to_sid(&global_sid_Creator_Owner_Domain, "S-1-3");
string_to_sid(&global_sid_Creator_Owner, "S-1-3-0");
string_to_sid(&global_sid_NT_Authority, "S-1-5");
+ string_to_sid(&global_sid_NULL, "S-1-0-0");
}
/**************************************************************************