samba.git
13 years agos3-rpc_client: Added dcerpc_lsa_lookup_sids and dcerpc_lsa_lookup_sids3.
Andreas Schneider [Tue, 7 Sep 2010 12:58:19 +0000 (14:58 +0200)]
s3-rpc_client: Added dcerpc_lsa_lookup_sids and dcerpc_lsa_lookup_sids3.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos3-rpc_client: Added dcerpc_lsa_open_policy2.
Andreas Schneider [Tue, 7 Sep 2010 10:19:25 +0000 (12:19 +0200)]
s3-rpc_client: Added dcerpc_lsa_open_policy2.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos3-rpc_client: Added dcerpc_lsa_open_policy.
Andreas Schneider [Tue, 7 Sep 2010 09:24:52 +0000 (11:24 +0200)]
s3-rpc_client: Added dcerpc_lsa_open_policy.

Signed-off-by: Günther Deschner <gd@samba.org>
13 years agos3: Remove superfluous ;
Volker Lendecke [Mon, 10 Jan 2011 13:40:40 +0000 (14:40 +0100)]
s3: Remove superfluous ;

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jan 10 15:26:50 CET 2011 on sn-devel-104

13 years agos3-selftest: re-sync with s4-selftest wscript.
Günther Deschner [Mon, 10 Jan 2011 11:28:57 +0000 (12:28 +0100)]
s3-selftest: re-sync with s4-selftest wscript.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 10 13:41:38 CET 2011 on sn-devel-104

13 years agolibcli/security: fix sid_type_lookup().
Günther Deschner [Mon, 10 Jan 2011 10:57:18 +0000 (11:57 +0100)]
libcli/security: fix sid_type_lookup().

It *always* returned "SID *TYPE* is INVALID".

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Jan 10 12:47:00 CET 2011 on sn-devel-104

13 years agom4: Don't AC_MSG_ERROR when too old python is found
Volker Lendecke [Mon, 10 Jan 2011 09:06:37 +0000 (10:06 +0100)]
m4: Don't AC_MSG_ERROR when too old python is found

This broke the pure S3 build with an old python

Matthias Dieter Wallnöfer, please check!

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Jan 10 11:26:18 CET 2011 on sn-devel-104

13 years agos4: make pipes with underscore works also
Matthieu Patou [Tue, 28 Sep 2010 00:40:38 +0000 (04:40 +0400)]
s4: make pipes with underscore works also

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Sun Jan  9 15:47:01 CET 2011 on sn-devel-104

13 years agos3: Convert enc_blob_send_receive to cli_trans()
Volker Lendecke [Sun, 9 Jan 2011 09:53:04 +0000 (10:53 +0100)]
s3: Convert enc_blob_send_receive to cli_trans()

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sun Jan  9 11:40:04 CET 2011 on sn-devel-104

13 years agos3: Fix two incompatible pointer type warnings on Solaris
Volker Lendecke [Sun, 9 Jan 2011 09:20:29 +0000 (10:20 +0100)]
s3: Fix two incompatible pointer type warnings on Solaris

13 years agos3: Fix some warnings in the zfsacl module
Volker Lendecke [Thu, 6 Jan 2011 16:09:56 +0000 (17:09 +0100)]
s3: Fix some warnings in the zfsacl module

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan  8 13:42:20 CET 2011 on sn-devel-104

13 years agos3: Avoid a ton of registry writes at startup
Volker Lendecke [Sat, 8 Jan 2011 10:51:17 +0000 (11:51 +0100)]
s3: Avoid a ton of registry writes at startup

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Sat Jan  8 12:39:09 CET 2011 on sn-devel-104

13 years agos3: Fix a type error
Volker Lendecke [Sat, 8 Jan 2011 10:28:47 +0000 (11:28 +0100)]
s3: Fix a type error

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Sat, 8 Jan 2011 10:28:27 +0000 (11:28 +0100)]
s3: Fix some nonempty blank lines

