r15328: Move some functions around, remove dependencies.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 29 Apr 2006 17:34:49 +0000 (17:34 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:05:17 +0000 (14:05 -0500)
Remove some autogenerated headers (which had prototypes now autogenerated by pidl)
Remove ndr_security.h from a few places - it's no longer necessary

45 files changed:
source/auth/auth_sam.c
source/auth/sam.c
source/client/client.c
source/dsdb/common/sidmap.c
source/dsdb/samdb/cracknames.c
source/dsdb/samdb/ldb_modules/extended_dn.c
source/dsdb/samdb/ldb_modules/password_hash.c
source/heimdal_build/config.mk
source/kdc/kpasswdd.c
source/lib/samba3/share_info.c
source/libcli/security/config.mk
source/libcli/security/dom_sid.c
source/libcli/security/sddl.c
source/libcli/security/security_token.c
source/libcli/util/clilsa.c
source/libnet/libnet_join.c
source/libnet/libnet_samdump.c
source/libnet/libnet_samsync_ldb.c
source/librpc/config.mk
source/librpc/idl/drsuapi.idl
source/librpc/idl/krb5pac.idl
source/librpc/idl/nbt.idl
source/librpc/idl/security.idl
source/librpc/ndr/libndr.h
source/librpc/ndr/ndr_drsuapi.c
source/librpc/ndr/ndr_sec.c [deleted file]
source/librpc/ndr/ndr_sec_helper.c
source/ntvfs/common/opendb.c
source/ntvfs/ntvfs_generic.c
source/rpc_server/lsa/dcesrv_lsa.c
source/rpc_server/netlogon/dcerpc_netlogon.c
source/rpc_server/samr/dcesrv_samr.c
source/rpc_server/samr/samr_password.c
source/scripting/ejs/ejsrpc.c
source/scripting/ejs/smbcalls_samba3.c
source/torture/auth/pac.c
source/torture/libnet/userinfo.c
source/torture/local/sddl.c
source/torture/raw/acls.c
source/torture/rpc/lsa_lookup.c
source/torture/rpc/samr.c
source/utils/net/net_join.c
source/utils/ntlm_auth.c
source/winbind/wb_init_domain.c
source/winbind/wb_samba3_cmd.c

index f6b8316eb700e8722c9a18aae01b7bc6e0bed8ba..dbf79bd34d406ea495e2b8c9108b3dd964ba78c3 100644 (file)
@@ -28,7 +28,6 @@
 #include "dsdb/samdb/samdb.h"
 #include "libcli/security/security.h"
 #include "libcli/ldap/ldap.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 extern const char *user_attrs[];
 extern const char *domain_ref_attrs[];
index a40e844f857cb44c7d8ff44f50d1f1b6b321565b..0e9fa5c02e4ed7ba04f31c7191507c3fae27b341 100644 (file)
@@ -27,7 +27,6 @@
 #include "dsdb/samdb/samdb.h"
 #include "libcli/security/security.h"
 #include "libcli/ldap/ldap.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 const char *user_attrs[] = {
        /* required for the krb5 kdc */
index 328fd8d853c25daf37749821b366df41f269b417..a17ce8e686810ca7df364d81f2722724ccfe599d 100644 (file)
@@ -27,6 +27,7 @@
 #include "lib/cmdline/popt_common.h"
 #include "librpc/gen_ndr/ndr_srvsvc_c.h"
 #include "librpc/gen_ndr/ndr_lsa.h"
+#include "librpc/gen_ndr/ndr_security.h"
 #include "libcli/raw/libcliraw.h"
 #include "libcli/util/clilsa.h"
 #include "system/dir.h"
@@ -39,7 +40,6 @@
 #include "libcli/security/security.h"
 #include "lib/replace/readline.h"
 #include "librpc/gen_ndr/ndr_nbt.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 static int io_bufsize = 64512;
 
index 2b1de42cf0bb048ad95aa7332148745c1d3b65b9..3590c57b84c2208bcaf5a0b818e7c1286b5c6ab2 100644 (file)
@@ -28,7 +28,6 @@
 #include "libcli/ldap/ldap.h"
 #include "db_wrap.h"
 #include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 /*
   these are used for the fallback local uid/gid to sid mapping
@@ -43,7 +42,7 @@
   private context for sid mapping routines
 */
 struct sidmap_context {
-       struct ldb_wrap *samctx;
+       struct ldb_context *samctx;
 };
 
 /*
index 7d6fe70248ebf67cff9fc6022e23ef7445b5ea8b..c0d320f106873ed82ce86f757ffc7168a10cfe94 100644 (file)
 #include "auth/kerberos/kerberos.h"
 #include "libcli/ldap/ldap.h"
 #include "libcli/security/security.h"
+#include "librpc/gen_ndr/ndr_misc.h"
 #include "auth/auth.h"
 #include "db_wrap.h"
 #include "dsdb/samdb/samdb.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 static WERROR DsCrackNameOneFilter(struct ldb_context *sam_ctx, TALLOC_CTX *mem_ctx,
                                   struct smb_krb5_context *smb_krb5_context,
index 87446328f64dabe905532fdf89049ec1f45c169a..e421f7d13c2dbcf67e563d2f9875b9f52c4bbf22 100644 (file)
@@ -36,8 +36,9 @@
 #include "ldb/include/ldb.h"
 #include "ldb/include/ldb_errors.h"
 #include "ldb/include/ldb_private.h"
+#include "librpc/gen_ndr/ndr_misc.h"
 #include "dsdb/samdb/samdb.h"
-#include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/security.h"
 
 #include <time.h>
 
index 8a5f94042a36e37739870676b9e93b03fc5227dd..0310fbf9e36c8e75aa1206b0974a09d0efe552e6 100644 (file)
@@ -36,8 +36,8 @@
 #include "ldb/include/ldb_private.h"
 #include "librpc/gen_ndr/misc.h"
 #include "librpc/gen_ndr/samr.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "libcli/auth/libcli_auth.h"
+#include "libcli/security/security.h"
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
 #include "system/time.h"
index 85274370937901dea4f3dd4e636230b18ffc8c71..1a21c15298b20f206b4fb56e8255d67dd1979ca2 100644 (file)
@@ -296,8 +296,6 @@ OBJ_FILES = \
 [SUBSYSTEM::HEIMDAL_ROKEN_GAI_STRERROR]
 OBJ_FILES = ../heimdal/lib/roken/gai_strerror.o
 
-#######################
-# Start SUBSYSTEM HEIMDAL_ROKEN_GAI_STRERROR
 [SUBSYSTEM::HEIMDAL_ROKEN_INET_ATON]
 CFLAGS = -Iheimdal_build -Iheimdal/lib/roken
 OBJ_FILES = ../heimdal/lib/roken/inet_aton.o
@@ -356,7 +354,8 @@ PUBLIC_DEPENDENCIES = \
                        HEIMDAL_ROKEN_GETPROGNAME \
                        GAI \
                        NSL \
-                       LIBREPLACE
+                       LIBREPLACE \
+                       RESOLV
 # End SUBSYSTEM HEIMDAL_ROKEN
 #######################
 
@@ -485,8 +484,7 @@ SO_VERSION = 0
 CFLAGS = -Iheimdal_build
 OBJ_FILES = ../heimdal/lib/vers/print_version.o
 PUBLIC_DEPENDENCIES = \
-               HEIMDAL_GSSAPI HEIMDAL_KRB5 KERBEROS \
-               RESOLV
+               HEIMDAL_GSSAPI HEIMDAL_KRB5 KERBEROS
 # End SUBSYSTEM HEIMDAL
 #######################
 
index 07e92ae2063f970e396f97fe835283b021a9ff68..48955e2ca7fff1f40b604d732ad78c7716e70c33 100644 (file)
 #include "lib/ldb/include/ldb.h"
 #include "heimdal/lib/krb5/krb5_locl.h"
 #include "heimdal/lib/krb5/krb5-private.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "auth/auth.h"
 #include "dsdb/samdb/samdb.h"
 #include "rpc_server/dcerpc_server.h"
 #include "rpc_server/samr/proto.h"
+#include "libcli/security/security.h"
 
 /* hold information about one kdc socket */
 struct kpasswd_socket {
index e96adfc175ef6fa83f2e4863c21e8c4269919258..318e0ff01f9e07d53b3308649220a82e805cfd9c 100644 (file)
@@ -61,10 +61,10 @@ NTSTATUS samba3_read_share_info(const char *fn, TALLOC_CTX *ctx, struct samba3 *
                struct samba3_share_info *share;
                char *name;
                
-               if (strncmp(kbuf.dptr, "SECDESC/", strlen("SECDESC/")) != 0)
+               if (strncmp((char *)kbuf.dptr, "SECDESC/", strlen("SECDESC/")) != 0)
                        continue;
 
-               name = talloc_strndup(ctx, kbuf.dptr+strlen("SECDESC/"), kbuf.dsize-strlen("SECDESC/"));
+               name = talloc_strndup(ctx, (char *)kbuf.dptr+strlen("SECDESC/"), kbuf.dsize-strlen("SECDESC/"));
 
                db->shares = talloc_realloc(db, db->shares, struct samba3_share_info, db->share_count+1);
                share = &db->shares[db->share_count];
index e19947203dba1d3047df44f58d0287806dd30611..3c97ec4264c21b4d0b5ea3eaa3e9d2b222069007 100644 (file)
@@ -8,6 +8,6 @@ OBJ_FILES = security_token.o \
                access_check.o \
                privilege.o \
                sddl.o
-PUBLIC_DEPENDENCIES = NDR_SECURITY 
+PUBLIC_DEPENDENCIES = NDR_MISC
 # End SUBSYSTEM LIBSECURITY
 #################################
index 131d1afa9c55ec27cc9a96dd6be644158c2bb247..39841e5a7038be3a4e62b09c426b36e9b06f610a 100644 (file)
@@ -240,3 +240,35 @@ BOOL dom_sid_in_domain(const struct dom_sid *domain_sid,
 
        return dom_sid_compare_auth(domain_sid, sid) == 0;
 }
+
+/*
+  convert a dom_sid to a string
+*/
+char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
+{
+       int i, ofs, maxlen;
+       uint32_t ia;
+       char *ret;
+       
+       if (!sid) {
+               return talloc_strdup(mem_ctx, "(NULL SID)");
+       }
+
+       maxlen = sid->num_auths * 11 + 25;
+       ret = talloc_size(mem_ctx, maxlen);
+       if (!ret) return talloc_strdup(mem_ctx, "(SID ERR)");
+
+       ia = (sid->id_auth[5]) +
+               (sid->id_auth[4] << 8 ) +
+               (sid->id_auth[3] << 16) +
+               (sid->id_auth[2] << 24);
+
+       ofs = snprintf(ret, maxlen, "S-%u-%lu", 
+                      (uint_t)sid->sid_rev_num, (unsigned long)ia);
+
+       for (i = 0; i < sid->num_auths; i++) {
+               ofs += snprintf(ret + ofs, maxlen - ofs, "-%lu", (unsigned long)sid->sub_auths[i]);
+       }
+       
+       return ret;
+}
index 46183ce2371622c8506c1c7c8250623d2741b1bb..97e811f15102941ebde569d08897ff6bc97d0a31 100644 (file)
@@ -22,8 +22,8 @@
 
 #include "includes.h"
 #include "system/iconv.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "libcli/security/security.h"
+#include "librpc/gen_ndr/ndr_misc.h"
 
 struct flag_map {
        const char *name;
index 00436781442176bee8d92f032bae85d73c89d0af..28339c969dd69da8e5eebef8bb123910de8ca3cb 100644 (file)
@@ -24,7 +24,6 @@
 #include "includes.h"
 #include "dsdb/samdb/samdb.h"
 #include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 /*
   return a blank security token
index f5e49dd577558e292093d8a3f48fea1e0e8f67ed..e491d1c9eee3b87cd6886be61e3f6c8f9d53e701 100644 (file)
@@ -30,7 +30,6 @@
 #include "libcli/raw/libcliraw.h"
 #include "libcli/libcli.h"
 #include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "librpc/gen_ndr/ndr_lsa.h"
 #include "librpc/gen_ndr/ndr_lsa_c.h"
 
index e50755229dcb6cc1e30ce2a856441e80cc0c248a..9185015da0a703205c5b59ebf5cdcc892eb0fd54 100644 (file)
@@ -31,7 +31,6 @@
 #include "libcli/security/security.h"
 #include "auth/credentials/credentials.h"
 #include "librpc/gen_ndr/ndr_samr_c.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 /*
  * complete a domain join, when joining to a AD domain:
index 0f97263b477a6c880bf5eef1fb73aa150f5c0e51..63c356d52db3e1033a9983f4623f6afedf27a652 100644 (file)
@@ -25,7 +25,7 @@
 #include "libnet/libnet.h"
 #include "dlinklist.h"
 #include "samba3/samba3.h"
-#include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/security.h"
 
 
 struct samdump_secret {
index 7211c838416121406bef2ba768c235a37bcf1f60..89123932319aaae2a5c36c4369227dcd9dc2d9d4 100644 (file)
@@ -31,7 +31,6 @@
 #include "librpc/gen_ndr/ndr_misc.h"
 #include "db_wrap.h"
 #include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "librpc/rpc/dcerpc.h"
 
 struct samsync_ldb_secret {
index 0719804aca5be6c047864786af488952c18f5a89..57d6ddfbb341c8f4212e793aebe399bdf2d77b35 100644 (file)
@@ -28,16 +28,12 @@ PUBLIC_DEPENDENCIES = LIBCOMPRESSION
 # End SUBSYSTEM NDR_COMPRESSION
 ################################################
 
-[SUBSYSTEM::NDR_SECURITY_HELPER]
-PRIVATE_PROTO_HEADER = ndr/ndr_sec.h
-OBJ_FILES = ndr/ndr_sec_helper.o ndr/ndr_sec.o
-
 [LIBRARY::NDR_SECURITY]
 VERSION = 0.0.1
 SO_VERSION = 0
-OBJ_FILES = gen_ndr/ndr_security.o
+OBJ_FILES = gen_ndr/ndr_security.o ndr/ndr_sec_helper.o 
 PUBLIC_HEADERS = gen_ndr/security.h
-PUBLIC_DEPENDENCIES = NDR_MISC NDR_SECURITY_HELPER
+PUBLIC_DEPENDENCIES = NDR_MISC LIBSECURITY
 
 [LIBRARY::NDR_AUDIOSRV]
 VERSION = 0.0.1
@@ -65,7 +61,7 @@ PUBLIC_DEPENDENCIES = LIBNDR
 VERSION = 0.0.1
 SO_VERSION = 0
 OBJ_FILES = gen_ndr/ndr_irpc.o
-PUBLIC_DEPENDENCIES = LIBNDR
+PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
 
 [LIBRARY::NDR_DSBACKUP]
 VERSION = 0.0.1
@@ -77,7 +73,7 @@ PUBLIC_DEPENDENCIES = LIBNDR
 VERSION = 0.0.1
 SO_VERSION = 0
 OBJ_FILES = gen_ndr/ndr_efs.o
-PUBLIC_DEPENDENCIES = LIBNDR
+PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
 
 [SUBSYSTEM::NDR_MISC]
 OBJ_FILES = gen_ndr/ndr_misc.o
@@ -93,7 +89,7 @@ VERSION = 0.0.1
 SO_VERSION = 0
 OBJ_FILES = gen_ndr/ndr_lsa.o
 PUBLIC_HEADERS = gen_ndr/lsa.h
-PUBLIC_DEPENDENCIES = LIBNDR
+PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
 
 [LIBRARY::NDR_DFS]
 VERSION = 0.0.1
@@ -104,12 +100,8 @@ PUBLIC_DEPENDENCIES = LIBNDR
 [LIBRARY::NDR_DRSUAPI]
 VERSION = 0.0.1
 SO_VERSION = 0
-OBJ_FILES = gen_ndr/ndr_drsuapi.o
-PUBLIC_DEPENDENCIES = LIBNDR NDR_DRSUAPI_PRINT NDR_COMPRESSION NDR_SECURITY
-
-[SUBSYSTEM::NDR_DRSUAPI_PRINT]
-PRIVATE_PROTO_HEADER = ndr/ndr_drsuapi.h
-OBJ_FILES = ndr/ndr_drsuapi.o
+OBJ_FILES = gen_ndr/ndr_drsuapi.o ndr/ndr_drsuapi.o
+PUBLIC_DEPENDENCIES = LIBNDR NDR_COMPRESSION NDR_SECURITY
 
 [LIBRARY::NDR_DRSBLOBS]
 VERSION = 0.0.1
@@ -131,7 +123,7 @@ PUBLIC_DEPENDENCIES = LIBNDR
 VERSION = 0.0.1
 SO_VERSION = 0
 OBJ_FILES = gen_ndr/ndr_unixinfo.o
-PUBLIC_DEPENDENCIES = LIBNDR
+PUBLIC_DEPENDENCIES = LIBNDR NDR_SECURITY
 
 [LIBRARY::NDR_SAMR]
 VERSION = 0.0.1
@@ -309,12 +301,8 @@ OBJ_FILES = gen_ndr/ndr_keysvc.o
 PUBLIC_DEPENDENCIES = LIBNDR
 
 [SUBSYSTEM::NDR_KRB5PAC]
-OBJ_FILES = gen_ndr/ndr_krb5pac.o
-PUBLIC_DEPENDENCIES = LIBNDR NDR_KRB5PAC_UTIL NDR_NETLOGON
-
-[SUBSYSTEM::NDR_KRB5PAC_UTIL]
-PRIVATE_PROTO_HEADER = ndr/ndr_krb5pac.h
-OBJ_FILES = ndr/ndr_krb5pac.o
+OBJ_FILES = gen_ndr/ndr_krb5pac.o ndr/ndr_krb5pac.o
+PUBLIC_DEPENDENCIES = LIBNDR NDR_NETLOGON NDR_SECURITY
 
 [LIBRARY::NDR_XATTR]
 VERSION = 0.0.1
@@ -431,7 +419,7 @@ PUBLIC_DEPENDENCIES = dcerpc NDR_UNIXINFO
 VERSION = 0.0.1
 SO_VERSION = 0
 OBJ_FILES = gen_ndr/ndr_samr_c.o
-PUBLIC_DEPENDENCIES = dcerpc NDR_SAMR
+PUBLIC_DEPENDENCIES = dcerpc NDR_SAMR 
 
 [LIBRARY::RPC_NDR_SPOOLSS]
 VERSION = 0.0.1
index 83ffbb4baa256ed0f35255cbbee5d079dbab7c3d..85a475175a3f3079466222df611c8ff5e5b0170b 100644 (file)
@@ -7,8 +7,7 @@
   authservice("ldap"),
   helpstring("Active Directory Replication"),
   pointer_default(unique),
-  depends(security),
-  helper("librpc/ndr/ndr_drsuapi.h")
+  depends(security)
 ] 
 interface drsuapi
 {
@@ -122,7 +121,7 @@ interface drsuapi
        /* Function 0x02 */
        typedef [public,gensize] struct {
                [value(ndr_size_drsuapi_DsReplicaObjectIdentifier(r, ndr->flags)-4)] uint32 __ndr_size;
-               [value(ndr_length_dom_sid(&r->sid))]  uint32 __ndr_size_sid;
+               [value(ndr_size_dom_sid(&r->sid, ndr->flags))]  uint32 __ndr_size_sid;
                GUID guid;
                dom_sid28 sid;
                [flag(STR_SIZE4|STR_CHARLEN|STR_CONFORMANT)] string dn;
@@ -444,7 +443,7 @@ interface drsuapi
        /* DN String values */
        typedef [public,gensize] struct {
                [value(ndr_size_drsuapi_DsReplicaObjectIdentifier3(r, ndr->flags))] uint32 __ndr_size;
-               [value(ndr_length_dom_sid(&r->sid))]  uint32 __ndr_size_sid;
+               [value(ndr_size_dom_sid(&r->sid,ndr->flags))]  uint32 __ndr_size_sid;
                GUID guid;
                dom_sid28 sid;
                [flag(STR_SIZE4|STR_CHARLEN)] string dn;
@@ -473,7 +472,7 @@ interface drsuapi
 
        /* SID values */
        typedef struct {
-               [range(0,10485760),value(ndr_size_dom_sid(sid))] uint32 __ndr_size;
+               [range(0,10485760),value(ndr_size_dom_sid(sid,ndr->flags))] uint32 __ndr_size;
                [subcontext(4)] dom_sid *sid;
        } drsuapi_DsAttributeValueSID;
 
@@ -484,7 +483,7 @@ interface drsuapi
 
        /* SecurityDescriptor values */
        typedef struct {
-               [range(0,10485760),value(ndr_size_security_descriptor(sd))] uint32 __ndr_size;
+               [range(0,10485760),value(ndr_size_security_descriptor(sd,ndr->flags))] uint32 __ndr_size;
                [subcontext(4)] security_descriptor *sd;
        } drsuapi_DsAttributeValueSecurityDescriptor;
 
index fff1946025233d882cb1af9cf1ba7372f67c0b26..229ce3402d594107aa40b166ac7ee30392d2f380 100644 (file)
@@ -9,8 +9,7 @@
   version(0.0),
   pointer_default(unique),
   helpstring("Active Directory KRB5 PAC"),
-  depends(security,netlogon,samr),
-  helper("librpc/ndr/ndr_krb5pac.h")
+  depends(security,netlogon,samr)
 ]
 interface krb5pac
 {
index a948a79ff16fa28cffeb6c4ef742a882c2152587..65ae20111e6fc918cb3309beb30527fdd334d314 100644 (file)
                nstring          unicode_domain;
                uint32           db_count;
                nbt_db_change    dbchange[db_count];
-               [value(ndr_size_dom_sid(&sid))] uint32 sid_size;
+               [value(ndr_size_dom_sid(&sid, ndr->flags))] uint32 sid_size;
                [flag(NDR_ALIGN4)] DATA_BLOB _pad2;
                dom_sid          sid;
                uint32           nt_version;
                nstring              user_name;
                astring              mailslot_name;
                uint32               acct_control;
-               [value(ndr_size_dom_sid(&sid))] uint32 sid_size;
+               [value(ndr_size_dom_sid(&sid, ndr->flags))] uint32 sid_size;
                [flag(NDR_ALIGN4)]   DATA_BLOB _pad;
                dom_sid              sid;
                uint32               nt_version;
index f22e6b68360fe6d8540e24fb8051e2c98355ce71..c756a1a6d070039033037f3609efa35cec30059f 100644 (file)
@@ -6,8 +6,7 @@
 
 [
        pointer_default(unique),
-       depends(misc),
-       helper("librpc/ndr/ndr_sec.h")
+       depends(misc,security)
 ]
 interface security
 {
@@ -22,9 +21,9 @@ interface security
                   
           common combinations of bits are prefixed with SEC_RIGHTS_
        */
-        const int SEC_MASK_GENERIC         = 0xF0000000;
-        const int SEC_MASK_FLAGS           = 0x0F000000;
-        const int SEC_MASK_STANDARD        = 0x00FF0000;
+    const int SEC_MASK_GENERIC         = 0xF0000000;
+    const int SEC_MASK_FLAGS           = 0x0F000000;
+    const int SEC_MASK_STANDARD        = 0x00FF0000;
        const int SEC_MASK_SPECIFIC        = 0x0000FFFF;
 
        /* generic bits */
@@ -210,7 +209,7 @@ interface security
 
        /* a domain SID. Note that unlike Samba3 this contains a pointer,
           so you can't copy them using assignment */
-       typedef [public,noprint,noejs] struct {
+       typedef [public,gensize,noprint,noejs,nosize] struct {
                uint8  sid_rev_num;             /**< SID revision number */
                [range(0,15)] int8  num_auths;  /**< Number of sub-authorities */
                uint8  id_auth[6];              /**< Identifier Authority */
@@ -273,10 +272,10 @@ interface security
                [default];
        } security_ace_object_ctr;
 
-       typedef [public] struct {
+       typedef [public,gensize,nosize] struct {
                security_ace_type type;  /* SEC_ACE_TYPE_* */
                security_ace_flags flags; /* SEC_ACE_FLAG_* */
-               [value(ndr_size_security_ace(r))] uint16 size;
+               [value(ndr_size_security_ace(r,ndr->flags))] uint16 size;
                uint32 access_mask;
                [switch_is(type)] security_ace_object_ctr object;
                dom_sid trustee;
@@ -289,9 +288,9 @@ interface security
 
        const uint NT4_ACL_REVISION     = SECURITY_ACL_REVISION_NT4;
 
-       typedef [public] struct {
+       typedef [public,gensize,nosize] struct {
                security_acl_revision revision;
-               [value(ndr_size_security_acl(r))] uint16 size;
+               [value(ndr_size_security_acl(r,ndr->flags))] uint16 size;
                [range(0,1000)] uint32 num_aces;
                security_ace aces[num_aces];
        } security_acl;
@@ -323,7 +322,7 @@ interface security
                SEC_DESC_SELF_RELATIVE          = 0x8000
        } security_descriptor_type;
 
-       typedef [public,flag(NDR_LITTLE_ENDIAN)] struct {
+       typedef [gensize,nosize,public,flag(NDR_LITTLE_ENDIAN)] struct {
                security_descriptor_revision revision;
                security_descriptor_type type;     /* SEC_DESC_xxxx flags */
                [relative] dom_sid *owner_sid; 
@@ -333,7 +332,7 @@ interface security
        } security_descriptor;
 
        typedef [public] struct {
-               [range(0,0x40000),value(ndr_size_security_descriptor(sd))] uint32 sd_size;
+               [range(0,0x40000),value(ndr_size_security_descriptor(sd,ndr->flags))] uint32 sd_size;
                [subcontext(4)] security_descriptor *sd;
        } sec_desc_buf;
 
index 4b6d128ec4a3426c3fbc62842a75aaff7c230b19..c83e70ff50ff78c82045993571e98f5f0dc782fe 100644 (file)
@@ -291,4 +291,13 @@ extern const struct dcerpc_syntax_id ndr64_transfer_syntax;
 #include "librpc/gen_ndr/misc.h"
 #include "librpc/ndr/libndr_proto.h"
 
+/* FIXME: Use represent_as instead */
+struct dom_sid;
+NTSTATUS ndr_push_dom_sid2(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid);
+NTSTATUS ndr_pull_dom_sid2(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid);
+void ndr_print_dom_sid2(struct ndr_print *ndr, const char *name, const struct dom_sid *sid);
+NTSTATUS ndr_push_dom_sid28(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid);
+NTSTATUS ndr_pull_dom_sid28(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid);
+void ndr_print_dom_sid28(struct ndr_print *ndr, const char *name, const struct dom_sid *sid);
+
 #endif /* __LIBNDR_H__ */
index 6f6dd74ea4adf4365148b5541b6cda1a2e94fdfc..0c57425b251c6c8acd68bac71f446d780c843e30 100644 (file)
@@ -37,7 +37,7 @@ void ndr_print_drsuapi_DsReplicaObjectListItem(struct ndr_print *ndr, const char
        }
 }
 
-void ndr_print_drsuapi_DsReplicaObjectListItemEx(struct ndr_print *ndr, const char *name, struct drsuapi_DsReplicaObjectListItemEx *r)
+void ndr_print_drsuapi_DsReplicaObjectListItemEx(struct ndr_print *ndr, const char *name, const struct drsuapi_DsReplicaObjectListItemEx *r)
 {
        ndr_print_struct(ndr, name, "drsuapi_DsReplicaObjectListItemEx");
        ndr->depth++;
diff --git a/source/librpc/ndr/ndr_sec.c b/source/librpc/ndr/ndr_sec.c
deleted file mode 100644 (file)
index fb18d48..0000000
+++ /dev/null
@@ -1,120 +0,0 @@
-/* 
-   Unix SMB/CIFS implementation.
-
-   routines for marshalling/unmarshalling security descriptors
-   and related structures
-
-   Copyright (C) Andrew Tridgell 2003
-   
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2 of the License, or
-   (at your option) any later version.
-   
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-   
-   You should have received a copy of the GNU General Public License
-   along with this program; if not, write to the Free Software
-   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-*/
-
-
-#include "includes.h"
-#include "librpc/gen_ndr/ndr_security.h"
-
-/*
-  parse a dom_sid2 - this is a dom_sid but with an extra copy of the num_auths field
-*/
-NTSTATUS ndr_pull_dom_sid2(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid)
-{
-       uint32_t num_auths;
-       if (!(ndr_flags & NDR_SCALARS)) {
-               return NT_STATUS_OK;
-       }
-       NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &num_auths));
-       NDR_CHECK(ndr_pull_dom_sid(ndr, ndr_flags, sid));
-       if (sid->num_auths != num_auths) {
-               return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, 
-                                     "Bad array size %u should exceed %u", 
-                                     num_auths, sid->num_auths);
-       }
-       return NT_STATUS_OK;
-}
-
-/*
-  parse a dom_sid2 - this is a dom_sid but with an extra copy of the num_auths field
-*/
-NTSTATUS ndr_push_dom_sid2(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid)
-{
-       if (!(ndr_flags & NDR_SCALARS)) {
-               return NT_STATUS_OK;
-       }
-       NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, sid->num_auths));
-       return ndr_push_dom_sid(ndr, ndr_flags, sid);
-}
-
-/*
-  parse a dom_sid28 - this is a dom_sid in a fixed 28 byte buffer, so we need to ensure there are only upto 5 sub_auth
-*/
-NTSTATUS ndr_pull_dom_sid28(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid)
-{
-       NTSTATUS status;
-       struct ndr_pull *subndr;
-
-       if (!(ndr_flags & NDR_SCALARS)) {
-               return NT_STATUS_OK;
-       }
-
-       subndr = talloc_zero(ndr, struct ndr_pull);
-       NT_STATUS_HAVE_NO_MEMORY(subndr);
-       subndr->flags           = ndr->flags;
-       subndr->current_mem_ctx = ndr->current_mem_ctx;
-
-       subndr->data            = ndr->data + ndr->offset;
-       subndr->data_size       = 28;
-       subndr->offset          = 0;
-
-       NDR_CHECK(ndr_pull_advance(ndr, 28));
-
-       status = ndr_pull_dom_sid(subndr, ndr_flags, sid);
-       if (!NT_STATUS_IS_OK(status)) {
-               /* handle a w2k bug which send random data in the buffer */
-               ZERO_STRUCTP(sid);
-       }
-
-       return NT_STATUS_OK;
-}
-
-/*
-  push a dom_sid28 - this is a dom_sid in a 28 byte fixed buffer
-*/
-NTSTATUS ndr_push_dom_sid28(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid)
-{
-       uint32_t old_offset;
-       uint32_t padding;
-
-       if (!(ndr_flags & NDR_SCALARS)) {
-               return NT_STATUS_OK;
-       }
-
-       if (sid->num_auths > 5) {
-               return ndr_push_error(ndr, NDR_ERR_RANGE, 
-                                     "dom_sid28 allows only upto 5 sub auth [%u]", 
-                                     sid->num_auths);
-       }
-
-       old_offset = ndr->offset;
-       NDR_CHECK(ndr_push_dom_sid(ndr, ndr_flags, sid));
-
-       padding = 28 - (ndr->offset - old_offset);
-
-       if (padding > 0) {
-               NDR_CHECK(ndr_push_zero(ndr, padding));
-       }
-
-       return NT_STATUS_OK;
-}
-
index 8325aef93d1a074a80e6fd081bf919edee58cd9c..dd4435daf1a2487787eb75ba854ae98f20d6cb31 100644 (file)
 
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/security.h"
 
 /*
   return the wire size of a dom_sid
 */
-size_t ndr_size_dom_sid(const struct dom_sid *sid)
+size_t ndr_size_dom_sid(const struct dom_sid *sid, int flags)
 {
        if (!sid) return 0;
        return 8 + 4*sid->num_auths;
 }
 
-/*
-  return the wire size of a dom_sid
-*/
-size_t ndr_length_dom_sid(const struct dom_sid *sid)
-{
-       if (!sid) return 0;
-       if (sid->sid_rev_num == 0) return 0;
-       return 8 + 4*sid->num_auths;
-}
-
 /*
   return the wire size of a security_ace
 */
-size_t ndr_size_security_ace(const struct security_ace *ace)
+size_t ndr_size_security_ace(const struct security_ace *ace, int flags)
 {
        if (!ace) return 0;
-       return 8 + ndr_size_dom_sid(&ace->trustee);
+       return 8 + ndr_size_dom_sid(&ace->trustee, flags);
 }
 
 
 /*
   return the wire size of a security_acl
 */
-size_t ndr_size_security_acl(const struct security_acl *acl)
+size_t ndr_size_security_acl(const struct security_acl *acl, int flags)
 {
        size_t ret;
        int i;
        if (!acl) return 0;
        ret = 8;
        for (i=0;i<acl->num_aces;i++) {
-               ret += ndr_size_security_ace(&acl->aces[i]);
+               ret += ndr_size_security_ace(&acl->aces[i], flags);
        }
        return ret;
 }
@@ -71,16 +62,16 @@ size_t ndr_size_security_acl(const struct security_acl *acl)
 /*
   return the wire size of a security descriptor
 */
-size_t ndr_size_security_descriptor(const struct security_descriptor *sd)
+size_t ndr_size_security_descriptor(const struct security_descriptor *sd, int flags)
 {
        size_t ret;
        if (!sd) return 0;
        
        ret = 20;
-       ret += ndr_size_dom_sid(sd->owner_sid);
-       ret += ndr_size_dom_sid(sd->group_sid);
-       ret += ndr_size_security_acl(sd->dacl);
-       ret += ndr_size_security_acl(sd->sacl);
+       ret += ndr_size_dom_sid(sd->owner_sid, flags);
+       ret += ndr_size_dom_sid(sd->group_sid, flags);
+       ret += ndr_size_security_acl(sd->dacl, flags);
+       ret += ndr_size_security_acl(sd->sacl, flags);
        return ret;
 }
 
@@ -102,35 +93,97 @@ void ndr_print_dom_sid28(struct ndr_print *ndr, const char *name, const struct d
        ndr_print_dom_sid(ndr, name, sid);
 }
 
+
 /*
-  convert a dom_sid to a string
+  parse a dom_sid2 - this is a dom_sid but with an extra copy of the num_auths field
 */
-char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid)
+NTSTATUS ndr_pull_dom_sid2(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid)
 {
-       int i, ofs, maxlen;
-       uint32_t ia;
-       char *ret;
-       
-       if (!sid) {
-               return talloc_strdup(mem_ctx, "(NULL SID)");
+       uint32_t num_auths;
+       if (!(ndr_flags & NDR_SCALARS)) {
+               return NT_STATUS_OK;
+       }
+       NDR_CHECK(ndr_pull_uint32(ndr, NDR_SCALARS, &num_auths));
+       NDR_CHECK(ndr_pull_dom_sid(ndr, ndr_flags, sid));
+       if (sid->num_auths != num_auths) {
+               return ndr_pull_error(ndr, NDR_ERR_ARRAY_SIZE, 
+                                     "Bad array size %u should exceed %u", 
+                                     num_auths, sid->num_auths);
        }
+       return NT_STATUS_OK;
+}
 
-       maxlen = sid->num_auths * 11 + 25;
-       ret = talloc_size(mem_ctx, maxlen);
-       if (!ret) return talloc_strdup(mem_ctx, "(SID ERR)");
+/*
+  parse a dom_sid2 - this is a dom_sid but with an extra copy of the num_auths field
+*/
+NTSTATUS ndr_push_dom_sid2(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid)
+{
+       if (!(ndr_flags & NDR_SCALARS)) {
+               return NT_STATUS_OK;
+       }
+       NDR_CHECK(ndr_push_uint32(ndr, NDR_SCALARS, sid->num_auths));
+       return ndr_push_dom_sid(ndr, ndr_flags, sid);
+}
 
-       ia = (sid->id_auth[5]) +
-               (sid->id_auth[4] << 8 ) +
-               (sid->id_auth[3] << 16) +
-               (sid->id_auth[2] << 24);
+/*
+  parse a dom_sid28 - this is a dom_sid in a fixed 28 byte buffer, so we need to ensure there are only upto 5 sub_auth
+*/
+NTSTATUS ndr_pull_dom_sid28(struct ndr_pull *ndr, int ndr_flags, struct dom_sid *sid)
+{
+       NTSTATUS status;
+       struct ndr_pull *subndr;
 
-       ofs = snprintf(ret, maxlen, "S-%u-%lu", 
-                      (uint_t)sid->sid_rev_num, (unsigned long)ia);
+       if (!(ndr_flags & NDR_SCALARS)) {
+               return NT_STATUS_OK;
+       }
 
-       for (i = 0; i < sid->num_auths; i++) {
-               ofs += snprintf(ret + ofs, maxlen - ofs, "-%lu", (unsigned long)sid->sub_auths[i]);
+       subndr = talloc_zero(ndr, struct ndr_pull);
+       NT_STATUS_HAVE_NO_MEMORY(subndr);
+       subndr->flags           = ndr->flags;
+       subndr->current_mem_ctx = ndr->current_mem_ctx;
+
+       subndr->data            = ndr->data + ndr->offset;
+       subndr->data_size       = 28;
+       subndr->offset          = 0;
+
+       NDR_CHECK(ndr_pull_advance(ndr, 28));
+
+       status = ndr_pull_dom_sid(subndr, ndr_flags, sid);
+       if (!NT_STATUS_IS_OK(status)) {
+               /* handle a w2k bug which send random data in the buffer */
+               ZERO_STRUCTP(sid);
        }
-       
-       return ret;
+
+       return NT_STATUS_OK;
+}
+
+/*
+  push a dom_sid28 - this is a dom_sid in a 28 byte fixed buffer
+*/
+NTSTATUS ndr_push_dom_sid28(struct ndr_push *ndr, int ndr_flags, const struct dom_sid *sid)
+{
+       uint32_t old_offset;
+       uint32_t padding;
+
+       if (!(ndr_flags & NDR_SCALARS)) {
+               return NT_STATUS_OK;
+       }
+
+       if (sid->num_auths > 5) {
+               return ndr_push_error(ndr, NDR_ERR_RANGE, 
+                                     "dom_sid28 allows only upto 5 sub auth [%u]", 
+                                     sid->num_auths);
+       }
+
+       old_offset = ndr->offset;
+       NDR_CHECK(ndr_push_dom_sid(ndr, ndr_flags, sid));
+
+       padding = 28 - (ndr->offset - old_offset);
+
+       if (padding > 0) {
+               NDR_CHECK(ndr_push_zero(ndr, padding));
+       }
+
+       return NT_STATUS_OK;
 }
 
index fc981d5af6d958416b9f53d0b0615a1f1a5d123b..395e6c6dbf346023de96cecd18bb1fd644587698 100644 (file)
@@ -42,7 +42,6 @@
 #include "system/filesys.h"
 #include "lib/tdb/include/tdb.h"
 #include "messaging/messaging.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "db_wrap.h"
 #include "lib/messaging/irpc.h"
 #include "librpc/gen_ndr/ndr_opendb.h"
index fdc186c710295bc9b56bed28f9ee45fdfa6fe57a..b04a3af21e2b96e4739c422a641457cdbb10eb71 100644 (file)
@@ -32,7 +32,6 @@
 */
 
 #include "includes.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "ntvfs/ntvfs.h"
 
 /* a second stage function converts from the out parameters of the generic
index ff819985a8c4b347813daf9df6c99ccf773910cf..982de469f6a6d78d8546edacf93638fdc5f9850c 100644 (file)
@@ -29,7 +29,6 @@
 #include "libcli/ldap/ldap.h"
 #include "libcli/security/security.h"
 #include "libcli/auth/libcli_auth.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "passdb/secrets.h"
 #include "db_wrap.h"
 
index dc9537e66c09f438dbace05eb78a1ed5022d87e4..547c53800328032ebee454bdd7e48c6b759cb66d 100644 (file)
 #include "rpc_server/dcerpc_server.h"
 #include "rpc_server/common/common.h"
 #include "lib/ldb/include/ldb.h"
-#include "auth/auth_sam.h"
 #include "auth/auth.h"
+#include "auth/auth_sam.h"
 #include "dsdb/samdb/samdb.h"
 #include "rpc_server/samr/proto.h"
 #include "db_wrap.h"
 #include "libcli/auth/libcli_auth.h"
 #include "auth/gensec/schannel_state.h"
+#include "libcli/security/security.h"
 
 struct server_pipe_state {
        struct netr_Credential client_challenge;
index ab8144c7358ccf43a28962b17431557cebe2e610..389db73e3dbe43d46ac01b39bb5d54889fe7708e 100644 (file)
@@ -27,7 +27,6 @@
 #include "rpc_server/dcerpc_server.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/samr/dcesrv_samr.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "system/time.h"
 #include "lib/ldb/include/ldb.h"
 #include "ads.h"
index 1235d0c76953575e6ba8d2b02ed54f12263b8ea3..2d34d9afbf34d643de548da9d3d4714ba1c84430 100644 (file)
@@ -25,7 +25,6 @@
 #include "rpc_server/dcerpc_server.h"
 #include "rpc_server/common/common.h"
 #include "rpc_server/samr/dcesrv_samr.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "system/time.h"
 #include "lib/crypto/crypto.h"
 #include "ads.h"
index f3ec36c5504217204d9aa1011a3d252c09971aac..08a675a11727acdf246e6bc4ff68cb6917ddad83 100644 (file)
@@ -23,7 +23,6 @@
 #include "includes.h"
 #include "lib/appweb/ejs/ejs.h"
 #include "scripting/ejs/smbcalls.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "librpc/gen_ndr/lsa.h"
 #include "librpc/gen_ndr/winreg.h"
 #include "scripting/ejs/ejsrpc.h"
index 1cf0042741c9b544cf12df1d4cd866f817cb8e52..0bcc6705524687d3bea1516f980887173c254d08 100644 (file)
@@ -24,7 +24,8 @@
 #include "scripting/ejs/smbcalls.h"
 #include "lib/appweb/ejs/ejs.h"
 #include "lib/samba3/samba3.h"
-#include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/security.h"
+#include "librpc/gen_ndr/ndr_misc.h"
 
 
 static struct MprVar mprRegistry(struct samba3_regdb *reg)
index 2abea01e7dd1a846b37a7825ea30c9b077b7a9cd..2acbaf0a3392005c74ce3ceb9098b322fa5d26d5 100644 (file)
@@ -28,7 +28,6 @@
 #include "librpc/gen_ndr/ndr_krb5pac.h"
 #include "samba3/samba3.h"
 #include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "torture/torture.h"
 
 static BOOL torture_pac_self_check(void) 
index 5d3a515b4282a3b9da4ecdb12bedfdf7cbb65201..fce260b7ebafc0a3b5d1df4fbc1696f2b5b0ce74 100644 (file)
@@ -25,7 +25,6 @@
 #include "libnet/userinfo.h"
 #include "libcli/security/security.h"
 #include "librpc/gen_ndr/ndr_samr_c.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 #define TEST_USERNAME  "libnetuserinfotest"
 
index 601cb3353abe40ab26463ac5ad3488aa16ab0b4a..20526d7323384a6c4a2f70e080df542712d842c9 100644 (file)
@@ -21,9 +21,9 @@
 */
 
 #include "includes.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "libcli/security/security.h"
 #include "torture/torture.h"
+#include "librpc/gen_ndr/ndr_security.h"
 
 
 /*
index 221f42236f351da175a02e4286207557bb74c304..17f57d4ff519b226ce0edd6948251d92b13e9a7c 100644 (file)
@@ -27,8 +27,8 @@
 #include "librpc/gen_ndr/lsa.h"
 #include "libcli/util/clilsa.h"
 #include "libcli/security/security.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "torture/util.h"
+#include "librpc/gen_ndr/ndr_security.h"
 
 #define BASEDIR "\\testsd"
 
index 28a4f59b3a31959e0b292c318115c874c2a1b5ee..2639984cc38891358209b760afb8f06e5141d4a9 100644 (file)
@@ -25,7 +25,6 @@
 #include "libnet/libnet_join.h"
 #include "torture/rpc/rpc.h"
 #include "librpc/gen_ndr/ndr_lsa_c.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "libcli/security/security.h"
 
 static BOOL open_policy(TALLOC_CTX *mem_ctx, struct dcerpc_pipe *p,
index 8ff4d37273956c95b997e045397fc411bc4b011c..6e21ff595f1c9d3efa66beb8715cf620b2fa42d6 100644 (file)
@@ -24,7 +24,6 @@
 #include "torture/torture.h"
 #include "librpc/gen_ndr/lsa.h"
 #include "librpc/gen_ndr/ndr_samr_c.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "smb.h"
 #include "lib/crypto/crypto.h"
 #include "libcli/auth/libcli_auth.h"
index e94794db16b7c97c3007ea00ae8de25f5913b30d..2df57e63ccb929ebdaf26aed853a9130e3c59bd9 100644 (file)
@@ -23,7 +23,7 @@
 #include "includes.h"
 #include "utils/net/net.h"
 #include "libnet/libnet.h"
-#include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/security.h"
 
 int net_join(struct net_context *ctx, int argc, const char **argv) 
 {
index 5532a9ad0b975d63d2a3d92dbe66658582112872..c7f3767a2285a3eeef7b27588239fe998f845074 100644 (file)
@@ -28,7 +28,7 @@
 #include "auth/auth.h"
 #include "pstring.h"
 #include "libcli/auth/libcli_auth.h"
-#include "librpc/gen_ndr/ndr_security.h"
+#include "libcli/security/security.h"
 #include "lib/ldb/include/ldb.h"
 
 #define SQUID_BUFFER_SIZE 2010
index 853939c4f70be54d84f85fb4832b92d9c3265ae7..3adddde627bb61ebf266dfed855b109e974ba8d1 100644 (file)
@@ -30,7 +30,6 @@
 #include "smbd/service_task.h"
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "librpc/gen_ndr/ndr_lsa_c.h"
-#include "librpc/gen_ndr/ndr_security.h"
 
 #include "libcli/auth/credentials.h"
 #include "libcli/security/security.h"
index eeaf8439526358d800beb03f898907cf8c492ce0..7989bec17223e2e2190bcad3c25548ebffe0cfa4 100644 (file)
@@ -28,7 +28,6 @@
 #include "libcli/composite/composite.h"
 #include "version.h"
 #include "librpc/gen_ndr/netlogon.h"
-#include "librpc/gen_ndr/ndr_security.h"
 #include "libcli/security/security.h"
 #include "auth/pam_errors.h"