netlogon: move netlogon helpers to ../libcli/netlogon.
authorGünther Deschner <gd@samba.org>
Fri, 7 Jan 2011 11:01:42 +0000 (12:01 +0100)
committerGünther Deschner <gd@samba.org>
Fri, 7 Jan 2011 14:02:24 +0000 (15:02 +0100)
Guenther

17 files changed:
libcli/cldap/cldap.h
libcli/nbt/wscript_build
libcli/netlogon/ndr_netlogon.c [moved from libcli/ndr_netlogon.c with 99% similarity]
libcli/netlogon/ndr_netlogon_proto.h [moved from libcli/ndr_netlogon_proto.h with 100% similarity]
libcli/netlogon/netlogon.c [moved from libcli/netlogon.c with 99% similarity]
libcli/netlogon/netlogon.h [moved from libcli/netlogon.h with 94% similarity]
libcli/netlogon/netlogon_proto.h [moved from libcli/netlogon_proto.h with 100% similarity]
libcli/netlogon/wscript_build [new file with mode: 0644]
librpc/idl/nbt.idl
source3/libads/cldap.h
source3/libsmb/clidgram.h
source3/libsmb/namequery.c
source3/nmbd/nmbd_processlogon.c
source3/wscript_build
source4/libcli/dgram/libdgram.h
source4/libcli/finddc.h
source4/wscript_build

index d05e5b9..d119748 100644 (file)
@@ -19,7 +19,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 
 struct ldap_message;
 struct tsocket_address;
index 9cae6e0..7229d12 100644 (file)
@@ -21,18 +21,6 @@ bld.SAMBA_BINARY('nmblookup',
        )
 
 
-bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
-       source='../ndr_netlogon.c',
-       public_deps='ndr NDR_SECURITY'
-       )
-
-
-bld.SAMBA_SUBSYSTEM('LIBCLI_NETLOGON',
-       source='../netlogon.c',
-       public_deps='samba-util LIBCLI_NDR_NETLOGON'
-       )
-
-
 bld.SAMBA_PYTHON('python_netbios',
        source='pynbt.c',
        public_deps='cli-nbt DYNCONFIG samba-hostconfig',
similarity index 99%
rename from libcli/ndr_netlogon.c
rename to libcli/netlogon/ndr_netlogon.c
index d15154d..7d6aa97 100644 (file)
@@ -22,7 +22,7 @@
 /* parser auto-generated by pidl, then hand-modified by abartlet */
 
 #include "includes.h"
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 
 /* Manually modified to handle the dom_sid being optional based on if it is present or all zero */
 enum ndr_err_code ndr_push_NETLOGON_SAM_LOGON_REQUEST(struct ndr_push *ndr, int ndr_flags, const struct NETLOGON_SAM_LOGON_REQUEST *r)
similarity index 99%
rename from libcli/netlogon.c
rename to libcli/netlogon/netlogon.c
index ceb1c85..d82a201 100644 (file)
@@ -20,7 +20,7 @@
 */
 
 #include "includes.h"
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 
 NTSTATUS push_netlogon_samlogon_response(DATA_BLOB *data, TALLOC_CTX *mem_ctx,
                                         struct netlogon_samlogon_response *response)
similarity index 94%
rename from libcli/netlogon.h
rename to libcli/netlogon/netlogon.h
index 3e626ed..9bf346a 100644 (file)
@@ -50,6 +50,6 @@ struct nbt_netlogon_response
        } data;
 };
 
-#include "../libcli/netlogon_proto.h"
-#include "../libcli/ndr_netlogon_proto.h"
+#include "../libcli/netlogon/netlogon_proto.h"
+#include "../libcli/netlogon/ndr_netlogon_proto.h"
 #endif /* __CLDAP_SERVER_PROTO_H__ */
diff --git a/libcli/netlogon/wscript_build b/libcli/netlogon/wscript_build
new file mode 100644 (file)
index 0000000..6c5e57b
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/env python
+
+bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
+       source='ndr_netlogon.c',
+       public_deps='ndr NDR_SECURITY'
+       )
+
+bld.SAMBA_SUBSYSTEM('LIBCLI_NETLOGON',
+       source='netlogon.c',
+       public_deps='samba-util LIBCLI_NDR_NETLOGON'
+       )
index 246dfeb..cbfa966 100644 (file)
@@ -10,7 +10,7 @@
 
 import "misc.idl", "security.idl", "svcctl.idl", "samr.idl";
 [
-       helper("../libcli/netlogon.h", "../libcli/nbt/libnbt.h"),
+       helper("../libcli/netlogon/netlogon.h", "../libcli/nbt/libnbt.h"),
        helpstring("NBT messages"),
        uuid("6def41b6-86e4-4c32-997c-ed33af7bcd8e")
 ]