13 years agoExplicitly set "nmbd: socket dir" in the test environment.
Jeremy Allison [Sat, 8 Jan 2011 05:28:45 +0000 (21:28 -0800)]
Explicitly set "nmbd: socket dir" in the test environment.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan  8 07:17:22 CET 2011 on sn-devel-104

13 years agowaf: ensure "make dist" works from a clean git tree for all libraries
Andrew Tridgell [Sat, 8 Jan 2011 00:39:32 +0000 (11:39 +1100)]
waf: ensure "make dist" works from a clean git tree for all libraries

this uses a temporary waf lock file to force the build directory

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Sat Jan  8 02:35:22 CET 2011 on sn-devel-104

13 years agoMove wins_lookup_open_socket_in() to remove a compile warning.
Jeremy Allison [Fri, 7 Jan 2011 23:27:51 +0000 (15:27 -0800)]
Move wins_lookup_open_socket_in() to remove a compile warning.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Jan  8 01:48:27 CET 2011 on sn-devel-104

13 years agos3-printing: remove printer_list_need_refresh
David Disseldorp [Tue, 28 Dec 2010 14:54:54 +0000 (15:54 +0100)]
s3-printing: remove printer_list_need_refresh

printer_list_need_refresh() was used previously to ensure one smbd
process did not attempt to update the printer_list tdb during or soon
after update by another smbd.

It is no longer needed, as pcap updates are now only performed by the
parent smbd process following startup, SIGHUP, config update or printcap
cache time expiry.

13 years agos3-printing: remove old entries in pcap_cache_replace
David Disseldorp [Tue, 28 Dec 2010 13:55:01 +0000 (14:55 +0100)]
s3-printing: remove old entries in pcap_cache_replace

Callers of pcap_cache_replace() assume the existing printcap cache is
replaced by the new values provided. This is not currently the case,
old entries should be removed.

13 years agos3-printing: Initiate pcap reload from parent smbd
David Disseldorp [Thu, 23 Dec 2010 11:14:21 +0000 (12:14 +0100)]
s3-printing: Initiate pcap reload from parent smbd

Since commit 7022554, smbds share a printcap cache (printer_list.tdb),
therefore ordering of events between smbd processes is important when
updating printcap cache information. Consider the following two process
example:
1) smbd1 receives HUP or printcap cache time expiry
2) smbd1 checks whether pcap needs refresh, it does
3) smbd1 marks pcap as refreshed
4) smbd1 forks child1 to obtain cups printer info
5) smbd2 receives HUP or printcap cache time expiry
6) smbd2 checks whether pcap needs refresh, it does not (due to step 3)
7) smbd2 reloads printer shares prior to child1 completion (stale pcap)
8) child1 completion, pcap cache (printer_list.tdb) is updated by smbd1
9) smbd1 reloads printer shares based on new pcap information

In this case both smbd1 and smbd2 are reliant on the pcap update
performed on child1 completion.
The prior commit "reload shares after pcap cache fill" ensures that
smbd1 only reloads printer shares following pcap update, however smbd2
continues to present shares based on stale pcap data.

This commit addresses the above problem by driving pcap cache and
printer share updates from the parent smbd process.
1) smbd0 (parent) receives a HUP or printcap cache time expiry
2) smbd0 forks child0 to obtain cups printer info
3) child0 completion, pcap cache (printer_list.tdb) is updated by smbd0
4) smbd0 reloads printer shares
5) smbd0 notifies child smbds of pcap update via message_send_all()
6) child smbds read fresh pcap data and reload printer shares

This architecture has the additional advantage that only a single
process (the parent smbd) requests printer information from the printcap
backend.

Use time_mono in housekeeping functions As suggested by Björn Jacke.

13 years agos3-printing: reload shares after pcap cache fill
David Disseldorp [Sun, 19 Dec 2010 18:52:08 +0000 (19:52 +0100)]
s3-printing: reload shares after pcap cache fill

Since commit eada8f8a, updates to the cups pcap cache are performed
asynchronously - cups_cache_reload() forks a child process to request
cups printer information and notify the parent smbd on completion.

Currently printer shares are reloaded immediately following the call to
cups_cache_reload(), this occurs prior to smbd receiving new cups pcap
information from the child process. Such behaviour can result in stale
print shares as outlined in bug 7836.

