Add combined flag LOOKUP_NAME_LOCAL.
authorMichael Adam <obnox@samba.org>
Mon, 17 Dec 2007 11:11:41 +0000 (12:11 +0100)
committerMichael Adam <obnox@samba.org>
Mon, 17 Dec 2007 11:37:35 +0000 (12:37 +0100)
Presence of LOOKUP_NAME_ISOLATED as the only flag is not the sign
for doing local lookups only but the sign for allowing lookups
of unqualified names. The correct sign is absence of the flag
LOOKUP_NAME_REMOTE.

Michael

source/include/smb.h

index ed1d04921669231d1c762be6942d8f3572a71a79..ee43bae764b613e5e00ad4a98f11db113fd229af 100644 (file)
@@ -270,6 +270,10 @@ enum lsa_SidType {
 #define LOOKUP_NAME_BUILTIN            0x00000010 /* builtin names */
 #define LOOKUP_NAME_WKN                        0x00000020 /* well known names */
 #define LOOKUP_NAME_DOMAIN             0x00000040 /* only lookup own domain */
+#define LOOKUP_NAME_LOCAL              (LOOKUP_NAME_ISOLATED\
+                                       |LOOKUP_NAME_BUILTIN\
+                                       |LOOKUP_NAME_WKN\
+                                       |LOOKUP_NAME_DOMAIN)
 #define LOOKUP_NAME_ALL                        (LOOKUP_NAME_ISOLATED\
                                        |LOOKUP_NAME_REMOTE\
                                        |LOOKUP_NAME_BUILTIN\