summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2010-07-02s4-ldb: fixed error handling in openldap backendAndrew Tridgell1-5/+15
fixed several bugs in error handling. the ldb context was used without being initialised in the error paths, and several error paths did not set an ldb error string.
2010-07-02s4-ldb: fixed the parsing of references in the openldap backendAndrew Tridgell1-5/+6
We need to use ldap_parse_reference() not ldap_parse_result()
2010-07-01s4:lib/registry/ldb.c - free some "msg" objects earlier through explicit ↵Matthias Dieter Wallnöfer1-1/+10
"talloc_free"s No other functional change
2010-07-01s4:registry - move some common constraint checks to the "local" backendMatthias Dieter Wallnöfer2-24/+24
They should also be enforced when we don't use "ldb".
2010-07-01s4:lib/registry/tests/registry.c - test recursive key generationMatthias Dieter Wallnöfer1-8/+3
2010-07-01s4:registry - on key add operations we have to handle with paths not always ↵Matthias Dieter Wallnöfer3-5/+5
only a name Recursive key generations are allowed.
2010-07-01s4:lib/registry/local.c - support recursive key generationMatthias Dieter Wallnöfer1-40/+53
Code taken from "local_open_key".
2010-07-01s4:lib/registry/ldb.c - refactor "reg_path_to_ldb"Matthias Dieter Wallnöfer1-19/+21
This makes it easier to understand and would also support splitting in more DN components.
2010-07-01s4:lib/registry/ldb.c - use "ldb_path" rather than "ldap_path" as LDB key ↵Matthias Dieter Wallnöfer1-14/+14
varibale identifiers
2010-07-01s4:lib/registry/ldb.c - "ldb_add_key" - fix talloc handlingMatthias Dieter Wallnöfer1-8/+14
- free "msg" when possible - prevent "talloc_strdup"s where not necessary
2010-06-30s4:dsdb: move dsdb python tests from lib/ldb/ to dsdb/Stefan Metzmacher8-7680/+0
metze
2010-06-30s4:ldb/python: make it possible to run tests standaloneStefan Metzmacher8-3/+22
metze
2010-06-29ldb:ldb_map_outbound.c - "ldb_parse_tree_collect_attrs" - remove unneeded ↵Matthias Dieter Wallnöfer1-2/+0
return value
2010-06-29ldb:ldb_modules.c - "ldb_dso_load_symbol" - remove unneeded caste before "dlsym"Matthias Dieter Wallnöfer1-2/+1
2010-06-29s4:ldb - "ldb_dn_update_components" - fix free of invalid DN partsMatthias Dieter Wallnöfer1-4/+3
Use "LDB_FREE" for such free operations and in addition wipe also the casefolded DN out.
2010-06-29ldb:ldb_dn.c - "ldb_dn_set_extended_component" - free the linearized string ↵Matthias Dieter Wallnöfer1-2/+4
when the components change
2010-06-29s4:ldb_dn.c - make the code parts which free extended components consistentMatthias Dieter Wallnöfer1-9/+7
Cosmetic
2010-06-29ldb:ldb_dn - "ldb_dn_explode" - move the "dn->comp_num" initalisation ↵Matthias Dieter Wallnöfer1-3/+3
upwards and use "LDB_FREE" for freeing "dn->components" Mostly cosmetic - no behaviour change
2010-06-29s4:secrets Ensure secrets.ldb uses the same hooks as the rest of SambaAndrew Bartlett1-6/+10
This ensures that, for example, the utf8 functions are the same, the GUID handler is the same and the NOSYNC flag is applied. Andrew Bartlett
2010-06-28s4:lib/registry/ldb.c - add a missing braceMatthias Dieter Wallnöfer1-1/+1
Sorry didn't check that earlier.
2010-06-28s4:lib/registry/ldb.c - fix memory handling in "ldb_open_key"Matthias Dieter Wallnöfer1-1/+4
2010-06-28s4:lib/ldb/registry.c - handle the classname in the right wayMatthias Dieter Wallnöfer1-1/+8
This is for "ldb_get_key_info".
2010-06-28s4:lib/registry/ldb.c - remove really useless "local_ctx"Matthias Dieter Wallnöfer1-8/+2
"mem_ctx" should fit for these few local allocations.
2010-06-28s4:lib/registry/ldb.c - retrieve the classname correctly in ↵Matthias Dieter Wallnöfer1-7/+6
"ldb_get_subkey_by_id"
2010-06-28s4:lib/registry/ldb.c - change the "ldb_get_value" implementation to use the ↵Matthias Dieter Wallnöfer1-20/+17
value cache and not an LDB lookup In addition this fixes the use of special characters in registry object names.
2010-06-28Implementation of self membership validated right.Nadezhda Ivanova1-5/+103
When this right is granted, the user can add or remove themselves from a group even if they dont have write property right.
2010-06-25ldb: Fix a wrong changetype in unit testMatthieu Patou1-1/+1
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-25s4:lib/registry/ldb.c - cosmetic - fix commentMatthias Dieter Wallnöfer1-1/+1
2010-06-25s4:lib/registry/ldb.c - cosmetic - wrap linesMatthias Dieter Wallnöfer1-3/+2
2010-06-24s4-ldb: use CHECK_XSLTPROC_MANPAGES()Andrew Tridgell1-1/+1
2010-06-24s4-python: python is not always in /usr/binAndrew Tridgell2-2/+2
Using "#!/usr/bin/env python" is more portable. It still isn't ideal though, as we should really use the python path found at configure time. We do that in many places already, but some don't. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-06-24s4/ldb: ldb_msg_el_map_remote() should rename the remote attribute names ↵Endi S. Dewata1-1/+15
into local names as defined in simple_ldap_map.c.
2010-06-23libds:common Remove DS_DC_* domain functionality flagsAndrew Bartlett1-8/+8
These are just a subset of the DS_DOMAIN_ functionality flags, are compared and often confused with each other. Just make them one set. Andrew Bartlett
2010-06-22s4/dsdb-test: fix usage commentKamen Mazdrashki1-2/+2
2010-06-21smbtorture: Add history support to shell mode.James Peach1-0/+5
2010-06-20s4:registry/regf.c - add some casts to suppress build warnings on SolarisMatthias Dieter Wallnöfer1-2/+2
2010-06-20s4:registry/rpc.c - fix Solaris warnings by castsMatthias Dieter Wallnöfer1-4/+4
2010-06-20s4:libpolicy - fix printf output specifiers to suppress warningMatthias Dieter Wallnöfer1-1/+1
2010-06-20s4:libpolicy - Solaris compatibility fixMatthias Dieter Wallnöfer1-1/+5
2010-06-20s4:ldap.py - test subtree deletes through a new testcaseMatthias Dieter Wallnöfer1-0/+48
2010-06-20ldb:controls - add the "TREE_DELETE" control for allowing subtree deletesMatthias Dieter Wallnöfer2-0/+34
2010-06-20ldb:ldb.h - add classifications to the control declarationsMatthias Dieter Wallnöfer1-7/+13
This makes it easier to understand which standard specifies which control.
2010-06-20ldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"Matthias Dieter Wallnöfer1-12/+19
To prevent memory leaks
2010-06-20ldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and ↵Matthias Dieter Wallnöfer1-19/+28
"py_ldb_rename" To make them consistent.
2010-06-20Revert "s4:ldb-samba: fix the build without a system ldb"Stefan Metzmacher1-5/+0
This reverts commit 44c01a5eb45a0cd5ca3de8be5c4680de75418dce. 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-20s4:ldb: only do ABI checking for the standalone build for nowStefan Metzmacher1-12/+24
Otherwise we fail to build samba4 with a system ldb. metze Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20libpolicy: Fix the build.Jelmer Vernooij2-2/+2
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Add preliminary support for storing changed Group Policies.Wilco Baan Hofman3-0/+101
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-06-20Refactor policy filesystem code.Wilco Baan Hofman1-97/+244
* 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-20Fix memory allocation with error handling.Wilco Baan Hofman5-21/+135
Also moved pypolicy.c headers around so as not to generate compile warnings Signed-off-by: Jelmer Vernooij <jelmer@samba.org>