This fix ensures print shares are only reloaded after new pcap data has
been received.

Pair-Programmed-With: Lars Müller <lars@samba.org>

13 years agos4: upgradeprovision: Improve wording, punctuation
Michael Wood [Wed, 5 Jan 2011 01:36:16 +0000 (03:36 +0200)]
s4: upgradeprovision: Improve wording, punctuation

Signed-off-by: Matthieu Patou <mat@matws.net>
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Jan  8 00:25:08 CET 2011 on sn-devel-104

13 years agos3-nmbd: Fix bug #7875
Björn Baumbach [Fri, 7 Jan 2011 14:53:13 +0000 (15:53 +0100)]
s3-nmbd: Fix bug #7875

nmbd --port didn't work

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Fri Jan  7 17:44:08 CET 2011 on sn-devel-104

13 years agos3-waf: add NMBDSOCKETDIR variable.
Günther Deschner [Fri, 7 Jan 2011 14:21:26 +0000 (15:21 +0100)]
s3-waf: add NMBDSOCKETDIR variable.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan  7 16:33:55 CET 2011 on sn-devel-104

13 years agos3-build: fix classic build after libcli netlogon changes.
Günther Deschner [Fri, 7 Jan 2011 11:36:38 +0000 (12:36 +0100)]
s3-build: fix classic build after libcli netlogon changes.

Guenther

13 years agonetlogon: move netlogon helpers to ../libcli/netlogon.
Günther Deschner [Fri, 7 Jan 2011 11:01:42 +0000 (12:01 +0100)]
netlogon: move netlogon helpers to ../libcli/netlogon.

Guenther

13 years agos3-waf: rename LIBCLI_NETLOGON subsystem to LIBRPCCLI_NETLOGON.
Günther Deschner [Fri, 7 Jan 2011 11:19:00 +0000 (12:19 +0100)]
s3-waf: rename LIBCLI_NETLOGON subsystem to LIBRPCCLI_NETLOGON.

Guenther

13 years agos3-waf: rearrange waf recurses in main wscript_build.
Günther Deschner [Fri, 7 Jan 2011 11:08:54 +0000 (12:08 +0100)]
s3-waf: rearrange waf recurses in main wscript_build.

Guenther

13 years agos3-waf: cleanup wscript_build a little.
Günther Deschner [Fri, 7 Jan 2011 10:45:33 +0000 (11:45 +0100)]
s3-waf: cleanup wscript_build a little.

Guenther

13 years agos3-waf: recurse into ../lib/smbconf.
Günther Deschner [Fri, 7 Jan 2011 10:41:15 +0000 (11:41 +0100)]
s3-waf: recurse into ../lib/smbconf.

Guenther

13 years agos3: Make nmbd socket dir configurable
Volker Lendecke [Thu, 6 Jan 2011 11:33:44 +0000 (12:33 +0100)]
s3: Make nmbd socket dir configurable

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan  7 14:14:19 CET 2011 on sn-devel-104

13 years agos3: Remove some unused code
Volker Lendecke [Wed, 5 Jan 2011 13:50:21 +0000 (14:50 +0100)]
s3: Remove some unused code

13 years agos3: Limit the number of unexpected clients to 200
Volker Lendecke [Wed, 5 Jan 2011 13:35:11 +0000 (14:35 +0100)]
s3: Limit the number of unexpected clients to 200

DoS protection like the max winbind clients. Settable by
nmbd:unexpected_clients

13 years agos3: Limit the number of unexpected packets per client to 10
Volker Lendecke [Wed, 5 Jan 2011 13:34:04 +0000 (14:34 +0100)]
s3: Limit the number of unexpected packets per client to 10

Non-reading clients could maliciously make nmbd allocate memory

13 years agos3: Use the new nbt_getdc in winbindd_cm
Volker Lendecke [Wed, 5 Jan 2011 13:13:00 +0000 (14:13 +0100)]
s3: Use the new nbt_getdc in winbindd_cm