index afe4b35..e2d05ce 100644 (file)
@@ -1,4 +1,4 @@
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 
 /* The following definitions come from libads/cldap.c  */
 bool ads_cldap_netlogon(TALLOC_CTX *mem_ctx,
index 640a590..01a8a6a 100644 (file)
@@ -1,4 +1,4 @@
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 
 /* The following definitions come from libsmb/clidgram.c  */
 
index e7dd22a..64452d5 100644 (file)
@@ -21,7 +21,7 @@
 #include "includes.h"
 #include "libads/sitename_cache.h"
 #include "libads/dns.h"
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 #include "librpc/gen_ndr/messaging.h"
 #include "lib/async_req/async_sock.h"
 
index d21ad3d..7976817 100644 (file)
@@ -24,7 +24,7 @@
 */
 
 #include "includes.h"
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 #include "../libcli/cldap/cldap.h"
 #include "../lib/tsocket/tsocket.h"
 #include "../libcli/security/security.h"
index 6b21540..9905b88 100644 (file)
@@ -147,8 +147,6 @@ LIBADS_PRINTER_SRC = '''libads/ldap_printer.c'''
 SECRETS_SRC = '''passdb/secrets.c passdb/machine_account_secrets.c
                  passdb/machine_sid.c'''
 
-LIBNBT_SRC = '''../libcli/netlogon.c'''
-
 LIBNMB_SRC = '''libsmb/unexpected.c libsmb/namecache.c libsmb/nmblib.c
              libsmb/namequery.c ../libcli/nbt/lmhosts.c libsmb/conncache.c
              libads/dns.c libads/sitename_cache.c'''
@@ -993,8 +991,8 @@ bld.SAMBA_SUBSYSTEM('LIBNMB',
                     vars=locals())
 
 bld.SAMBA_SUBSYSTEM('LIBNBT',
-                    source=LIBNBT_SRC,
-                    deps='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NDR_NETLOGON',
+                    source='',
+                    deps='NDR_SVCCTL NDR_NBT NDR_NBT_BUF LIBCLI_NETLOGON LIBCLI_NDR_NETLOGON',
                     vars=locals())
 
 bld.SAMBA_SUBSYSTEM('SERVICES',
@@ -1081,10 +1079,6 @@ bld.SAMBA_SUBSYSTEM('NDR_NBT_BUF',
        deps='talloc',
        autoproto='nbtname.h')
 
-bld.SAMBA_SUBSYSTEM('LIBCLI_NDR_NETLOGON',
-       source='../libcli/ndr_netlogon.c',
-       public_deps='ndr NDR_SECURITY')
-
 bld.SAMBA_SUBSYSTEM('RPCCLI_WINREG',
        source='../librpc/gen_ndr/cli_winreg.c',
        public_deps='RPC_NDR_WINREG')
@@ -1468,6 +1462,7 @@ bld.RECURSE('../libcli/auth')
 bld.RECURSE('../libcli/drsuapi')
 bld.RECURSE('../libcli/ldap')
 bld.RECURSE('../libcli/named_pipe_auth')
+bld.RECURSE('../libcli/netlogon')
 bld.RECURSE('../libcli/samsync')
 bld.RECURSE('../libcli/security')
 bld.RECURSE('../libcli/smb')
index a5d1b94..280c27d 100644 (file)
@@ -19,7 +19,7 @@
    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-#include "../libcli/netlogon.h"
+#include "../libcli/netlogon/netlogon.h"
 
 /*
   a datagram name request
index 9ff1723..3836d12 100644 (file)
@@ -21,7 +21,7 @@
 
 #include "lib/messaging/messaging.h"
 #include "libcli/libcli.h"
-#include "libcli/netlogon.h"
+#include "libcli/netlogon/netlogon.h"
 
 struct finddcs {
        struct {
index 9566d10..daf2bce 100644 (file)
@@ -85,6 +85,7 @@ bld.RECURSE('../lib/async_req')
 bld.RECURSE('../libcli/security')
 bld.RECURSE('../libcli/ldap')
 bld.RECURSE('../libcli/nbt')
+bld.RECURSE('../libcli/netlogon')
 bld.RECURSE('../libcli/auth')
 bld.RECURSE('../libcli/drsuapi')
 bld.RECURSE('../libcli/echo')