Fix flags in caller of lookup_name() in create_builtin_administrators().
authorMichael Adam <obnox@samba.org>
Mon, 17 Dec 2007 09:54:05 +0000 (10:54 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 17 Dec 2007 12:06:09 +0000 (13:06 +0100)
Michael
(This used to be commit 46bfbf5c8af6c030e67219a29c49fd2d40003b18)

source3/auth/token_util.c

index 2415a90b0230c493aedc324aadbe0a3ba4ea950c..eb8271faf673e78a85dde9a0fd4663b7e85885aa 100644 (file)
@@ -249,7 +249,8 @@ static NTSTATUS create_builtin_administrators( void )
                return NT_STATUS_NO_MEMORY;
        }
        fstr_sprintf( root_name, "%s\\root", get_global_sam_name() );
-       ret = lookup_name( ctx, root_name, 0, NULL, NULL, &root_sid, &type );
+       ret = lookup_name(ctx, root_name, LOOKUP_NAME_DOMAIN, NULL, NULL,
+                         &root_sid, &type);
        TALLOC_FREE( ctx );
 
        if ( ret ) {