13 years agos3: Use the new nbt_getdc in dsgetdcname()
Volker Lendecke [Wed, 5 Jan 2011 13:12:44 +0000 (14:12 +0100)]
s3: Use the new nbt_getdc in dsgetdcname()

13 years agos3: Add nbt_getdc
Volker Lendecke [Sun, 2 Jan 2011 11:49:08 +0000 (12:49 +0100)]
s3: Add nbt_getdc

This is a getdc version that uses /tmp/.nmbd/unexpected

13 years agos3: Fix a valgrind error
Volker Lendecke [Thu, 6 Jan 2011 01:12:00 +0000 (02:12 +0100)]
s3: Fix a valgrind error

13 years agos3: Factor out parse_getdc_response
Volker Lendecke [Sun, 2 Jan 2011 13:43:18 +0000 (14:43 +0100)]
s3: Factor out parse_getdc_response

13 years agos3: Lift my_mailslot from prep_getdc_request
Volker Lendecke [Sun, 2 Jan 2011 11:42:47 +0000 (12:42 +0100)]
s3: Lift my_mailslot from prep_getdc_request

13 years agos3: Make name_query use /tmp/.nmbd/unexpected
Volker Lendecke [Tue, 4 Jan 2011 17:48:47 +0000 (18:48 +0100)]
s3: Make name_query use /tmp/.nmbd/unexpected

13 years agos3: Make node_status_query use /tmp/.nmbd/unexpected
Volker Lendecke [Tue, 4 Jan 2011 17:34:38 +0000 (18:34 +0100)]
s3: Make node_status_query use /tmp/.nmbd/unexpected

13 years agos3: Add nb_trans_send/recv
Volker Lendecke [Tue, 4 Jan 2011 17:22:38 +0000 (18:22 +0100)]
s3: Add nb_trans_send/recv

This does an async port 137 transaction: It connects to /tmp/.nmbd/unexpected,
sends out the query and then waits for a reply on both the socket as well as
data from /tmp/.nmbd/unexpected. Every packet is passed through a validator. If
that returns true, the packet received is finally accepted.

13 years agos3: Add sock_packet_read
Volker Lendecke [Tue, 4 Jan 2011 17:17:33 +0000 (18:17 +0100)]
s3: Add sock_packet_read

Read packets from both a socket and from /tmp/.nmbd/unexpected simultaneously

13 years agos3: Add packet_trn_id()
Volker Lendecke [Tue, 4 Jan 2011 17:07:12 +0000 (18:07 +0100)]
s3: Add packet_trn_id()

13 years agos3: Make nmbd listen on the unexpected socket
Volker Lendecke [Tue, 4 Jan 2011 16:58:12 +0000 (17:58 +0100)]
s3: Make nmbd listen on the unexpected socket

13 years agos3: Basic infrastructure for /tmp/.nmbd/unexpected
Volker Lendecke [Tue, 4 Jan 2011 16:12:17 +0000 (17:12 +0100)]
s3: Basic infrastructure for /tmp/.nmbd/unexpected

This provides the framework to replace the unexpected.tdb file. Nmbd will
listen on /tmp/.nmbd/unexpected. A client interested in unexpected packets
connects there. It sends a nb_packet_query plus a potential mailslot name for
dgram packets. It waits for a single ack byte to avoid races. After that has
happened, nmbd will pass down all matching packets through that socket.

nb_packet_server_create and nb_packet_dispatch are the nmbd routines,
nb_packet_reader_send/recv and nb_packet_read_send/recv are the client ones.

13 years agos4/ldapcmp: Two new options are added to the tool
Zahari Zahariev [Wed, 5 Jan 2011 16:56:23 +0000 (18:56 +0200)]
s4/ldapcmp: Two new options are added to the tool

The new ones are --base and --scope they give us the opportunity to
compare DN subsets of the partitions. Now we are also able to compare
any two objects even if they have different DNs. This is exteremely
helpful when you are after nasty nTSecurityDescriptor bug.

Signed-off-by: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Autobuild-Date: Fri Jan  7 13:22:26 CET 2011 on sn-devel-104

