summaryrefslogtreecommitdiff
path: root/source3/auth/token_util.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-09-03 14:36:43 -0400
committerSimo Sorce <idra@samba.org>2008-09-03 14:36:43 -0400
commit3fa16da8c70af9c54e03ea2a497d18009d2126e9 (patch)
tree2a0c13ba91c9c1701d151ec6b5174abe658be0ee /source3/auth/token_util.c
parent04691de379fa692b22fc9f0b58c0bd829ce7cc7a (diff)
downloadsamba-3fa16da8c70af9c54e03ea2a497d18009d2126e9.tar.gz
samba-3fa16da8c70af9c54e03ea2a497d18009d2126e9.tar.bz2
samba-3fa16da8c70af9c54e03ea2a497d18009d2126e9.zip
Revert "Split lookup_name() and create a new functiong called"
This reverts commit 8594edf666c29fd4ddf1780da842683dd81483b6. (This used to be commit ad462e2e2d025a7fc23e7dea32b2b442b528970b)
Diffstat (limited to 'source3/auth/token_util.c')
-rw-r--r--source3/auth/token_util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c
index 2b55af779e..d6cd2ea3a8 100644
--- a/source3/auth/token_util.c
+++ b/source3/auth/token_util.c
@@ -291,6 +291,7 @@ NTSTATUS create_builtin_administrators(const DOM_SID *dom_sid)
{
NTSTATUS status;
DOM_SID dom_admins, root_sid;
+ fstring root_name;
enum lsa_SidType type;
TALLOC_CTX *ctx;
bool ret;
@@ -316,9 +317,9 @@ NTSTATUS create_builtin_administrators(const DOM_SID *dom_sid)
if ( (ctx = talloc_init("create_builtin_administrators")) == NULL ) {
return NT_STATUS_NO_MEMORY;
}
- ret = lookup_domain_name(ctx, get_global_sam_name(), "root",
- LOOKUP_NAME_DOMAIN,
- NULL, NULL, &root_sid, &type);
+ fstr_sprintf( root_name, "%s\\root", get_global_sam_name() );
+ ret = lookup_name(ctx, root_name, LOOKUP_NAME_DOMAIN, NULL, NULL,
+ &root_sid, &type);
TALLOC_FREE( ctx );
if ( ret ) {