r19598: Ahead of a merge to current lorikeet-heimdal:
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Nov 2006 00:48:36 +0000 (00:48 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:25:00 +0000 (14:25 -0500)
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
(This used to be commit 2b569c42e0fbb596ea82484d0e1cb22e193037b9)

76 files changed:
source4/auth/auth.h
source4/auth/auth_developer.c
source4/auth/auth_sam.c
source4/auth/auth_sam_reply.c
source4/auth/auth_util.c
source4/auth/config.mk
source4/auth/credentials/config.mk
source4/auth/credentials/credentials.c
source4/auth/credentials/credentials_files.c
source4/auth/credentials/credentials_krb5.c
source4/auth/credentials/credentials_krb5.h [new file with mode: 0644]
source4/auth/credentials/credentials_ntlm.c
source4/auth/gensec/config.mk
source4/auth/gensec/cyrus_sasl.c
source4/auth/gensec/gensec.c
source4/auth/gensec/gensec.h
source4/auth/gensec/gensec_krb5.c
source4/auth/gensec/schannel.c
source4/auth/gensec/schannel.h
source4/auth/gensec/schannel_sign.c
source4/auth/gensec/schannel_state.c
source4/auth/gensec/spnego.c
source4/auth/gensec/spnego.h
source4/auth/gensec/spnego_parse.c
source4/auth/kerberos/config.mk
source4/auth/kerberos/kerberos.h
source4/auth/kerberos/kerberos_pac.c
source4/auth/kerberos/kerberos_util.c
source4/auth/kerberos/kerberos_verify.c
source4/auth/ntlmssp/ntlmssp.c
source4/auth/ntlmssp/ntlmssp_client.c
source4/auth/ntlmssp/ntlmssp_server.c
source4/auth/ntlmssp/ntlmssp_sign.c
source4/auth/sam.c
source4/client/client.c
source4/dsdb/samdb/samdb.c
source4/heimdal_build/config.mk
source4/kdc/hdb-ldb.c
source4/kdc/kpasswdd.c
source4/ldap_server/ldap_bind.c
source4/ldap_server/ldap_server.c
source4/lib/cmdline/config.mk
source4/lib/cmdline/popt_credentials.c
source4/lib/ldb/ldb_ildap/ldb_ildap.c
source4/lib/ldb/tools/cmdline.c
source4/lib/registry/registry.h
source4/lib/replace/system/kerberos.h
source4/libcli/auth/libcli_auth.h
source4/libcli/config.mk
source4/libcli/ldap/ldap_bind.c
source4/libcli/smb_composite/sesssetup.c
source4/libnet/libnet_join.c
source4/libnet/libnet_samdump_keytab.c
source4/libnet/libnet_vampire.c
source4/librpc/config.mk
source4/librpc/rpc/dcerpc_connect.c
source4/librpc/rpc/dcerpc_schannel.c
source4/ntvfs/cifs/vfs_cifs.c
source4/rpc_server/dcerpc_server.c
source4/rpc_server/dcesrv_auth.c
source4/rpc_server/remote/dcesrv_remote.c
source4/scripting/ejs/config.mk
source4/scripting/ejs/smbcalls_auth.c
source4/smb_server/smb/negprot.c
source4/smb_server/smb/sesssetup.c
source4/smb_server/smb2/negprot.c
source4/smb_server/smb2/sesssetup.c
source4/torture/auth/ntlmssp.c
source4/torture/gentest.c
source4/torture/locktest.c
source4/torture/masktest.c
source4/torture/rpc/samba3rpc.c
source4/utils/ntlm_auth.c
source4/winbind/wb_async_helpers.c
source4/winbind/wb_pam_auth.c
source4/winbind/wb_sam_logon.c

index badfe147626554ab873c98c85a2c3e8f7baf4de2..4c172af1fed5c61390359be33c6bc51697578cd5 100644 (file)
 #ifndef _SAMBA_AUTH_H
 #define _SAMBA_AUTH_H
 
-#include "libcli/auth/credentials.h"
-#include "auth/gensec/gensec.h"
-#include "auth/gensec/spnego.h"
-#include "lib/ldb/include/ldb.h"
+union netr_Validation;
 
 /* modules can use the following to determine if the interface has changed
  * please increment the version number after each interface change
index 76044d436145637bacd318fb591b3d65ddc91c99..f3a984ce30b046efc5fc550fc28b74c8a72a99bc 100644 (file)
@@ -23,6 +23,7 @@
 #include "includes.h"
 #include "auth/auth.h"
 #include "libcli/security/security.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 
 static NTSTATUS name_to_ntstatus_want_check(struct auth_method_context *ctx,
                                            TALLOC_CTX *mem_ctx,
index 3d28b88446a1038e41f492bfa5236914ba179d05..8bfcab1eafbd2f08a442cd9c4a58d55b8e48d215 100644 (file)
 */
 
 #include "includes.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 #include "system/time.h"
 #include "db_wrap.h"
+#include "lib/ldb/include/ldb.h"
 #include "auth/auth.h"
 #include "auth/auth_sam.h"
 #include "dsdb/samdb/samdb.h"
index 0ea501d585fbf9269e98977fffe5094e2eccc7aa..b6e740a12811db882118ddb4378d39f29145c739 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "auth/auth.h"
 #include "libcli/security/security.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 
 NTSTATUS auth_convert_server_info_sambaseinfo(TALLOC_CTX *mem_ctx, 
                                              struct auth_serversupplied_info *server_info, 
index 7d240280832ddfdd75d0dcd48c8e3dfcc4f3e257..a3f51846b65abf5dd4b5bcb7b65a0ae11528905e 100644 (file)
@@ -27,6 +27,8 @@
 #include "libcli/security/security.h"
 #include "libcli/auth/libcli_auth.h"
 #include "dsdb/samdb/samdb.h"
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 /* this default function can be used by mostly all backends
  * which don't want to set a challenge
index 968072b918c166da770226125e30a530ff593f40..b34dbac21eea5f3bed1d71e5da322dc2e8491649 100644 (file)
@@ -74,6 +74,6 @@ OBJ_FILES = \
                auth.o \
                auth_util.o \
                auth_simple.o
-PUBLIC_DEPENDENCIES = LIBSECURITY process_model SAMDB
+PUBLIC_DEPENDENCIES = LIBSECURITY process_model SAMDB CREDENTIALS
 # End SUBSYSTEM auth
 #######################
index aa1fdf896d6df1745210f165a0ed0539cb8b003d..5bf7aa891fa4910d28e4441ec6daf6b30eede22e 100644 (file)
@@ -5,10 +5,20 @@ PUBLIC_PROTO_HEADER = credentials_proto.h
 PUBLIC_HEADERS = credentials.h
 OBJ_FILES = credentials.o \
                credentials_files.o \
-               credentials_krb5.o \
                credentials_ntlm.o
 PUBLIC_DEPENDENCIES = \
-               LIBCLI_AUTH SECRETS LIBCRYPTO HEIMDAL_GSSAPI
+               LIBCLI_AUTH SECRETS LIBCRYPTO
+PRIVATE_DEPENDENCIES = CREDENTIALS_KRB5
 # End SUBSYSTEM CREDENTIALS
 #################################
 
+#################################
+# Start SUBSYSTEM CREDENTIALS
+[SUBSYSTEM::CREDENTIALS_KRB5]
+PUBLIC_PROTO_HEADER = credentials_krb5_proto.h
+PUBLIC_HEADERS = credentials_krb5.h
+OBJ_FILES = credentials_krb5.o
+PUBLIC_DEPENDENCIES = \
+               HEIMDAL_GSSAPI
+# End SUBSYSTEM CREDENTIALS
+#################################
index caaef3e0c2d565d38fe4fcd3520bedd53bd07a79..d4db0a0180a32356d0be0e96b283892cb7fc6581 100644 (file)
@@ -24,7 +24,8 @@
 
 #include "includes.h"
 #include "librpc/gen_ndr/samr.h" /* for struct samrPassword */
-#include "auth/gensec/gensec.h"
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 #include "libcli/auth/libcli_auth.h"
 
 /**
index 53a6f39cd48ce464562e5fef643478a63ddc7fa1..ecd89d2259d792dce38f3bcfb25b35e09cca87cb 100644 (file)
@@ -29,6 +29,7 @@
 #include "system/filesys.h"
 #include "db_wrap.h"
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 /**
  * Read a file descriptor, and parse it for a password (eg from a file or stdin)
index 7d53caddfa16f6c947d2388270441d3ad297b7b8..f0305fd3605c0daa9df5d155532786bcdb0e10d1 100644 (file)
@@ -25,6 +25,8 @@
 #include "includes.h"
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 int cli_credentials_get_krb5_context(struct cli_credentials *cred, 
                                     struct smb_krb5_context **smb_krb5_context) 
@@ -333,9 +335,9 @@ int cli_credentials_get_client_gss_creds(struct cli_credentials *cred,
    to the credentials system.
 */
 
- int cli_credentials_set_client_gss_creds(struct cli_credentials *cred, 
-                                         gss_cred_id_t gssapi_cred,
-                                         enum credentials_obtained obtained) 
+int cli_credentials_set_client_gss_creds(struct cli_credentials *cred, 
+                                        gss_cred_id_t gssapi_cred,
+                                        enum credentials_obtained obtained) 
 {
        int ret;
        OM_uint32 maj_stat, min_stat;
diff --git a/source4/auth/credentials/credentials_krb5.h b/source4/auth/credentials/credentials_krb5.h
new file mode 100644 (file)
index 0000000..2bd38af
--- /dev/null
@@ -0,0 +1,34 @@
+/* 
+   samba -- Unix SMB/CIFS implementation.
+
+   Client credentials structure
+
+   Copyright (C) Jelmer Vernooij 2004-2006
+   Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005
+
+   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.
+*/
+
+struct EncryptionKey;
+
+#include "heimdal/lib/gssapi/gssapi.h"
+
+struct ccache_container;
+
+struct gssapi_creds_container {
+       gss_cred_id_t creds;
+};
+
+#include "auth/credentials/credentials_krb5_proto.h"
index 23838da888d75a0a3d357af20ea4e0332b20b32a..53170326830678c47bd79f396633fd19ea19f854 100644 (file)
@@ -26,6 +26,7 @@
 #include "librpc/gen_ndr/samr.h" /* for struct samrPassword */
 #include "lib/crypto/crypto.h"
 #include "libcli/auth/libcli_auth.h"
+#include "auth/credentials/credentials.h"
 
 void cli_credentials_get_ntlm_username_domain(struct cli_credentials *cred, TALLOC_CTX *mem_ctx, 
                                              const char **username, 
index 84947785db3ccebfe7b913b5f07fe5e57b4ba278..a395dd205fac2c2945fdb43e9d84312ba3760c20 100644 (file)
@@ -18,7 +18,7 @@ PUBLIC_DEPENDENCIES = \
 SUBSYSTEM = gensec
 INIT_FUNCTION = gensec_krb5_init
 OBJ_FILES = gensec_krb5.o 
-PUBLIC_DEPENDENCIES = KERBEROS auth auth_sam
+PUBLIC_DEPENDENCIES = CREDENTIALS_KRB5 KERBEROS auth auth_sam
 # End MODULE gensec_krb5
 ################################################
 
@@ -28,7 +28,7 @@ PUBLIC_DEPENDENCIES = KERBEROS auth auth_sam
 SUBSYSTEM = gensec
 INIT_FUNCTION = gensec_gssapi_init
 OBJ_FILES = gensec_gssapi.o 
-PUBLIC_DEPENDENCIES = KERBEROS auth HEIMDAL_GSSAPI
+PUBLIC_DEPENDENCIES = CREDENTIALS_KRB5 KERBEROS auth HEIMDAL_GSSAPI
 # End MODULE gensec_gssapi
 ################################################
 
@@ -38,7 +38,7 @@ PUBLIC_DEPENDENCIES = KERBEROS auth HEIMDAL_GSSAPI
 SUBSYSTEM = gensec
 INIT_FUNCTION = gensec_sasl_init
 OBJ_FILES = cyrus_sasl.o 
-PUBLIC_DEPENDENCIES = SASL auth
+PUBLIC_DEPENDENCIES = CREDENTIALS SASL auth
 # End MODULE cyrus_sasl
 ################################################
 
@@ -49,6 +49,7 @@ SUBSYSTEM = gensec
 INIT_FUNCTION = gensec_spnego_init
 PRIVATE_PROTO_HEADER = spnego_proto.h
 PRIVATE_DEPENDENCIES = ASN1_UTIL GENSEC_SOCKET
+PUBLIC_DEPENDENCIES = CREDENTIALS
 OBJ_FILES = spnego.o \
                        spnego_parse.o
 # End MODULE gensec_spnego
@@ -62,7 +63,7 @@ PRIVATE_PROTO_HEADER = schannel_proto.h
 INIT_FUNCTION = gensec_schannel_init
 OBJ_FILES = schannel.o \
                        schannel_sign.o
-PUBLIC_DEPENDENCIES = auth SCHANNELDB NDR_SCHANNEL
+PUBLIC_DEPENDENCIES = auth SCHANNELDB NDR_SCHANNEL CREDENTIALS
 OUTPUT_TYPE = INTEGRATED
 # End MODULE gensec_schannel
 ################################################
index 17a0162e8d88e24bbf1f7838539a41ada457cb71..c0dd314d3d1c58b8ee4afe060c2fe985dbffd80f 100644 (file)
@@ -22,6 +22,8 @@
 
 #include "includes.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "lib/socket/socket.h"
 #include <sasl/sasl.h>
 
index 619cf7c35059c9da5570f4843d8392af0601151c..8c97a871ade6c75d9bcc79c53dc5d72ead5a61f3 100644 (file)
@@ -26,6 +26,8 @@
 #include "lib/events/events.h"
 #include "build.h"
 #include "librpc/rpc/dcerpc.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 
 /* the list of currently registered GENSEC backends */
 static struct gensec_security_ops **generic_security_ops;
index 97d9577d83e390107912892e55f3058d19badaba..c70424800ca7c20d9d6432fad793a03a11b4197b 100644 (file)
@@ -42,6 +42,8 @@ enum gensec_priority {
        GENSEC_OTHER = 0
 };
 
+enum credentials_use_kerberos;
+
 struct gensec_security;
 struct gensec_target {
        const char *principal;
@@ -167,7 +169,6 @@ struct gensec_critical_sizes {
        int sizeof_gensec_security;
 };
 
-#include "auth/credentials/credentials.h"
 #include "auth/gensec/gensec_proto.h"
 
 #endif /* __GENSEC_H__ */
index 3695454c76c247201b8b7268317845f0dbc7b82c..d84f3dedf579d5027a8da662792966a09d81dac0 100644 (file)
@@ -34,6 +34,9 @@
 #include "system/network.h"
 #include "lib/socket/socket.h"
 #include "librpc/rpc/dcerpc.h"
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
+#include "auth/gensec/gensec.h"
 
 enum GENSEC_KRB5_STATE {
        GENSEC_KRB5_SERVER_START,
index 9bcb30754852bf443cdd1d3e25bcbc9590763ef5..18c6222e1379defe99ea7f8f061d1d4f24e7cf15 100644 (file)
@@ -24,6 +24,8 @@
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_schannel.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/gensec/schannel.h"
 #include "auth/gensec/schannel_state.h"
 #include "auth/gensec/schannel_proto.h"
index c109387c7c82e93c07727ef510ad6face2330ac3..4a05f8ab1ac2ad822e7bb87cb86b2428d0bc04ff 100644 (file)
@@ -21,6 +21,8 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+#include "libcli/auth/credentials.h"
+
 enum schannel_position {
        SCHANNEL_STATE_START = 0,
        SCHANNEL_STATE_UPDATE_1
index b4549ddefd014418d5ab041985c90da45b66d1fa..ad424f029980c88554e2822507f53d0f22d40c2f 100644 (file)
@@ -25,6 +25,8 @@
 #include "lib/crypto/crypto.h"
 #include "auth/auth.h"
 #include "auth/gensec/schannel.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 
 #define NETSEC_SIGN_SIGNATURE { 0x77, 0x00, 0xff, 0xff, 0xff, 0xff, 0x00, 0x00 }
 #define NETSEC_SEAL_SIGNATURE { 0x77, 0x00, 0x7a, 0x00, 0xff, 0xff, 0x00, 0x00 }
index e9c81f370cb594b88461979f2d9ccb1e5b69ef3c..3c9ff6414766989dff18e4205cdbe0d6e4dfc4be 100644 (file)
 */
 
 #include "includes.h"
-#include "auth/auth.h"
 #include "lib/ldb/include/ldb.h"
 #include "lib/ldb/include/ldb_errors.h"
 #include "dsdb/samdb/samdb.h"
 #include "db_wrap.h"
+#include "libcli/auth/libcli_auth.h"
+#include "auth/auth.h"
 
 /**
   connect to the schannel ldb
index f989455a729d178bda50a0adc960908fcb3827ae..c647ba5333b3f8ec8e0925a11ddc596cc75374a2 100644 (file)
 */
 
 #include "includes.h"
-#include "auth/auth.h"
-#include "auth/gensec/spnego_proto.h"
+#include "auth/gensec/spnego.h"
 #include "librpc/gen_ndr/ndr_dcerpc.h"
-#include "lib/socket/socket.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/gensec/socket.h"
 
 enum spnego_state_position {
index 1064370146618027c56f09958bdfddd71d4f06cf..78afbe01071f33188071aeb4e716edee4b1d80b9 100644 (file)
@@ -21,9 +21,6 @@
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
-#ifndef SAMBA_SPNEGO_H
-#define SAMBA_SPNEGO_H
-
 #define SPNEGO_DELEG_FLAG    0x01
 #define SPNEGO_MUTUAL_FLAG   0x02
 #define SPNEGO_REPLAY_FLAG   0x04
@@ -66,4 +63,4 @@ enum spnego_message_type {
        SPNEGO_NEG_TOKEN_TARG = 1,
 };
 
-#endif
+#include "auth/gensec/spnego_proto.h"
index 8dde78da484ca6b6fb7d91d31f6ded4b3b26050b..66e24bdbe5adb5c821215cf8243c198962a546c7 100644 (file)
@@ -22,7 +22,8 @@
 */
 
 #include "includes.h"
-#include "auth/auth.h"
+#include "auth/gensec/spnego.h"
+#include "auth/gensec/gensec.h"
 #include "libcli/util/asn_1.h"
 
 static BOOL read_negTokenInit(struct asn1_data *asn1, struct spnego_negTokenInit *token)
index f65ebec63ab9366bfd9a4f0ed651e5548a5b5ebc..689130d5671d5bef85539ca609524f8c212710bc 100644 (file)
@@ -10,6 +10,6 @@ OBJ_FILES = kerberos.o \
                        gssapi_parse.o \
                        krb5_init_context.o
 PUBLIC_DEPENDENCIES = HEIMDAL_KRB5 NDR_KRB5PAC samba-socket LIBCLI_RESOLVE
-PRIVATE_DEPENDENCIES = ASN1_UTIL HEIMDAL_ROKEN_ADDRINFO auth_sam
+PRIVATE_DEPENDENCIES = ASN1_UTIL HEIMDAL_ROKEN_ADDRINFO auth_sam CREDENTIALS_KRB5
 # End SUBSYSTEM KERBEROS
 #################################
index 3e724c29a5d4a2e34e937934122ef17d1f3136b3..b82dd3f75a12baf991b3555ead5008979352778c 100644 (file)
 
 #if defined(HAVE_KRB5)
 
-#include "auth/credentials/credentials.h"
 #include "auth/kerberos/krb5_init_context.h"
 #include "librpc/gen_ndr/krb5pac.h"
 
 struct auth_serversupplied_info;
+struct cli_credentials;
 
 struct ccache_container {
        struct smb_krb5_context *smb_krb5_context;
        krb5_ccache ccache;
 };
 
-
-struct gssapi_creds_container {
-       gss_cred_id_t creds;
-};
-
-
 struct keytab_container {
        struct smb_krb5_context *smb_krb5_context;
        krb5_keytab keytab;
@@ -159,10 +153,6 @@ NTSTATUS kerberos_decode_pac(TALLOC_CTX *mem_ctx,
                                     time_t tgs_authtime,
                                     DATA_BLOB *pac);
 
- int cli_credentials_set_client_gss_creds(struct cli_credentials *cred, 
-                                         gss_cred_id_t gssapi_cred,
-                                         enum credentials_obtained obtained); 
-
 #include "auth/kerberos/proto.h"
 
 #endif /* HAVE_KRB5 */
index 0be0ebaad717a8981431f693da135d78381dc219..dcfe16c8965d38fe5457be451fa494c6c26b6959 100644 (file)
@@ -28,7 +28,7 @@
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
 #include "librpc/gen_ndr/ndr_krb5pac.h"
-#include "auth/auth.h"
+#include "lib/ldb/include/ldb.h"
 #include "auth/auth_sam.h"
 
 static krb5_error_code check_pac_checksum(TALLOC_CTX *mem_ctx, 
index 02d5cf8a99f607d607a6a3276bd9cf214fa5b19d..66002e2f71d11853c9ab7f83c6c12e049db5223a 100644 (file)
@@ -25,6 +25,7 @@
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 struct principal_container {
        struct smb_krb5_context *smb_krb5_context;
index 29d704b148b16df04999ddcf95668200b0fcb8cc..2111e22aa3eef2a0fa3d636674a8e4417dd8655b 100644 (file)
@@ -26,8 +26,8 @@
 #include "includes.h"
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
-
-#ifdef HAVE_KRB5
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 /**********************************************************************************
  Verify an incoming ticket and parse out the principal name and 
 
        return NT_STATUS_OK;
 }
-
-#endif /* HAVE_KRB5 */
index 806532911ae307666bc3966674bc39a2d34c1550..6fbbd7d63836d757af3dfff5c77813b2bc8ddffe 100644 (file)
 */
 
 #include "includes.h"
-#include "auth/auth.h"
 #include "auth/ntlmssp/ntlmssp.h"
 #include "auth/ntlmssp/msrpc_parse.h"
 #include "librpc/gen_ndr/ndr_dcerpc.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
+#include "auth/auth.h"
 
 /**
  * Callbacks for NTLMSSP - for both client and server operating modes
index 1244c0dfbcfaabe2a0b4b8b221272fb4a7ee4539..23d96fb90bbd5318de7a4a3b783a5066c370df25 100644 (file)
 */
 
 #include "includes.h"
-#include "auth/auth.h"
 #include "auth/ntlmssp/ntlmssp.h"
 #include "auth/ntlmssp/msrpc_parse.h"
 #include "lib/crypto/crypto.h"
 #include "libcli/auth/libcli_auth.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 
 /*********************************************************************
  Client side NTLMSSP
index eab583811379bf2c1b5495173693301a1afd94bb..31c2ac63f4b63fb6de9ae76af01fa0eac3c5a7f3 100644 (file)
 */
 
 #include "includes.h"
-#include "auth/auth.h"
 #include "auth/ntlmssp/ntlmssp.h"
 #include "auth/ntlmssp/msrpc_parse.h"
 #include "lib/crypto/crypto.h"
 #include "pstring.h"
 #include "system/filesys.h"
 #include "libcli/auth/libcli_auth.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
+#include "auth/auth.h"
 
 /** 
  * Set a username on an NTLMSSP context - ensures it is talloc()ed 
index 90550f3a14402e77fbc633a8de7c2b63f4a2bb2e..316bb257ff3d67a6499f1b6b119eadc87cd7106d 100644 (file)
@@ -25,6 +25,8 @@
 #include "auth/ntlmssp/ntlmssp.h"
 #include "auth/ntlmssp/msrpc_parse.h"
 #include "lib/crypto/crypto.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 
 #define CLI_SIGN "session key to client-to-server signing key magic constant"
 #define CLI_SEAL "session key to client-to-server sealing key magic constant"
index 0284cb9a19338a7851e7275d752dffbf1b81c88e..c7f0a74ac985a5e12046a5355d380ef35423c5db 100644 (file)
@@ -27,6 +27,7 @@
 #include "dsdb/samdb/samdb.h"
 #include "libcli/security/security.h"
 #include "libcli/ldap/ldap.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 
 const char *user_attrs[] = {
        /* required for the krb5 kdc */
index 32f39c8571b84ddb6c8b5fc7893ed496d12315b3..557767022c9561a78362efced8e8f82a8e1a2c1b 100644 (file)
@@ -34,6 +34,7 @@
 #include "system/filesys.h"
 #include "lib/util/dlinklist.h"
 #include "system/readline.h"
+#include "auth/credentials/credentials.h"
 #include "auth/gensec/gensec.h"
 #include "system/time.h" /* needed by some systems for asctime() */
 #include "libcli/resolve/resolve.h"
index 5578cdd7d63a6c2c1e49d5c8d6da9b93bf64b8d8..f9ef3bc907885a711a5a3e4309a0ba1d691f3b37 100644 (file)
@@ -29,8 +29,7 @@
 #include "lib/ldb/include/ldb.h"
 #include "lib/ldb/include/ldb_errors.h"
 #include "libcli/security/security.h"
-#include "auth/credentials/credentials.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
 #include "libcli/ldap/ldap.h"
 #include "system/time.h"
 #include "system/filesys.h"
index ed94b17e555e2a05e6b1447d77a90d8ab6df42bb..e955c28fa689714aa0a432a02cf566b9cac5ce06 100644 (file)
@@ -96,7 +96,7 @@ OBJ_FILES = \
        ../heimdal/lib/gssapi/get_mic.o \
        ../heimdal/lib/gssapi/import_name.o \
        ../heimdal/lib/gssapi/init.o
-PUBLIC_DEPENDENCIES = KERBEROS HEIMDAL_KRB5 
+PUBLIC_DEPENDENCIES = HEIMDAL_KRB5 
 # End SUBSYSTEM HEIMDAL_GSSAPI
 #######################
 
@@ -483,7 +483,7 @@ SO_VERSION = 0
 CFLAGS = -Iheimdal_build
 OBJ_FILES = ../heimdal/lib/vers/print_version.o
 PUBLIC_DEPENDENCIES = \
-               HEIMDAL_GSSAPI HEIMDAL_KRB5 KERBEROS
+               HEIMDAL_GSSAPI HEIMDAL_KRB5
 # End SUBSYSTEM HEIMDAL
 #######################
 
index 827c66b86dc4a548d3793268ccfb85c0db94aa49..7359fe63c3734d3603b8533c62be7045d5345192 100644 (file)
 #include "kdc.h"
 #include "dsdb/common/flags.h"
 #include "hdb.h"
+#include "krb5_locl.h"
 #include "lib/ldb/include/ldb.h"
 #include "lib/ldb/include/ldb_errors.h"
 #include "librpc/gen_ndr/netlogon.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
 #include "auth/auth_sam.h"
 #include "db_wrap.h"
 #include "dsdb/samdb/samdb.h"
index b98304c12d00d168c63a41f24eaa7e671f106897..0dcbf9833d391c552dc02993e3da029cf833416a 100644 (file)
@@ -31,6 +31,9 @@
 #include "lib/ldb/include/ldb.h"
 #include "heimdal/lib/krb5/krb5_locl.h"
 #include "heimdal/lib/krb5/krb5-private.h"
+#include "auth/gensec/gensec.h"
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 #include "auth/auth.h"
 #include "dsdb/samdb/samdb.h"
 #include "rpc_server/dcerpc_server.h"
index 9736def3bf6dcd780f99b22fe3782d5e908b6bb7..f88d08e822db2bd7f0129b6e1c6eb9ef82e87f5d 100644 (file)
@@ -26,6 +26,7 @@
 #include "lib/ldb/include/ldb.h"
 #include "lib/ldb/include/ldb_errors.h"
 #include "dsdb/samdb/samdb.h"
+#include "auth/gensec/gensec.h"
 #include "auth/gensec/socket.h"
 
 static NTSTATUS ldapsrv_BindSimple(struct ldapsrv_call *call)
index 89f7bf0bfb25e749e943a26ea37455f7db7fe237..29555b14e16f68a6127dffca8fa8116a6588859d 100644 (file)
@@ -25,6 +25,8 @@
 #include "includes.h"
 #include "lib/events/events.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
+#include "librpc/gen_ndr/ndr_samr.h"
 #include "lib/util/dlinklist.h"
 #include "libcli/util/asn_1.h"
 #include "ldap_server/ldap_server.h"
index 2c392865aaea4e04f5bae56121dad8666248a994..f8502596fad60c85f85f209832a9a6c96d9a684d 100644 (file)
@@ -11,5 +11,5 @@ PUBLIC_DEPENDENCIES = LIBPOPT
 [SUBSYSTEM::POPT_CREDENTIALS]
 PRIVATE_PROTO_HEADER = popt_credentials.h
 OBJ_FILES = popt_credentials.o
-PUBLIC_DEPENDENCIES = CREDENTIALS LIBCMDLINE_CREDENTIALS LIBPOPT
+PUBLIC_DEPENDENCIES = CREDENTIALS_KRB5 LIBCMDLINE_CREDENTIALS LIBPOPT
 
index 5e9b6e97a507404a38240e49af1aff2318c8e1b7..ab1d11bfbf0c73b9294bb6adc76da366c2ba868d 100644 (file)
@@ -22,6 +22,8 @@
 #include "includes.h"
 #include "lib/cmdline/popt_common.h"
 #include "lib/cmdline/credentials.h"
+#include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 #include "auth/gensec/gensec.h"
 
 /* Handle command line options:
index 5a3ccd6977957cadf7a68636f34c9252d513ddbf..51ae031cf93f384f4be0e067bc6558d74a5a0504 100644 (file)
@@ -49,6 +49,7 @@
 #include "libcli/ldap/ldap.h"
 #include "libcli/ldap/ldap_client.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
 
 struct ildb_private {
        struct ldap_connection *ldap;
index 09bb99c096fafb50d75cc8bcdba294513fa57c27..928519f3bbd6c43feb95c2e6bf7fbabba584438b 100644 (file)
@@ -29,6 +29,7 @@
 #if (_SAMBA_BUILD_ >= 4)
 #include "lib/cmdline/popt_common.h"
 #include "lib/ldb/samba/ldif_handlers.h"
+#include "auth/gensec/gensec.h"
 #include "auth/auth.h"
 #include "db_wrap.h"
 #endif
index e5cf7d911199ad82aeeef849c10d1aacbbe88bd5..4c1eb8f39ed87bdf1e818af87bde5240acd2dfeb 100644 (file)
@@ -23,7 +23,6 @@
 #define _REGISTRY_H 
 
 #include "librpc/gen_ndr/security.h"
-#include "auth/credentials/credentials.h"
 
 /* Handles for the predefined keys */
 #define HKEY_CLASSES_ROOT               0x80000000
@@ -128,6 +127,8 @@ struct hive_operations {
        WERROR (*del_value)(const struct registry_key *, const char *valname);
 };
 
+struct cli_credentials;
+
 struct registry_hive
 {
        const struct hive_operations *functions;
index b24196fc252deec212425f7deb285f83f99afa5b..1617b96aad1a8014767579277ed1a09403435094 100644 (file)
 #define KRB5_PRINC_REALM_RETURNS_REALM 1
 
 #include "heimdal/lib/krb5/krb5.h"
-#include "heimdal/lib/gssapi/gssapi.h"
 #include "heimdal/lib/com_err/com_err.h"
 #endif
 
index f8f07e83375c492882e37031ca7620663d627cfb..e6e00568ff204964ff0416b541a893fc7932afe5 100644 (file)
@@ -19,7 +19,7 @@
 #define __LIBCLI_AUTH_H__
 
 #include "librpc/gen_ndr/netlogon.h"
-#include "auth/credentials/credentials.h"
+#include "libcli/auth/credentials.h"
 #include "libcli/auth/proto.h"
 
 #endif /* __LIBCLI_AUTH_H__ */
index 46f3336fd1a61ed80068b1063c52236c9003de9f..a64f41dbf44055d5f1e059caa2e5c4d2d207bd50 100644 (file)
@@ -36,7 +36,7 @@ OBJ_FILES = \
        smb_composite/fetchfile.o \
        smb_composite/appendacl.o \
        smb_composite/fsinfo.o 
-PUBLIC_DEPENDENCIES = LIBCLI_COMPOSITE
+PUBLIC_DEPENDENCIES = LIBCLI_COMPOSITE CREDENTIALS
 
 [SUBSYSTEM::NDR_NBT_BUF]
 PRIVATE_PROTO_HEADER = nbt/nbtname.h
index f617cbe1020a0cf2dae5dd2d59ad067f98392457..c4c731e4f5401939b55431a60bad0ae491b3fc0a 100644 (file)
@@ -26,7 +26,7 @@
 #include "libcli/ldap/ldap.h"
 #include "libcli/ldap/ldap_client.h"
 #include "lib/tls/tls.h"
-#include "auth/auth.h"
+#include "auth/gensec/gensec.h"
 #include "auth/gensec/socket.h"
 #include "lib/stream/packet.h"
 
index d264f588dae5f380aba80c0d70823bf3f1b29956..8528ac2ef7cd72b98213a42831423a6dd326e286 100644 (file)
@@ -27,6 +27,8 @@
 #include "libcli/smb_composite/smb_composite.h"
 #include "libcli/auth/libcli_auth.h"
 #include "auth/auth.h"
+#include "auth/gensec/gensec.h"
+#include "auth/credentials/credentials.h"
 #include "version.h"
 
 struct sesssetup_state {
index b0907c546192834497082ec22a0dfeffc64a932d..01872eb7fce44df5dc1bb118f1ddffc5e69d3717 100644 (file)
@@ -30,6 +30,7 @@
 #include "db_wrap.h"
 #include "libcli/security/security.h"
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 #include "librpc/gen_ndr/ndr_samr_c.h"
 
 /*
index ff527e2dfbc2ddfdb92dbd405ab6d1c04ef0c177..b61469ea002349ae56bb7bc3d6e21f41557deb3e 100644 (file)
@@ -25,6 +25,7 @@
 #include "libnet/libnet.h"
 #include "system/kerberos.h"
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 static NTSTATUS samdump_keytab_handle_user(TALLOC_CTX *mem_ctx,
                                            const char *keytab_name,
index f5a326c676df1402d51e20da13f28bde9ba6cffd..bda80db90f7dc2f8bb21199beec287e1a879ffdc 100644 (file)
@@ -25,6 +25,7 @@
 #include "libnet/libnet.h"
 #include "libcli/auth/libcli_auth.h"
 #include "auth/gensec/gensec.h"
+#include "auth/credentials/credentials.h"
 #include "auth/gensec/schannel_proto.h"
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "librpc/gen_ndr/ndr_netlogon_c.h"
index 02e6f9c2e599a389186f2c7931b12c34312df148..91c9a499aa28f5c71e3f9d3227bf6bde2040bd0d 100644 (file)
@@ -620,7 +620,7 @@ PRIVATE_DEPENDENCIES = \
                LIBNDR NDR_DCERPC \
                RPC_NDR_EPMAPPER \
                NDR_SCHANNEL RPC_NDR_NETLOGON \
-               gensec LIBCLI_AUTH LIBCLI_RAW
+               gensec LIBCLI_AUTH LIBCLI_RAW CREDENTIALS
 # End SUBSYSTEM dcerpc
 ################################################
 
index 22c0d384aa371c50d92e0a4378d5852aebbe55d1..38a707725db30b4825cdf0082f434556b82812ec 100644 (file)
@@ -32,6 +32,7 @@
 #include "libcli/smb2/smb2_calls.h"
 #include "librpc/rpc/dcerpc.h"
 #include "auth/credentials/credentials.h"
+#include "auth/credentials/credentials_krb5.h"
 
 
 struct pipe_np_smb_state {
index 928670761857d01c255cde105bfd1a6416d19862..d5a83b1bfafa65ca79203beeb551569f72257d72 100644 (file)
@@ -28,7 +28,7 @@
 #include "libcli/auth/libcli_auth.h"
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "librpc/gen_ndr/ndr_netlogon_c.h"
-
+#include "auth/credentials/credentials.h"
 
 struct schannel_key_state {
        struct dcerpc_pipe *pipe;
index bfdb5b92fcd959e9ddcc30e4941f08920db0825e..185e9a343800fee4aeda3741c385b15272fa5cba 100644 (file)
@@ -29,6 +29,7 @@
 #include "libcli/raw/libcliraw.h"
 #include "libcli/smb_composite/smb_composite.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
 #include "ntvfs/ntvfs.h"
 #include "lib/util/dlinklist.h"
 
index a78c424eaaa60c998f2cafa50807691414c579f7..08b68b2318f2effddff64dcfe403c94db05fbb88 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "librpc/gen_ndr/ndr_dcerpc.h"
 #include "auth/auth.h"
+#include "auth/gensec/gensec.h"
 #include "lib/util/dlinklist.h"
 #include "rpc_server/dcerpc_server.h"
 #include "lib/events/events.h"
index b73143ce34c3442570a8c067aefbb11df6df7871..6be90f2ea015dc7f2621aee359793f9d3d55b56c 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "rpc_server/dcerpc_server.h"
 #include "librpc/gen_ndr/ndr_dcerpc.h"
+#include "auth/credentials/credentials.h"
 #include "auth/gensec/gensec.h"
 
 /*
index 60dddfbfb3e3f2d15ad5d2903320365b5beb5fe5..b15d830c6db8add91a1b01c71f8181a890171395 100644 (file)
@@ -22,6 +22,7 @@
 #include "includes.h"
 #include "rpc_server/dcerpc_server.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
 #include "librpc/rpc/dcerpc_table.h"
 
 
index 09ad510a12099b5895c74ece17964bbfefeffe32..0326bca8578d07b078515aa2d1f51d3e3ab8df51 100644 (file)
@@ -78,7 +78,7 @@ PUBLIC_DEPENDENCIES = \
                EJS LIBSAMBA-UTIL \
                EJSRPC MESSAGING \
                LIBSAMBA-NET LIBCLI_SMB LIBPOPT \
-               POPT_CREDENTIALS POPT_SAMBA \
+               CREDENTIALS POPT_CREDENTIALS POPT_SAMBA \
                dcerpc \
                NDR_TABLE
 # End SUBSYSTEM smbcalls
index 281f35bb2072c3f831b25af5f6f71dad3166d17d..7b9fe2fc17644ec898d1383710476c44e8ec15c6 100644 (file)
@@ -24,6 +24,7 @@
 #include "includes.h"
 #include "lib/appweb/ejs/ejs.h"
 #include "auth/auth.h"
+#include "auth/credentials/credentials.h"
 #include "scripting/ejs/smbcalls.h"
 #include "lib/events/events.h"
 #include "lib/messaging/irpc.h"
index 4aecca53baae099c85d5bf32adf7743605d7d7b8..ea7e5797a1a0958b23c6156b7ca5981a6628182b 100644 (file)
@@ -19,6 +19,8 @@
 */
 
 #include "includes.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/auth.h"
 #include "smb_server/smb_server.h"
 #include "libcli/smb2/smb2.h"
index 25655fc14f05c0afa33e6094091d8a575bd2f0e0..b6bddaa5b1d95ae56fb7a14fd25b75489b22a3c0 100644 (file)
@@ -25,6 +25,8 @@
 
 #include "includes.h"
 #include "version.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/auth.h"
 #include "smb_server/smb_server.h"
 #include "smbd/service_stream.h"
index 8e3f6156ea41f6ca8a693fc21c07a0d418c28a15..fe65917275a6624c820d3ddf97f440b0d9577f57 100644 (file)
@@ -20,7 +20,8 @@
 */
 
 #include "includes.h"
-#include "auth/auth.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "libcli/smb2/smb2.h"
 #include "libcli/smb2/smb2_calls.h"
 #include "smb_server/smb_server.h"
index 2615eed6833a701d13c28f662a904fa2b0fb7f63..c99b443a35a7195c9513661fd5ba25c8d952988f 100644 (file)
@@ -20,6 +20,8 @@
 */
 
 #include "includes.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/auth.h"
 #include "libcli/smb2/smb2.h"
 #include "libcli/smb2/smb2_calls.h"
index b6d1ccee6258b859cdb7f803ee6d634969ce9955..a7c3b03c3949a5f1d2cbd65cb71a03503fc4f210 100644 (file)
@@ -19,7 +19,7 @@
 */
 
 #include "includes.h"
-#include "auth/auth.h"
+#include "auth/gensec/gensec.h"
 #include "auth/ntlmssp/ntlmssp.h"
 #include "lib/cmdline/popt_common.h"
 #include "torture/torture.h"
index b8dc2362eaea7579a4bb2a6b09e6a6a3fddbbf6f..9ad41f77e5a412353234eb0346ba745d14e09665 100644 (file)
@@ -25,6 +25,7 @@
 #include "libcli/libcli.h"
 #include "libcli/raw/libcliraw.h"
 #include "librpc/gen_ndr/security.h"
+#include "auth/credentials/credentials.h"
 #include "auth/gensec/gensec.h"
 
 #define NSERVERS 2
index 4554f52e4113000366c1e08cf2a09aab251eb8e9..608974ec650a6107c0ab2e27d589cd7fe41a1458 100644 (file)
@@ -22,6 +22,7 @@
 #include "system/filesys.h"
 #include "system/time.h"
 #include "pstring.h"
+#include "auth/credentials/credentials.h"
 #include "auth/gensec/gensec.h"
 #include "libcli/libcli.h"
 
index 8facd6a3ebaee923193d8514a1afbe2c864d503e..d76a205f7c3ab19739d5c542ecab3d44277f9f79 100644 (file)
@@ -25,6 +25,7 @@
 #include "libcli/raw/libcliraw.h"
 #include "system/time.h"
 #include "pstring.h"
+#include "auth/credentials/credentials.h"
 #include "auth/gensec/gensec.h"
 
 static struct cli_credentials *credentials;
index b95c2556622b55a6c3e9d8927188865abb362e6f..66e941c3cfff084830ae9cdcf7000621d8b63638 100644 (file)
@@ -47,7 +47,6 @@
 #include "libcli/composite/composite.h"
 #include "libcli/smb_composite/smb_composite.h"
 #include "libcli/auth/libcli_auth.h"
-#include "libcli/auth/credentials.h"
 #include "lib/crypto/crypto.h"
 #include "libcli/security/proto.h"
 
index 68ee70fdbb59e322c1235250de7d105477a93722..a0c02af4471e01232edec4a09a19c9462a4f3561 100644 (file)
 #include "includes.h"
 #include "system/filesys.h"
 #include "lib/cmdline/popt_common.h"
+#include "lib/ldb/include/ldb.h"
+#include "auth/credentials/credentials.h"
+#include "auth/gensec/gensec.h"
 #include "auth/auth.h"
+#include "librpc/gen_ndr/ndr_netlogon.h"
 #include "auth/auth_sam.h"
 #include "pstring.h"
 #include "libcli/auth/libcli_auth.h"
 #include "libcli/security/security.h"
-#include "lib/ldb/include/ldb.h"
 #include "lib/events/events.h"
 #include "lib/messaging/messaging.h"
 #include "lib/messaging/irpc.h"
index 53abcf5f65f003d03645ed589fdd5a4ed3d47396..3a560a9a94fa5e9a67386802c74e09b3b2660538 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "lib/messaging/irpc.h"
 #include "librpc/gen_ndr/irpc.h"
-#include "libcli/auth/credentials.h"
+#include "auth/credentials/credentials.h"
 #include "libcli/security/security.h"
 #include "libcli/auth/libcli_auth.h"
 #include "librpc/gen_ndr/ndr_netlogon_c.h"
index 3eb49e2def2999d66ffb08b0aba6c279198545e2..97798861caaad02464adb1d02c2a76cb1f7e5835 100644 (file)
@@ -25,7 +25,7 @@
 #include "libcli/composite/composite.h"
 #include "winbind/wb_server.h"
 #include "smbd/service_task.h"
-#include "libcli/auth/credentials.h"
+#include "auth/credentials/credentials.h"
 #include "libcli/auth/libcli_auth.h"
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "librpc/gen_ndr/ndr_netlogon_c.h"
index 7906f3f52578568f656514170ac30fd46aa0de70..bf8b4c7ad47ca79bf130520f382da35ba6716e92 100644 (file)
@@ -26,7 +26,7 @@
 #include "libcli/composite/composite.h"
 #include "winbind/wb_server.h"
 #include "smbd/service_task.h"
-#include "libcli/auth/credentials.h"
+#include "auth/credentials/credentials.h"
 #include "libcli/auth/libcli_auth.h"
 #include "librpc/gen_ndr/ndr_netlogon.h"
 #include "librpc/gen_ndr/ndr_netlogon_c.h"