13 years agos3-waf: fix winbind_krb5_locator.so realname.
Günther Deschner [Thu, 6 Jan 2011 23:37:02 +0000 (00:37 +0100)]
s3-waf: fix winbind_krb5_locator.so realname.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan  7 11:13:29 CET 2011 on sn-devel-104

13 years agos3-waf: make the --with-Xdir options work more like in the classic build.
Günther Deschner [Thu, 6 Jan 2011 23:05:27 +0000 (00:05 +0100)]
s3-waf: make the --with-Xdir options work more like in the classic build.

Also remove duplicates and sort the tables.

Still not sure if I understand the reason of processing the flags table after
the diroptions table, as every option you give it via configure was overwritten
immediately.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Fri Jan  7 00:57:10 CET 2011 on sn-devel-104

13 years agos4-ldap_server Allow multiple binds on LDAP server
Andrew Bartlett [Thu, 6 Jan 2011 04:25:29 +0000 (15:25 +1100)]
s4-ldap_server Allow multiple binds on LDAP server

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Fri Jan  7 00:02:23 CET 2011 on sn-devel-104

13 years agos3-net: Fix bug #7690: retry DNS updates when connection to one nameserver has failed.
Günther Deschner [Thu, 6 Jan 2011 15:23:54 +0000 (16:23 +0100)]
s3-net: Fix bug #7690: retry DNS updates when connection to one nameserver has failed.

Initial patch from Patrik Martinsson <patrik.martinsson@smhi.se>.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Jan  6 17:29:11 CET 2011 on sn-devel-104

13 years agolib/addns: move DNS client library to the main directory.
Günther Deschner [Thu, 6 Jan 2011 13:53:04 +0000 (14:53 +0100)]
lib/addns: move DNS client library to the main directory.

Guenther

13 years agoacl tests: Fix import.
Jelmer Vernooij [Thu, 6 Jan 2011 13:39:46 +0000 (14:39 +0100)]
acl tests: Fix import.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Thu Jan  6 16:07:49 CET 2011 on sn-devel-104

13 years agoUse new style objects.
Jelmer Vernooij [Thu, 6 Jan 2011 13:39:40 +0000 (14:39 +0100)]
Use new style objects.

13 years agoRemove unused imports.
Jelmer Vernooij [Thu, 6 Jan 2011 11:40:07 +0000 (12:40 +0100)]
Remove unused imports.

13 years agotdbrestore: Update to GPLv3+, remove old FSF address.
Jelmer Vernooij [Wed, 5 Jan 2011 12:52:34 +0000 (13:52 +0100)]
tdbrestore: Update to GPLv3+, remove old FSF address.

13 years agos3-waf: no need to compile librpc/gen_ndr/cli_dfs.c anymore.
Günther Deschner [Wed, 5 Jan 2011 16:26:39 +0000 (17:26 +0100)]
s3-waf: no need to compile librpc/gen_ndr/cli_dfs.c anymore.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Thu Jan  6 15:20:14 CET 2011 on sn-devel-104

13 years agos3-build: no need to compile librpc/gen_ndr/cli_dfs.c anymore.
Günther Deschner [Wed, 5 Jan 2011 16:26:16 +0000 (17:26 +0100)]
s3-build: no need to compile librpc/gen_ndr/cli_dfs.c anymore.

Guenther

13 years agos3-rpcclient: use dcerpc_dfs_X functions.
Günther Deschner [Wed, 5 Jan 2011 16:22:24 +0000 (17:22 +0100)]
s3-rpcclient: use dcerpc_dfs_X functions.

Guenther

13 years agopidl:Samba4/Python: fix memory leak in _ndr_print functions
Stefan Metzmacher [Thu, 6 Jan 2011 12:45:55 +0000 (13:45 +0100)]
pidl:Samba4/Python: fix memory leak in _ndr_print functions

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Thu Jan  6 14:34:31 CET 2011 on sn-devel-104

13 years agopidl/wscript: only warn about grammar file changes
Stefan Metzmacher [Thu, 6 Jan 2011 12:41:08 +0000 (13:41 +0100)]
pidl/wscript: only warn about grammar file changes

