r26319: Split encoding functions out of libcli_ldap.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 6 Dec 2007 20:39:49 +0000 (21:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 21 Dec 2007 04:48:33 +0000 (05:48 +0100)
17 files changed:
source/auth/auth_sam.c
source/auth/config.mk
source/cldap_server/netlogon.c
source/dsdb/common/sidmap.c
source/dsdb/config.mk
source/dsdb/samdb/cracknames.c
source/dsdb/samdb/ldb_modules/config.mk
source/dsdb/samdb/ldb_modules/password_hash.c
source/dsdb/samdb/ldb_modules/samldb.c
source/dsdb/samdb/samdb.c
source/dsdb/samdb/samdb_privilege.c
source/libcli/cldap/cldap.c
source/libcli/ldap/config.mk
source/libnet/libnet_samsync_ldb.c
source/rpc_server/lsa/dcesrv_lsa.c
source/rpc_server/lsa/lsa.h
source/rpc_server/samr/dcesrv_samr.c

index 86acb580b7eb333dc25884064006a8229dc94cd8..0885d8265ad7a8f34d1832cf49eb0023ee54a46a 100644 (file)
@@ -28,7 +28,7 @@
 #include "auth/auth_sam.h"
 #include "dsdb/samdb/samdb.h"
 #include "libcli/security/security.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "param/param.h"
 
 extern const char *user_attrs[];
index 0b927b8e586221c55f5a33092539512c217d288a..789055408da17d489931200999b40cc30716a470 100644 (file)
@@ -17,6 +17,7 @@ PRIVATE_DEPENDENCIES = auth_session
 PRIVATE_PROTO_HEADER = auth_sam.h
 OBJ_FILES = sam.o auth_sam_reply.o ntlm_check.o 
 PUBLIC_DEPENDENCIES = SAMDB UTIL_LDB
+PRIVATE_DEPENDENCIES = LDAP_ENCODE
 
 #######################
 # Start MODULE auth_sam
index beb1767138a52923e8b012135f2e5f2775b7703d..b123027a7c29066e16a9ca97c9973c7e6cd20f10 100644 (file)
@@ -20,7 +20,7 @@
 */
 
 #include "includes.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "lib/ldb/include/ldb.h"
 #include "lib/ldb/include/ldb_errors.h"
 #include "lib/events/events.h"
index caf7c3ae4f8db420c430384d0dba792bb71d897c..d277aa6543f5bbd076ae5f2e0f3ae1a68fd755f0 100644 (file)
@@ -24,7 +24,8 @@
 #include "dsdb/common/flags.h"
 #include "dsdb/samdb/samdb.h"
 #include "auth/auth.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
+#include "ldb.h"
 #include "util/util_ldb.h"
 #include "libcli/security/security.h"
 #include "param/param.h"
index 77a9085f0e9e6ba1c87ed9e4393e6f697c585597..ad9721458f151c288943d98fa8421e054cca0c94 100644 (file)
@@ -7,9 +7,9 @@ include samdb/ldb_modules/config.mk
 [SUBSYSTEM::SAMDB]
 PUBLIC_PROTO_HEADER = samdb/samdb_proto.h
 PUBLIC_HEADERS = samdb/samdb.h
-PUBLIC_DEPENDENCIES = LIBCLI_LDAP HEIMDAL_KRB5 
+PUBLIC_DEPENDENCIES = HEIMDAL_KRB5 
 PRIVATE_DEPENDENCIES = LIBNDR NDR_MISC NDR_DRSUAPI NDR_DRSBLOBS NSS_WRAPPER \
-                                          auth_system_session
+                                          auth_system_session LDAP_ENCODE
 OBJ_FILES = \
                samdb/samdb.o \
                samdb/samdb_privilege.o \
index dea00f7ab17745cc5b1d5ee5c351bcd8b8ee4d82..338bc4f138cbb2b77fb86b74674f434207af3f11 100644 (file)
 #include "lib/ldb/include/ldb_errors.h"
 #include "system/kerberos.h"
 #include "auth/kerberos/kerberos.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "libcli/security/security.h"
 #include "librpc/gen_ndr/ndr_misc.h"
 #include "auth/auth.h"
+#include "ldb.h"
 #include "util/util_ldb.h"
 #include "dsdb/samdb/samdb.h"
 #include "param/param.h"
index 3dce205eb329105456ea167810f88d6aecca1ca5..b585d0da7f1febab6c01e44d8b26d50afb25bc2a 100644 (file)
@@ -75,7 +75,7 @@ OBJ_FILES = \
 [MODULE::ldb_samldb]
 SUBSYSTEM = LIBLDB
 OUTPUT_TYPE = SHARED_LIBRARY
-PRIVATE_DEPENDENCIES = LIBTALLOC
+PRIVATE_DEPENDENCIES = LIBTALLOC LDAP_ENCODE
 INIT_FUNCTION = samldb_module_init
 OBJ_FILES = \
                samldb.o
@@ -143,7 +143,7 @@ SUBSYSTEM = LIBLDB
 OUTPUT_TYPE = SHARED_LIBRARY
 INIT_FUNCTION = password_hash_module_init
 OBJ_FILES = password_hash.o
-PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5
+PRIVATE_DEPENDENCIES = HEIMDAL_HDB_KEYS LIBTALLOC HEIMDAL_KRB5 LDAP_ENCODE
 #
 # End MODULE ldb_password_hash
 ################################################
index 529b1aa96fecef1350519d0b23f7124dc5e396a3..d139cc23a432c1a6b95cf2950f8f3feefe67ece1 100644 (file)
@@ -32,8 +32,9 @@
  */
 
 #include "includes.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "ldb/include/ldb_errors.h"
+#include "ldb/include/ldb.h"
 #include "ldb/include/ldb_private.h"
 #include "librpc/gen_ndr/misc.h"
 #include "librpc/gen_ndr/samr.h"
index 85ca1a7f4bf13f9817c458f4017ed4daadcf16bc..3638b917996cfefe2edcd22f0fadbf99b8eb1cde 100644 (file)
@@ -33,8 +33,9 @@
  */
 
 #include "includes.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "lib/ldb/include/ldb_errors.h"
+#include "lib/ldb/include/ldb.h"
 #include "lib/ldb/include/ldb_private.h"
 #include "dsdb/samdb/samdb.h"
 #include "libcli/security/security.h"
index 939de4b048ffdf1b9c35115c33a07b5c727978b6..4366b7d0b9fd3d7830b6c023be2b74a4426ac3d5 100644 (file)
@@ -29,7 +29,7 @@
 #include "lib/ldb/include/ldb_errors.h"
 #include "libcli/security/security.h"
 #include "libcli/auth/libcli_auth.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "system/time.h"
 #include "system/filesys.h"
 #include "ldb_wrap.h"
index 0baa7ee79410dcd9d3774c90749ab8afa8a45ff5..3945dbb14b88b41a8150d11f70956e658e086436 100644 (file)
@@ -20,7 +20,7 @@
 */
 
 #include "includes.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "dsdb/samdb/samdb.h"
 #include "auth/auth.h"
 #include "libcli/security/security.h"
index 87a8957fbc6da302ad13fa25d620fb4e57c68e4f..4c6bd68c13c2d0409190a691e8c465d44c2404af 100644 (file)
@@ -35,6 +35,7 @@
 #include "lib/events/events.h"
 #include "lib/util/dlinklist.h"
 #include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "libcli/cldap/cldap.h"
 #include "lib/socket/socket.h"
 #include "libcli/security/security.h"
index adccd23eb19414caf2415d7eadba275494018a37..444306b328b9767c467224490451a7fef097174e 100644 (file)
@@ -5,9 +5,14 @@ OBJ_FILES = ldap.o \
                ldap_client.o \
                ldap_bind.o \
                ldap_msg.o \
-               ldap_ndr.o \
                ldap_ildap.o \
                ldap_controls.o
-PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBEVENTS LIBPACKET
-PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE samba-socket LIBCLI_RESOLVE NDR_SAMR LIBTLS ASN1_UTIL GENSEC_SOCKET
-#FIXME: PRIVATE_DEPENDENCIES = gensec
+PUBLIC_DEPENDENCIES = LIBSAMBA-ERRORS LIBEVENTS LIBPACKET 
+PRIVATE_DEPENDENCIES = LIBCLI_COMPOSITE samba-socket NDR_SAMR LIBTLS ASN1_UTIL \
+                                          LDAP_ENCODE LIBNDR
+
+
+[SUBSYSTEM::LDAP_ENCODE]
+PUBLIC_PROTO_HEADER = ldap_ndr.h
+OBJ_FILES = ldap_ndr.o
+# FIXME PRIVATE_DEPENDENCIES = LIBLDB
index 8ec058d845ee4e876d0a1e8e57d10b50ffa2e930..ea6013391df89125a2fea4ce8d174ec4b6abc594 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "includes.h"
 #include "libnet/libnet.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "dsdb/samdb/samdb.h"
 #include "auth/auth.h"
 #include "util/util_ldb.h"
index e054aaeffe2a6355f3bd1ec7fbd0de64fac0dbb2..4375088e1703c42a41fe2ef9ddd8e883ef23012a 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "rpc_server/lsa/lsa.h"
 #include "util/util_ldb.h"
+#include "libcli/ldap/ldap_ndr.h"
 
 /*
   this type allows us to distinguish handle types
index 3959311b99b3234e0f1a814e790d1e13c17ada81..db148d3dcb8da317fcb22c1f52bd5961ee8ed221 100644 (file)
@@ -25,7 +25,7 @@
 #include "rpc_server/common/common.h"
 #include "auth/auth.h"
 #include "dsdb/samdb/samdb.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "lib/ldb/include/ldb_errors.h"
 #include "libcli/security/security.h"
 #include "libcli/auth/libcli_auth.h"
index 9a6ebe43b7d0b6140ece4d6701896ad6b1e4d420..db659ef5a309b89adecdd161a54171dcef0e6269 100644 (file)
@@ -31,7 +31,7 @@
 #include "lib/ldb/include/ldb_errors.h"
 #include "dsdb/common/flags.h"
 #include "dsdb/samdb/samdb.h"
-#include "libcli/ldap/ldap.h"
+#include "libcli/ldap/ldap_ndr.h"
 #include "libcli/security/security.h"
 #include "rpc_server/samr/proto.h"
 #include "util/util_ldb.h"