1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

23366 Commits

Author SHA1 Message Date
Matthieu Patou
32f82fbec0 s4 upgradeprovision: fix the logging stuff so that it actually log
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-21 23:11:50 +02:00
James Peach
6227eac607 smbtorture: Fixx off-by-one command line parsing.
If we are not in shell mode we require both the target and test name
arguments. Make sure we process these from the correct index.
2010-06-21 11:09:45 -07:00
James Peach
0fc18ead76 smbtorture: Add "target" command to interactive shell.
Add a "target" command to set the target server to test. Refactor
the command line argument processing a little so that you can run
--shell without any additional arguments.
2010-06-21 08:58:10 -07:00
James Peach
7a25e2efe9 smbtorture: Enhance shell "help" command.
Sort the command list alphabetically. Let the help command print
usage info for other commands.
2010-06-21 08:58:10 -07:00
James Peach
bf35aa8603 smbtorture: Add "auth" command to the shell.
Add a new "auth" command to set the cmdline credentials from withing
the smbtorture shell.
2010-06-21 08:58:10 -07:00
James Peach
3f398ec36d smbtorture: Refactor interactive shell into independent commands.
Refactor the smbtorture interactive shell into a set of independent
command callbacks to make it easier to add more independent commands.
2010-06-21 08:58:10 -07:00
James Peach
9f69790355 smbtorture: Move interactive shell into a separate file. 2010-06-21 08:58:10 -07:00
James Peach
a5e14bded4 smbtorture: Print global options for interactive "list" command. 2010-06-21 08:58:10 -07:00
James Peach
12e15b0ac8 smbtorture: Add history support to shell mode. 2010-06-21 08:58:10 -07:00
James Peach
6f96293406 smbtorture: Add list command to smbtorture shell. 2010-06-21 08:58:10 -07:00
Matthias Dieter Wallnöfer
c38f94ed9b s4:dsdb_load_partition_usn - free the right memory context (tmp_ctx) 2010-06-21 11:10:02 +02:00
Kamen Mazdrashki
3aa8853f58 s4/dsdb: msg_idx->dn should be allocated in msg_idx mem context 2010-06-21 02:57:56 +03:00
Kamen Mazdrashki
cc7e2c10f2 s4/dsdb: Move schema accessors cleanup in separate function
This way dsdb_setup_sorted_accessors() will
free memory allocated for accessor arrays correctly
in case of failure,
2010-06-21 02:57:56 +03:00
Kamen Mazdrashki
267645ca55 s4/dsdb-schema: Index attributes on msDS-IntId value
O(n) search for dsdb_attribute by msDS-IntId value was
replaced by binary-search in ordered index.

I've choosen the approach of separate index on msDS-IntId values
as I think it is more clear what we are searching for.
And it should little bit faster as we can clearly determine
in which index to perform the search based on ATTID value -
ATTIDs based on prefixMap and ATTIDs based on msDS-IntId
are in separate ranges.