autobuild should protect us from having grammar files
and generated files out of sync.

metze

13 years agos3: Fix some nonempty blank lines
Volker Lendecke [Wed, 5 Jan 2011 13:38:33 +0000 (14:38 +0100)]
s3: Fix some nonempty blank lines

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Wed Jan  5 16:03:24 CET 2011 on sn-devel-104

13 years agos4/ldapcmp: Correct fix for creds2
Anatoliy Atanasov [Wed, 5 Jan 2011 14:16:59 +0000 (16:16 +0200)]
s4/ldapcmp: Correct fix for creds2

We need to set domain and workstation to creds2 otherwise we get Segfault
because they are not initialized correctly.

13 years agoRevert "s4/ldapcmp: Fix the parsing of the second set of credentials"
Anatoliy Atanasov [Wed, 5 Jan 2011 13:32:42 +0000 (15:32 +0200)]
Revert "s4/ldapcmp: Fix the parsing of the second set of credentials"

This reverts commit 1cbce84683ef4fa49b85d87988c5e8db7057530a.
Wrong assumption about a segmentation fault

13 years agoRevert "s4/ldapcmp: Check if creds2 is actualy set by the command line"
Anatoliy Atanasov [Wed, 5 Jan 2011 13:32:06 +0000 (15:32 +0200)]
Revert "s4/ldapcmp: Check if creds2 is actualy set by the command line"

This reverts commit f8275bae5d7b471967be7222170d049c18b8882f.
Wrong assumption about a segmentation fault.

13 years agoscript/autobuild.py: add pidl tests
Stefan Metzmacher [Wed, 5 Jan 2011 08:30:48 +0000 (09:30 +0100)]
script/autobuild.py: add pidl tests

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan  5 14:29:54 CET 2011 on sn-devel-104

13 years agoscript/autobuild.py: fix path to clean-source-tree.sh from within lib/tevent/
Stefan Metzmacher [Wed, 5 Jan 2011 11:43:43 +0000 (12:43 +0100)]
script/autobuild.py: fix path to clean-source-tree.sh from within lib/tevent/

metze

13 years agopidl/wscript: let the developer use the standalone build with yapp
Stefan Metzmacher [Wed, 5 Jan 2011 11:00:01 +0000 (12:00 +0100)]
pidl/wscript: let the developer use the standalone build with yapp

Waf isn't happy when files in the source directory are changed.

metze

13 years agobuildtools/wafsamba: import 'sys' and 'Logs' if we use them
Stefan Metzmacher [Wed, 5 Jan 2011 11:16:15 +0000 (12:16 +0100)]
buildtools/wafsamba: import 'sys' and 'Logs' if we use them

We should avoid generating a backtrace in a normal
error case, just because sys.exit(1) isn't known.

metze

13 years agopidl:Samba4/Python: avoid ';;' in generated C code.
Stefan Metzmacher [Wed, 5 Jan 2011 09:08:08 +0000 (10:08 +0100)]
pidl:Samba4/Python: avoid ';;' in generated C code.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Wed Jan  5 11:10:34 CET 2011 on sn-devel-104

13 years agopidl:Samba4/Python: fix segfault when setting pointers to scalars.
Stefan Metzmacher [Wed, 5 Jan 2011 09:05:47 +0000 (10:05 +0100)]
pidl:Samba4/Python: fix segfault when setting pointers to scalars.

metze

13 years agopidl: regenerate lib/Parse/Pidl/Expr.pm from expr.yp
Stefan Metzmacher [Wed, 5 Jan 2011 08:26:02 +0000 (09:26 +0100)]
pidl: regenerate lib/Parse/Pidl/Expr.pm from expr.yp

metze

13 years agopidl: sync idl.yp with the CPP changes
Stefan Metzmacher [Wed, 5 Jan 2011 08:24:22 +0000 (09:24 +0100)]
pidl: sync idl.yp with the CPP changes

This is taken from commit 21b0d5e3b10711e6ce3bfad0c1ee2da09a60e232.

metze

