Jelmer Vernooij [Mon, 1 Mar 2010 15:24:29 +0000 (16:24 +0100)]
Fix the build, add filtered subunit runner.
Jelmer Vernooij [Mon, 1 Mar 2010 13:42:38 +0000 (14:42 +0100)]
Add testrepository configuration.
Jelmer Vernooij [Mon, 1 Mar 2010 04:04:23 +0000 (05:04 +0100)]
More formatting fixes, pointed out by pylint.
Stefan Metzmacher [Sat, 27 Feb 2010 09:02:40 +0000 (10:02 +0100)]
s4:RPC-NETLOGON: remove useless rpc callback
If we got a failure from one request we bail out early.
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:01:50 +0000 (10:01 +0100)]
s4:RPC-ECHO: don't look at the internals of 'struct rpc_request'
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:00:42 +0000 (10:00 +0100)]
s4:libnet_become_dc: don't look at the internals of 'struct rpc_request'
metze
Stefan Metzmacher [Sat, 27 Feb 2010 08:46:30 +0000 (09:46 +0100)]
s4:drepl_out_helpers: don't look at the internals of 'struct rpc_request'
metze
Stefan Metzmacher [Sat, 27 Feb 2010 08:43:21 +0000 (09:43 +0100)]
s4:drepl_notify: don't look at the internals of 'struct rpc_request'
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:59:14 +0000 (10:59 +0100)]
s4:librpc/rpc: make use of explicit dcerpc_*_recv functions
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:59:14 +0000 (10:59 +0100)]
s4:torture/rpc: make use of explicit dcerpc_*_recv functions
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:59:14 +0000 (10:59 +0100)]
s4:winbind: make use of explicit dcerpc_*_recv functions
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:59:14 +0000 (10:59 +0100)]
s4:dsdb/repl: make use of explicit dcerpc_*_recv functions
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:59:14 +0000 (10:59 +0100)]
s4:libnet: make use of explicit dcerpc_*_recv functions
metze
Stefan Metzmacher [Mon, 1 Mar 2010 12:56:01 +0000 (13:56 +0100)]
s4:libnet_become_dc: make use of explicit dcerpc_*_recv functions
metze
Stefan Metzmacher [Sat, 27 Feb 2010 09:34:04 +0000 (10:34 +0100)]
pidl:NDR/Client.pm: generate explicit _recv functions
metze
Günther Deschner [Mon, 1 Mar 2010 13:35:59 +0000 (14:35 +0100)]
s4-smbtorture: add stricter SetPrinterDataEx tests to spoolss tests.
Guenther
Günther Deschner [Mon, 1 Mar 2010 13:27:43 +0000 (14:27 +0100)]
s4-smbtorture: add test_SetPrinterDataEx to RPC-SPOOLSS-PRINTER.
Guenther
Günther Deschner [Mon, 1 Mar 2010 13:26:30 +0000 (14:26 +0100)]
s4-smbtorture: return needed size pointer from test_GetPrinterDataEx.
Guenther
Günther Deschner [Mon, 1 Mar 2010 11:53:11 +0000 (12:53 +0100)]
s4-smbtorture: test at least three different regtypes in test_SetPrinterDataEx.
Guenther
Volker Lendecke [Mon, 1 Mar 2010 13:28:22 +0000 (14:28 +0100)]
s3: Add connections_forall_read()
In a cluster, this makes a large difference: For r/w traverse, we have to do a
fetch_locked on every record which for most users of connections_forall is just
overkill.
Volker Lendecke [Thu, 25 Feb 2010 15:31:12 +0000 (16:31 +0100)]
s3: Make the difference between r/o and r/w in connections_db_ctx more obvious
Volker Lendecke [Mon, 1 Mar 2010 12:57:36 +0000 (13:57 +0100)]
s3: Make connections_forall open connections.tdb r/w
connections_forall is called from count_current_connections() which potentially
deletes dead records. This needs r/w access to connections.tdb.
connections_traverse says it does not provide this. Does not really matter in
the smbd case, because we have opened it before r/w, so this is "just" cleanup.
Stefan Metzmacher [Mon, 1 Mar 2010 11:22:23 +0000 (12:22 +0100)]
selftest/gdb_backtrace: call "info locals" too
metze
Anatoliy Atanasov [Mon, 1 Mar 2010 12:16:59 +0000 (14:16 +0200)]
s4/rodc: Implement samdb_rodc with ldb context
Anatoliy Atanasov [Mon, 1 Mar 2010 11:10:39 +0000 (13:10 +0200)]
s4/libnet: Fix misleading comment
Volker Lendecke [Mon, 1 Mar 2010 11:15:41 +0000 (12:15 +0100)]
s3: Remove unused "mypid" from count_current_connections() state
Jelmer Vernooij [Mon, 1 Mar 2010 03:56:42 +0000 (04:56 +0100)]
python: Add 'make pylint' convenience rule.
Jelmer Vernooij [Mon, 1 Mar 2010 03:46:40 +0000 (04:46 +0100)]
General cleanups of python code, hinted by pyflakes.
Jelmer Vernooij [Mon, 1 Mar 2010 03:45:43 +0000 (04:45 +0100)]
Add 'pyflakes' rule.
Jelmer Vernooij [Mon, 1 Mar 2010 03:39:53 +0000 (04:39 +0100)]
ntacl: Use existing infrastructure.
Jelmer Vernooij [Mon, 1 Mar 2010 02:46:56 +0000 (03:46 +0100)]
Remove __contains__ from mock object for consistency with actual
implementation.
Jelmer Vernooij [Mon, 8 Feb 2010 02:26:18 +0000 (03:26 +0100)]
getntacl: Remove manpage for removed utility.
Ricardo Jorge [Mon, 8 Feb 2010 00:13:48 +0000 (01:13 +0100)]
Fix SharesContainer.__len__.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Jelmer Vernooij [Mon, 1 Mar 2010 02:41:52 +0000 (03:41 +0100)]
More formatting fixes.
Jelmer Vernooij [Mon, 1 Mar 2010 02:29:47 +0000 (03:29 +0100)]
Fix formatting.
Jelmer Vernooij [Mon, 1 Mar 2010 02:25:07 +0000 (03:25 +0100)]
upgradeprovision: Remove unused imports, use shutil.rmtree rather than
rmall.
Matthieu Patou [Sun, 21 Feb 2010 18:29:36 +0000 (21:29 +0300)]
upgradeprovision: Move to pythondoc format
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Matthieu Patou [Sun, 21 Feb 2010 18:28:35 +0000 (21:28 +0300)]
upgradeprovision: Allow script to be called with pydoc
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Matthieu Patou [Sat, 20 Feb 2010 07:51:25 +0000 (10:51 +0300)]
upgrade provision: change the meaning of handle_security_desc to be similar to handle_special_case
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Matthieu Patou [Tue, 23 Feb 2010 13:45:51 +0000 (16:45 +0300)]
upgradeprovision: code cleanup
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Matthieu Patou [Sun, 31 Jan 2010 19:06:01 +0000 (22:06 +0300)]
upgradeprovision: split the big script to put reusable functions appart
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Volker Lendecke [Fri, 26 Feb 2010 16:53:34 +0000 (17:53 +0100)]
s3: Use talloc_tos() in yield_connection()
Volker Lendecke [Fri, 26 Feb 2010 16:47:44 +0000 (17:47 +0100)]
s3: Remove unused count_all_current_connections()
Volker Lendecke [Sun, 28 Feb 2010 17:45:41 +0000 (18:45 +0100)]
s3: Fix the CHAIN1 torture test
I've tried to solve this just within cli_smb_recv(), but I could not find a way
to sanely determine when we are receiving the last entry in the chain just from
looking at the blob. This solves it in an a bit more brutal way...
Volker Lendecke [Sat, 27 Feb 2010 18:26:01 +0000 (19:26 +0100)]
tdb: If tdb_parse_record does not find a record, return -1 instead of 0
Volker Lendecke [Sun, 28 Feb 2010 13:38:14 +0000 (14:38 +0100)]
s3: Fix but 7145 -- duplicate sam and unix accounts
For me this survives the
TESTS=posix_s3 POSIX_SUBTESTS="RPC-SAMR-LARGE-DC LOCAL-NSS-WRAPPER" make test
reproducer. Günther, please check!
Volker
Holger Hetterich [Thu, 18 Feb 2010 14:13:59 +0000 (15:13 +0100)]
s3: vfs_full_audit.c: implement negated vfs_ops in the success/failure list
Supports negated arguments in configuration like:
full_audit:success = all !readdir !telldir !closedir
Update the manpage accordingly.
Part of BSO#4025
Volker Lendecke [Sat, 27 Feb 2010 10:17:27 +0000 (11:17 +0100)]
s3: Copy the mapping.c license header to mapping.h
We need some license header there. If this does incorrect copyright
attributions, please correct this.
Roel van Meer [Fri, 26 Feb 2010 22:54:22 +0000 (14:54 -0800)]
Fix one of the valgrind warnings from bug #6814 - Fixes for problems reported by valgrind
The timeval passed to event_add_to_select_args() must be initialized
as event_add_to_select_args() uses a timeval_min() on this and next_event.
Stefan Metzmacher [Fri, 26 Feb 2010 09:53:06 +0000 (10:53 +0100)]
s4:ldb_dn: fix an uninitialized variable (found by make valgrindtest)
metze
Stefan Metzmacher [Fri, 26 Feb 2010 14:48:02 +0000 (15:48 +0100)]
s4:ldb_dn: remove dn->ext_linearized when ext_components is modified.
metze
Stefan Metzmacher [Thu, 25 Feb 2010 22:19:53 +0000 (23:19 +0100)]
s4:ldb_dn: reset dn->ext_comp_num in ldb_dn_explode()
metze
Stefan Metzmacher [Fri, 26 Feb 2010 15:48:09 +0000 (16:48 +0100)]
s4:dsdb/schema: fix validation of DNs
ldb_dn_extended_filter() removes all but the listed components,
I didn't noticed that when writting the code.
Doing a ldb_dn_remove_extended_components(dn2) is wrong.
This was hidden by some bugs in the ldb_dn code.
metze
Matthias Dieter Wallnöfer [Fri, 26 Feb 2010 20:00:10 +0000 (21:00 +0100)]
s4:provision.zone - fix port of "_ldap._tcp.gc._msdcs"
Matthias Dieter Wallnöfer [Fri, 26 Feb 2010 19:41:38 +0000 (20:41 +0100)]
s4:script/installmisc.sh - install "dns_update_list" to target setup folder
Matthias Dieter Wallnöfer [Fri, 26 Feb 2010 18:15:01 +0000 (19:15 +0100)]
.gitignore - ignore display of "mit_samba.so"
Günther Deschner [Fri, 26 Feb 2010 13:45:07 +0000 (14:45 +0100)]
spoolss: fix build and version in spoolss_PrinterInfo0 (aka PRINTER_INFO_STRESS).
Guenther
Günther Deschner [Fri, 26 Feb 2010 13:44:22 +0000 (14:44 +0100)]
spoolss: add spoolss_Build to IDL.
Guenther
Andreas Schneider [Fri, 26 Feb 2010 09:21:10 +0000 (10:21 +0100)]
s4-winbind: Fixed the memory context of tstream_bsd_existing()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 26 Feb 2010 09:19:55 +0000 (10:19 +0100)]
s4-ntp: Fixed the memory context of tstream_bsd_existing()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Fri, 26 Feb 2010 09:35:01 +0000 (10:35 +0100)]
s4-kdc: Fixed the memory context of tstream_bsd_existing()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Matthias Dieter Wallnöfer [Fri, 26 Feb 2010 10:53:49 +0000 (11:53 +0100)]
s4:dcesrv_samr.c - Remove unused variable
Matthieu Patou [Thu, 25 Feb 2010 17:41:57 +0000 (20:41 +0300)]
s4: Winbind allow to behave more correctly when we have more than a few users
Andrew Bartlett [Thu, 25 Feb 2010 09:22:52 +0000 (20:22 +1100)]
s4:python Add bindings to set GENSEC flags on credentials in python
This should allow these to be manipulated by python scripts that need
encrypted connections.
Andrew Bartlett
Günther Deschner [Fri, 26 Feb 2010 01:51:21 +0000 (02:51 +0100)]
s3: remove unused schannel_auth_struct.
Guenther
Günther Deschner [Fri, 26 Feb 2010 01:50:28 +0000 (02:50 +0100)]
testprogs: print the directory paths as well in spoolss test.
Guenther
Stefan Metzmacher [Fri, 26 Feb 2010 09:09:36 +0000 (10:09 +0100)]
libcli/auth: print the error in the debug message
metze
Andreas Schneider [Thu, 4 Feb 2010 16:03:04 +0000 (17:03 +0100)]
s4-smb: Migrate named_pipe_server to tsocket.
This is an improved version of commit
69d5cea2e59162f19460e7ce4b6382fc5fdd6ca0,
which was reverted by commit
71c20f703b0c603d6aada63ed5634070a26df052.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Andreas Schneider [Thu, 25 Feb 2010 13:32:39 +0000 (14:32 +0100)]
tsocket: Improve the tsocket_address_bsd_sockaddr documentation.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Stefan Metzmacher [Wed, 24 Feb 2010 14:09:15 +0000 (15:09 +0100)]
s4:provision: use generate_random_password()
metze
Stefan Metzmacher [Wed, 24 Feb 2010 13:44:22 +0000 (14:44 +0100)]
s4:pyglue: add generate_random_password()
metze
Stefan Metzmacher [Wed, 24 Feb 2010 14:12:17 +0000 (15:12 +0100)]
s4:torture/rpc: use generate_random_password()
metze
Stefan Metzmacher [Wed, 24 Feb 2010 14:09:50 +0000 (15:09 +0100)]
s4:libnet: use generate_random_password()
metze
Stefan Metzmacher [Thu, 25 Feb 2010 14:58:38 +0000 (15:58 +0100)]
lib/util: add generate_random_password()
metze
Andrew Tridgell [Fri, 26 Feb 2010 07:19:23 +0000 (18:19 +1100)]
devel: get the ownership of the directories right in tmpfs.sh
Andrew Tridgell [Fri, 26 Feb 2010 06:49:01 +0000 (17:49 +1100)]
s4-provision: fixed use of rndc command from python
rndc command is now a list
Andrew Tridgell [Fri, 26 Feb 2010 06:22:44 +0000 (17:22 +1100)]
s4-provision: also create the dns_update_list when running net vampire
We need the list when joining a windows domain, so we can
automatically maintain the right DNS entries on the Windows DNS server
Andrew Tridgell [Fri, 26 Feb 2010 06:09:51 +0000 (17:09 +1100)]
s4-dns: fixed CNAME automatic DNS updates
Andrew Tridgell [Fri, 26 Feb 2010 06:09:35 +0000 (17:09 +1100)]
s4-dns: use a loadparm list for samba_runcmd() commands
This allows commands with multiple arguments and quoting to be used,
while still avoiding running a shell (and this having shell expansion
problems)
Andrew Tridgell [Fri, 26 Feb 2010 03:27:28 +0000 (14:27 +1100)]
s4-provision: added dns_update_list
This contains the list of DNS names we should have as a DC
Andrew Tridgell [Fri, 26 Feb 2010 03:25:07 +0000 (14:25 +1100)]
s4-provision: setup the dns_update_list at provision time
This file is substituted at runtime by samba_dnsupdate
Andrew Tridgell [Fri, 26 Feb 2010 03:24:38 +0000 (14:24 +1100)]
s4-provision: if we aren't doing variable substitution then don't check for vars
Andrew Tridgell [Fri, 26 Feb 2010 02:58:32 +0000 (13:58 +1100)]
dns: auto-delete incorrect SRV entries for our hostname
Andrew Tridgell [Fri, 26 Feb 2010 02:30:44 +0000 (13:30 +1100)]
s4-dns: add automatic dynamic DNS updating script
This script checks a list of DNS names that we should have, and does
dynamic DNS updates using our machine account credentials to add any
missing DNS entries.
This allows us to correctly add all the DNS entries we need when we
join an existing domain as a DC
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 26 Feb 2010 02:27:26 +0000 (13:27 +1100)]
s4-provision: fixed port number for gc ldap DNS SRV entry
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 26 Feb 2010 02:25:42 +0000 (13:25 +1100)]
s4-param: added 'nsupdate command' option, default to /usr/bin/nsupdate -g
Andrew Tridgell [Thu, 25 Feb 2010 23:15:43 +0000 (10:15 +1100)]
samdb: added get_ntds_GUID() method
Andrew Tridgell [Thu, 25 Feb 2010 07:35:14 +0000 (18:35 +1100)]
py-samdb: added server_site_name method
Andrew Tridgell [Thu, 25 Feb 2010 07:35:01 +0000 (18:35 +1100)]
pyglue: added py_samdb_server_site_name()
Andrew Tridgell [Thu, 25 Feb 2010 07:15:47 +0000 (18:15 +1100)]
py-samdb: added get_invocation_id() method
Andrew Tridgell [Thu, 25 Feb 2010 07:15:19 +0000 (18:15 +1100)]
pyglue: added py_samdb_ntds_invocation_id()
Andrew Tridgell [Thu, 25 Feb 2010 05:29:47 +0000 (16:29 +1100)]
pyglue: don't return 127.0.0.0/8 IPs in interface_ips()
We don't generally want loopback addresses in the python code
Andrew Tridgell [Thu, 25 Feb 2010 05:16:33 +0000 (16:16 +1100)]
s4-krb5: propogate errors from a lot more kerberos functions
We need to be able to give sensible error messages when a kerberos
calls fails. This propogates the kerberos error up the stack to the
caller.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Thu, 25 Feb 2010 04:13:45 +0000 (15:13 +1100)]
dns: install samba_dnsupdate
Andrew Tridgell [Thu, 25 Feb 2010 04:12:53 +0000 (15:12 +1100)]
dns: dummy samba_dnsupdate script
The merge from metze of my dns tree means we now depend on this. This
is a placeholder until Andrew and I have finished the full script.
Andrew Tridgell [Fri, 26 Feb 2010 01:36:17 +0000 (12:36 +1100)]
s4-dsdb: fixed the fetch of the server site name
when the ntds objects were moved by a recent change it broke the
calculation of the server site
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Andrew Tridgell [Fri, 26 Feb 2010 01:31:57 +0000 (12:31 +1100)]
Revert "s4:AD content - adequate some revision levels to match Windows Server 2008"
This reverts commit
973ea198677c581064fad62cdac30baac7103ef8.
This change breaks DRS dcpromo.
Stefan Metzmacher [Thu, 25 Feb 2010 17:10:56 +0000 (18:10 +0100)]
s4:RPC-DSSYNC: pass the ip address to the cldap code instead of a name
metze
Stefan Metzmacher [Thu, 25 Feb 2010 11:47:38 +0000 (12:47 +0100)]
s4:torture: use a connected CLDAP socket.
This is needed because we don't (want) to specify an explicit
local address. And the socket family (ipv4 vs. ipv6) needs to
be autodetected based on the remote address before the
socket() syscall.
Otherwise we would try to connect to a ipv4 address through an
ipv6only socket.
metze
Stefan Metzmacher [Thu, 25 Feb 2010 11:47:38 +0000 (12:47 +0100)]
s4:libnet: use a connected CLDAP socket.
This is needed because we don't (want) to specify an explicit
local address. And the socket family (ipv4 vs. ipv6) needs to
be autodetected based on the remote address before the
socket() syscall.
Otherwise we would try to connect to a ipv4 address through an
ipv6only socket.
metze