Other way to implement this index was to merge msDS-IntId values
in attributeID_id index.
This led me to a shorted but not so obvious implementation.
2010-06-21 02:57:55 +03:00
Matthias Dieter Wallnöfer
ecbe9a74c6 s4:kdc/db-glue.c - remove unreachable code
Would be nice if someone could check if this fits.
2010-06-20 22:33:03 +02:00
Matthias Dieter Wallnöfer
05f31c3f6d s4:registry/regf.c - add some casts to suppress build warnings on Solaris 2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2adfe47303 s4:registry/rpc.c - fix Solaris warnings by casts 2010-06-20 22:33:02 +02:00
Matthias Dieter Wallnöfer
2f49c8f58e s4:samr RPC server - fix Solaris build warning 2010-06-20 22:33:01 +02:00
Matthias Dieter Wallnöfer
871cdec414 s4:registry RPC server - quite some build warnings on Solaris 2010-06-20 22:33:01 +02:00
Matthias Dieter Wallnöfer
82fd483758 s4:lsa_lookup.c - fix type argument 2010-06-20 22:33:00 +02:00
Matthias Dieter Wallnöfer
0bf26edf6c s4:rpc_server/service_rpc.c - fix warnings on Solaris 2010-06-20 22:32:59 +02:00
Matthias Dieter Wallnöfer
c972e6ec23 s4:rpc_server/service_rpc.c - deactivate the 0-length struct
This should fix the build on Solaris
2010-06-20 22:32:59 +02:00
Matthias Dieter Wallnöfer
58715dd365 s4:libpolicy - fix printf output specifiers to suppress warning 2010-06-20 20:34:48 +02:00
Matthias Dieter Wallnöfer
26bcbf6e35 s4:libpolicy - Solaris compatibility fix 2010-06-20 20:25:00 +02:00
Matthias Dieter Wallnöfer
91c49c2fb2 s4:ldap.py - test subtree deletes through a new testcase 2010-06-20 18:52:31 +02:00
Matthias Dieter Wallnöfer
449370db54 s4:ldap_backend.c - now also the LDAP server supports controls on delete operations 2010-06-20 18:52:31 +02:00
Matthias Dieter Wallnöfer
9803c89ee2 s4:ldap_backend.c - move function "ldb_mod_req_with_controls" to a better place in the code
Under the "add" and over the "delete" function.
2010-06-20 18:52:30 +02:00
Matthias Dieter Wallnöfer
fbd0902958 s4:subtree_delete LDB module - now do support tree delete operations 2010-06-20 18:52:30 +02:00
Matthias Dieter Wallnöfer
87d0f63632 s4:dsdb - add a new dsdb delete function which understands the tree delete control 2010-06-20 18:52:29 +02:00
Matthias Dieter Wallnöfer
ad5e19f29e ldb:controls - add the "TREE_DELETE" control for allowing subtree deletes 2010-06-20 18:52:29 +02:00
Matthias Dieter Wallnöfer
065579b4c6 ldb:ldb.h - add classifications to the control declarations
This makes it easier to understand which standard specifies which control.
2010-06-20 18:52:28 +02:00
Matthias Dieter Wallnöfer
e062e7300b s4:python LDB __init__.py - remove completely unused "erase_partitions" call
Seems to be a relict from the past.
2010-06-20 18:52:28 +02:00
Matthias Dieter Wallnöfer
2fb715b484 s4:samldb LDB module - remove "samldb_set_defaultObjectCategory"
As far as I can tell and the test show the DN gets now normalised automatically
when stored into the database.

Anyway, if we find a case where this doesn't happen then I propose to do it
centrally for all DN attributes in common since we should get away from special
attribute hacks as far as possible.
2010-06-20 18:52:27 +02:00
Matthias Dieter Wallnöfer
c8d2c5fff0 s4:ldap_backend.c - add some newlines to make logs easier to read 2010-06-20 18:52:27 +02:00
Matthias Dieter Wallnöfer
d7ad7eed24 ldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"
To prevent memory leaks
2010-06-20 18:52:27 +02:00
Matthias Dieter Wallnöfer
00bf608481 ldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and "py_ldb_rename"
To make them consistent.
2010-06-20 18:52:26 +02:00
Matthias Dieter Wallnöfer
4cc49d365f s4:ldap_controls.c - remove encoding functions for private recalculate SD control 2010-06-20 18:52:26 +02:00
Jelmer Vernooij
0714e23971 provision: Look for Samba prefix a bit harder. 2010-06-20 17:46:39 +02:00
Stefan Metzmacher
a87561613a Revert "s4:ldb-samba: fix the build without a system ldb"
This reverts commit 44c01a5eb4.

This caused problems when using a system ldb and as we don't
do ABI checks for ldb-samba4 any more, we don't need this change.

metze

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:42:22 +02:00
Stefan Metzmacher
e812832db3 s4:ldb: only do ABI checking for the standalone build for now
Otherwise we fail to build samba4 with a system ldb.

metze

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:42:22 +02:00
Jelmer Vernooij
52307a11e1 libpolicy: Fix the build.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
e18a172207 Add preliminary support for storing changed Group Policies.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
04133225c1 Refactor policy filesystem code.
* It now uses reusable code to download the GPT.
 * It creates a list before copying for better error handling.
 * String_replace is now used instead of manually replacing '\\' with '/'
   for local paths.
 * A security check has been added for file names with "../".
 * It adheres to the 80 column rule, if at all possible.

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
b9b85d6b0e Fix memory allocation with error handling.
Also moved pypolicy.c headers around so as not to generate compile warnings

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
9b5e0fe6bb Add talloc_frees in error cases in net_gpo.c
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:13 +02:00
Wilco Baan Hofman
c09922cfae Code cleanups: GUID generation, lp_dnsdomain instead of lp_realm, missing spaces.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
5c2c8dfc5a Set inherit flag type to bool.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
d61f0240ee Fix 'magic' numbers to be strlen(something)
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
e86ef688ee Change talloc_steal to strdup because function might not expect it.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00
Wilco Baan Hofman
674d559f37 Add GP ini functions.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20 17:19:12 +02:00