13 years agotalloc: change version to 2.0.5 after a critical bugfix
Stefan Metzmacher [Wed, 5 Jan 2011 09:23:54 +0000 (10:23 +0100)]
talloc: change version to 2.0.5 after a critical bugfix

metze

13 years agotalloc: fixed a use after free error
Andrew Tridgell [Wed, 5 Jan 2011 05:33:13 +0000 (16:33 +1100)]
talloc: fixed a use after free error

this is the minimal fix for the problem Rusty found. I previously
thought that the best fix would be to change tc->parent to be valid
for all pointers, but that is expensive for realloc with large numbers
of child pointers, which is much more commmon than I expected it to
be.

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Jan  5 07:22:27 CET 2011 on sn-devel-104

13 years agotalloc: added a test for the use after free Rusty found
Andrew Tridgell [Wed, 22 Dec 2010 04:29:37 +0000 (15:29 +1100)]
talloc: added a test for the use after free Rusty found

13 years agoupgradeprovision: Fix use of dict.get().
Jelmer Vernooij [Wed, 5 Jan 2011 01:48:03 +0000 (02:48 +0100)]
upgradeprovision: Fix use of dict.get().

Avoid modifying list while iterating over it.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Jan  5 03:37:35 CET 2011 on sn-devel-104

13 years agos4-python: Allow setting TEST_DEBUG_LEVEL to override debug level for tests.
Jelmer Vernooij [Wed, 5 Jan 2011 00:09:25 +0000 (01:09 +0100)]
s4-python: Allow setting TEST_DEBUG_LEVEL to override debug level for tests.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Jan  5 01:58:44 CET 2011 on sn-devel-104

13 years agotalloc: Clarify error message on access after free.
Jelmer Vernooij [Wed, 5 Jan 2011 00:01:28 +0000 (01:01 +0100)]
talloc: Clarify error message on access after free.

13 years agos3:build: don't use cli_dssetup.c any more
Stefan Metzmacher [Tue, 4 Jan 2011 12:56:05 +0000 (13:56 +0100)]
s3:build: don't use cli_dssetup.c any more

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jan  4 22:21:48 CET 2011 on sn-devel-104

13 years agos3:net_utils: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()
Stefan Metzmacher [Tue, 4 Jan 2011 16:18:22 +0000 (17:18 +0100)]
s3:net_utils: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()

metze

13 years agos3:winbindd: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()
Stefan Metzmacher [Tue, 4 Jan 2011 12:55:15 +0000 (13:55 +0100)]
s3:winbindd: use dcerpc_dssetup_DsRoleGetPrimaryDomainInformation()

metze

13 years agos3:rpcclient: use dcerpc_binding_handle based client stubs in cmd_dssetup.c
Stefan Metzmacher [Tue, 4 Jan 2011 12:51:34 +0000 (13:51 +0100)]
s3:rpcclient: use dcerpc_binding_handle based client stubs in cmd_dssetup.c

metze

13 years agos3:build: don't use cli_epmapper.c anymore
Stefan Metzmacher [Tue, 4 Jan 2011 12:36:24 +0000 (13:36 +0100)]
s3:build: don't use cli_epmapper.c anymore

metze

13 years agos3:rpcclient: improve "epmmap" output
Stefan Metzmacher [Tue, 4 Jan 2011 20:24:17 +0000 (21:24 +0100)]
s3:rpcclient: improve "epmmap" output

metze

13 years agos3:rpcclient: use dcerpc_binding_handle bases client stubs in cmd_epmapper.c
Stefan Metzmacher [Tue, 4 Jan 2011 12:33:46 +0000 (13:33 +0100)]
s3:rpcclient: use dcerpc_binding_handle bases client stubs in cmd_epmapper.c

metze

13 years agos3:rpc_client: use dcerpc_epm_Map() and don't ignore 'result' anymore.
Stefan Metzmacher [Tue, 4 Jan 2011 12:32:28 +0000 (13:32 +0100)]
s3:rpc_client: use dcerpc_epm_Map() and don't ignore 'result' anymore.

metze

