Richard Sharpe
36101d3fa4
Add an open and close method to samba.smb.SMB so we can open and close files.
...
Also, fix up some documentation.
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Sun Apr 1 16:29:52 CEST 2012 on sn-devel-104
2012-04-01 16:29:52 +02:00
Kai Blin
60eb1621d2
s4 dns: Allow updating PTR records.
...
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Fri Mar 30 19:26:52 CEST 2012 on sn-devel-104
2012-03-30 19:26:52 +02:00
Amitay Isaacs
e36622f926
s4-upgradedns: Make sure the attribute exists before accessing it
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar 28 10:27:40 CEST 2012 on sn-devel-104
2012-03-28 10:27:40 +02:00
Kai Blin
26f7a676f9
s4 dns: Only do recursive queries when allowed/desired
...
If recursive queries are switched off in smb.conf or the client doesn't ask for
recursion, don't recurse.
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Tue Mar 27 17:39:26 CEST 2012 on sn-devel-104
2012-03-27 17:39:26 +02:00
Kai Blin
06dd4d8ee1
s4 dns: Check smb.conf if we should allow recursion
2012-03-27 16:03:16 +02:00
Kai Blin
533b2e6612
s4 dns: Allow changing the dns operation flags in handlers
2012-03-27 16:03:16 +02:00
Kai Blin
8d9da67185
s4 dns: Only forward for zones we don't own
2012-03-27 16:03:16 +02:00
Kai Blin
a991391605
s4 dns: Forward questions we can't answer to another server
...
This makes use of libdns and currently hardcodes the forward server, but
it works. :)
2012-03-27 16:03:15 +02:00
Jelmer Vernooij
acd63fdb86
wafsamba: Cope with slight differences in gdb output regarding incomplete sequences.
...
Bug: https://bugzilla.samba.org/show_bug.cgi?id=8820
2012-03-26 18:28:06 +02:00
Andrew Bartlett
7290a62284
s4-dsdb: use constant-time search for descriptor -> get_last_structural_class()
...
The objectClass list is sorted at this point, as we are called below
the objectclass module here, or are working from a search result.
Andrew Bartlett
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Mar 26 05:38:13 CEST 2012 on sn-devel-104
2012-03-26 05:38:13 +02:00
Richard Sharpe
cb7220d721
Fix the PyDoc comments in samba.smb.SMB and add a security_info argument to both get_acl and set_acl to allow the caller to specify what info is wanted. Defaults to 0 which means all info.
...
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Mon Mar 26 04:05:25 CEST 2012 on sn-devel-104
2012-03-26 04:05:24 +02:00
Matthias Dieter Wallnöfer
d86e701b7c
s4:ldap.py - re-introduce the "(dn=CN=ldaptestUSER3,CN=Users,DC=wallnoefer2,DC=local)" test
...
This syntax is not supported by Windows AD and should also be denied by
s4/LDB.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Mar 26 02:30:53 CEST 2012 on sn-devel-104
2012-03-26 02:30:53 +02:00
Matthias Dieter Wallnöfer
d6fde2d4c2
LDB/s4 - deny the "(dn=...)" syntax on search filters when in AD mode
...
Achieve this by introducing a "disallowDNFilter" flag.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:29 +02:00
Matthias Dieter Wallnöfer
438971e214
LDB/s4 - do not use the "(dn=...)" syntax on filters anymore
...
Make it AD-compatible using "(distinguishedName=...)".
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:29 +02:00
Matthias Dieter Wallnöfer
fa1c7615d0
s4:ldap.py - test the already mentioned structural object class sorting behaviour
...
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:29 +02:00
Matthias Dieter Wallnöfer
206421c8fd
s4:dsdb - enhance "get_last_structural_class()" for optimisations
...
If the objectclass entry has been sorted before we are able to determine
the (last) structural or 88 object class in constant time.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:29 +02:00
Matthias Dieter Wallnöfer
0f8ffa9ce1
s4:objectclass LDB module - fix up the sorting in respect to structural or 88 objectclasses
...
Please have a look at MS-ADTS 3.1.1.1.4.
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:29 +02:00
Matthias Dieter Wallnöfer
52340b86a2
s4:objectclass LDB module - clean up "objectclass_sort()"
...
Make it easier to comprehend
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2012-03-26 00:57:28 +02:00
Jelmer Vernooij
d9975a13fd
LIBCLI_SMB2: Depend on cli_smb_common rather than libsmb.
...
The latter pulls in a fair number of other libraries, including popt and the Samba registry library.
2012-03-25 17:15:42 +02:00
Björn Baumbach
217d04138b
s4-samba-tool: add password verification in change user pass
...
Signed-off-by: Michael Adam <obnox@samba.org>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Mar 21 17:43:35 CET 2012 on sn-devel-104
2012-03-21 17:43:35 +01:00
Björn Baumbach
5b4d5bee44
s4-samba-tool: add password verification in add user
...
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-21 16:11:25 +01:00
Björn Baumbach
70e71240e2
s4-provision: don't ask only 3 times for passwd in interactive mode
...
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-21 16:11:25 +01:00
Björn Baumbach
0f35c4a242
s4-provision: add password verification in interactive mode
...
Since we do not print the password out (anymore), it is necessary to
verify the entered password.
Signed-off-by: Michael Adam <obnox@samba.org>
2012-03-21 16:11:24 +01:00
Amitay Isaacs
b114043c46
s4-upgradedns: Add DNS partitions in msDS-hasMasterNCs in NTDS settings
...
Autobuild-User: Amitay Isaacs <amitay@samba.org>
Autobuild-Date: Wed Mar 21 03:16:22 CET 2012 on sn-devel-104
2012-03-21 03:16:22 +01:00
Amitay Isaacs
ffce812c22
s4-rpc: dnsserver: Fix IPv6 reverse zone handling
...
Thanks to Marcel Ritter <marcel.ritter@rrze.fau.de> for the patch.
2012-03-21 11:41:50 +11:00
Amitay Isaacs
8a39c5c3a1
s4-upgradedns: Allow fixing of dns provision after domain join
...
This change allows samba_upgradedns script to be run even on existing
dns provision (DLZ_BIND9 or SAMBA_INTERNAL) without any side effects.
This allows to "fix" dns provision after samba-tool domain join for
running BIND with DLZ plugin.
2012-03-21 11:41:50 +11:00
Jelmer Vernooij
d875327b10
Move NS_GUID_string and NS_GUID_from_string to dsdb-common.
2012-03-20 13:54:07 +01:00
Jelmer Vernooij
b4d35bee38
libndr: Rename policy_handle_empty to ndr_policy_handle_empty.
...
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20 13:54:07 +01:00
Jelmer Vernooij
95ca5fbadd
libndr: Rename ndr64_transfer_syntax and null_ndr_syntax_id so they have a ndr_ prefix.
...
This makes the NDR namespace a bit clearer, in preparation of ABI checking.
2012-03-20 13:54:07 +01:00
Michael Adam
ee0e1ca5d8
s4:selftest: add test for "samba-tool group list"
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Mon Mar 19 02:30:39 CET 2012 on sn-devel-104
2012-03-19 02:30:39 +01:00
Michael Adam
704f0683f0
s4:samba-tool: add simple command "group list"
2012-03-18 23:41:40 +01:00
Michael Adam
f4458a5cef
s4:selftest: add a new testsuite for the "samba-tool group" command
2012-03-18 23:41:40 +01:00
Matthieu Patou
eeec0d925e
upgrade provision didn't run findprovisionrange anymore
...
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sat Mar 17 09:51:46 CET 2012 on sn-devel-104
2012-03-17 09:51:46 +01:00
Matthieu Patou
552d223939
Rewrite findprovisionrange to use factorized functions
2012-03-17 00:19:09 -07:00
Matthieu Patou
31cab612fc
Factorize code from findprovisionusnranges in order to solve bug #8504
2012-03-17 00:18:39 -07:00
Michael Adam
15eaaa095f
s4:samba-tool: remove remains of patch conflict resolution
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Fri Mar 16 19:13:32 CET 2012 on sn-devel-104
2012-03-16 19:13:32 +01:00
Jelmer Vernooij
0c06eb48ab
Stop installing popt_common.h as its symbols are in a private library.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 17:39:31 CET 2012 on sn-devel-104
2012-03-16 17:39:31 +01:00
Jelmer Vernooij
0affe19304
Remove more unnecessary shebang lines in python files.
...
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Fri Mar 16 02:48:52 CET 2012 on sn-devel-104
2012-03-16 02:48:52 +01:00
Jelmer Vernooij
3530ac0149
samba.tests.source: Verify that only executable python files (and only executable files) have a shebang line.
2012-03-15 16:03:36 +01:00
Michael Adam
edfdbb82bb
s4:selftest: remove python shebang accidentially re-added to the "samba-tool user" test
...
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 16:17:54 CET 2012 on sn-devel-104
2012-03-15 16:17:54 +01:00
Michael Adam
d430c88cfe
s4:selftest: fix message typo in test for "samba-tool user list"
...
Spotted by kukks - thanks.
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Thu Mar 15 14:24:29 CET 2012 on sn-devel-104
2012-03-15 14:24:29 +01:00
Stefan Metzmacher
ebcfa61d9f
s4:librpc/rpc: avoid an unused talloc_reference() from dcerpc_request_send()
...
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
bb75905b6a
s4:librpc/rpc: pass a mem_ctx to dcerpc_request_send()
...
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
cd1d5a29d4
s4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_alter_context_*
...
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
6d631e52cf
s4:librpc/rpc: use tevent_req_defer_callback() in dcerpc_bind_*
...
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
198c5ace6f
s4:librpc/rpc: convert dcerpc_alter_context_send/recv to tevent_req
...
Many thanks to Andrew Bartlett <abartlet@samba.org> for the
debugging, which lead to the following line:
talloc_steal(state, raw_packet->data);
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
6b81d71f3e
s4:librpc/rpc: convert dcerpc_bind_send/recv to tevent_req
...
Many thanks to Andrew Bartlett <abartlet@samba.org> for the
debugging, which lead to the following line:
talloc_steal(state, raw_packet->data);
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
946eca438d
s4:librpc/rpc: also notify requests which are not shipped about a dead connection
...
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
080549f467
s4:librpc/rpc: ship requests via an immediate event
...
Deep inside dcerpc_ship_next_request() some code path
could trigger dcerpc_connection_dead(), which means
it's not safe to do any processing after calling dcerpc_ship_next_request().
metze
2012-03-15 07:35:28 +01:00
Stefan Metzmacher
553a8921a4
s4:librpc/rpc: if the connecion is dead we're done
...
There's no point in doing anymore processing,
it can just lead to crashes.
metze
2012-03-15 07:35:28 +01:00