13 years agos3-rpcecho: Only register rpcecho in the developer build.
Andreas Schneider [Tue, 4 Jan 2011 15:53:33 +0000 (16:53 +0100)]
s3-rpcecho: Only register rpcecho in the developer build.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Tue Jan  4 18:56:38 CET 2011 on sn-devel-104

13 years agos4/ldapcmp: Check if creds2 is actualy set by the command line
Anatoliy Atanasov [Tue, 4 Jan 2011 15:45:16 +0000 (17:45 +0200)]
s4/ldapcmp: Check if creds2 is actualy set by the command line

When parsing the command line for the second set of credentials
the parser returns wrong user if the second set of parameters isn't set.
So check if the password is set instead.

Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Autobuild-Date: Tue Jan  4 18:11:26 CET 2011 on sn-devel-104

13 years agos3:build: don't use cli_ntsvcs.c any more.
Stefan Metzmacher [Tue, 4 Jan 2011 09:55:48 +0000 (10:55 +0100)]
s3:build: don't use cli_ntsvcs.c any more.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jan  4 17:23:17 CET 2011 on sn-devel-104

13 years agos3:rpcclient: use dcerpc_binding_handle client stubs in cmd_ntsvcs.c
Stefan Metzmacher [Tue, 4 Jan 2011 09:52:14 +0000 (10:52 +0100)]
s3:rpcclient: use dcerpc_binding_handle client stubs in cmd_ntsvcs.c

metze

13 years agos3:build: don't use cli_wbint.c any more
Stefan Metzmacher [Tue, 4 Jan 2011 12:58:25 +0000 (13:58 +0100)]
s3:build: don't use cli_wbint.c any more

metze

13 years agos4/ldapcmp: Fix the parsing of the second set of credentials
Anatoliy Atanasov [Tue, 4 Jan 2011 14:50:03 +0000 (16:50 +0200)]
s4/ldapcmp: Fix the parsing of the second set of credentials

We need this second set of credentials so we can do comparison
between DCs in two different domains.

Autobuild-User: Anatoliy Atanasov <anatoliy.atanasov@postpath.com>
Autobuild-Date: Tue Jan  4 16:36:06 CET 2011 on sn-devel-104

13 years agos3-waf: convert SAMBA_VERSION into a subsystem.
Günther Deschner [Tue, 4 Jan 2011 12:11:35 +0000 (13:11 +0100)]
s3-waf: convert SAMBA_VERSION into a subsystem.

Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Tue Jan  4 15:10:52 CET 2011 on sn-devel-104

13 years agos3-waf: convert PASSCHANGE into a subsystem.
Günther Deschner [Tue, 4 Jan 2011 12:05:51 +0000 (13:05 +0100)]
s3-waf: convert PASSCHANGE into a subsystem.

Guenther

13 years agos3-waf: add UTIL_TDB subsystem.
Günther Deschner [Tue, 4 Jan 2011 11:56:29 +0000 (12:56 +0100)]
s3-waf: add UTIL_TDB subsystem.

Guenther

13 years agos3-waf: Fixed the static rpc service build.
Andreas Schneider [Mon, 20 Dec 2010 13:29:34 +0000 (14:29 +0100)]
s3-waf: Fixed the static rpc service build.

Autobuild-User: Andreas Schneider <asn@samba.org>
Autobuild-Date: Tue Jan  4 12:09:48 CET 2011 on sn-devel-104

13 years agos3-smbd: Call the rpc service shutdown functions.
Andreas Schneider [Mon, 20 Dec 2010 10:42:17 +0000 (11:42 +0100)]
s3-smbd: Call the rpc service shutdown functions.

13 years agos3-build: Remove broken RPC modules support.
Andreas Schneider [Mon, 20 Dec 2010 10:24:07 +0000 (11:24 +0100)]
s3-build: Remove broken RPC modules support.

With the current module support for rpc we're not able to call the init
functions with the rpc callback structure. So init functions and
shutdown functions aren't called. These init functions are needed to
setup pre requirements like migrating the printer databases and register
at the endpoint mapper. The shutdown functions cleanup memory and
deregister from the endpoint mapper.