summaryrefslogtreecommitdiffstats
path: root/source4/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s4: fix warning: unused variable ‘i’Kamen Mazdrashki2010-07-091-1/+0
|
* s4-ldb: added ldb_error() and ldb_operr()Andrew Tridgell2010-07-073-2/+22
| | | | | | | | | | | | | | | | | | | | | | These will be used to help avoid the problem we have with hundreds of places that do "return LDB_ERR_OPERATIONS_ERROR" without an explanation. It is very difficult to track down ldb errors which don't have any explanation. By replacing "return LDB_ERR_OPERATIONS_ERROR;" with "return ldb_operr(ldb);" we at least get a file:line message in the ldb error string. It isn't an ideal error message, but it is much better than just "operations error" This change also makes ldb_oom() return the error code (LDB_ERR_OPERATIONS_ERROR) so you can do: return ldb_oom(ldb); instead of: ldb_oom(ldb); return LDB_ERR_OPERATIONS_ERROR;
* s4-ldb: added support for simple binds on ldb_ldap backendAndrew Tridgell2010-07-071-0/+50
| | | | | this uses the options[] array to pass in bindMech, bindID and bindSecret. Currently only "simple" is supported.
* s4-ldb: added ldb_options_find()Andrew Tridgell2010-07-076-7/+85
| | | | | | | ldb_options_find() allows backends to find options in the options[] array passed to the connect operation. This will be used by the ldb_ldap bind code
* s4-ldb: fixed error handling in openldap backendAndrew Tridgell2010-07-021-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.
* s4-ldb: fixed the parsing of references in the openldap backendAndrew Tridgell2010-07-021-5/+6
| | | | We need to use ldap_parse_reference() not ldap_parse_result()
* s4:lib/registry/ldb.c - free some "msg" objects earlier through explicit ↵Matthias Dieter Wallnöfer2010-07-011-1/+10
| | | | | | "talloc_free"s No other functional change
* s4:registry - move some common constraint checks to the "local" backendMatthias Dieter Wallnöfer2010-07-012-24/+24
| | | | They should also be enforced when we don't use "ldb".
* s4:lib/registry/tests/registry.c - test recursive key generationMatthias Dieter Wallnöfer2010-07-011-8/+3
|
* s4:registry - on key add operations we have to handle with paths not always ↵Matthias Dieter Wallnöfer2010-07-013-5/+5
| | | | | | only a name Recursive key generations are allowed.
* s4:lib/registry/local.c - support recursive key generationMatthias Dieter Wallnöfer2010-07-011-40/+53
| | | | Code taken from "local_open_key".
* s4:lib/registry/ldb.c - refactor "reg_path_to_ldb"Matthias Dieter Wallnöfer2010-07-011-19/+21
| | | | | This makes it easier to understand and would also support splitting in more DN components.
* s4:lib/registry/ldb.c - use "ldb_path" rather than "ldap_path" as LDB key ↵Matthias Dieter Wallnöfer2010-07-011-14/+14
| | | | varibale identifiers
* s4:lib/registry/ldb.c - "ldb_add_key" - fix talloc handlingMatthias Dieter Wallnöfer2010-07-011-8/+14
| | | | | - free "msg" when possible - prevent "talloc_strdup"s where not necessary
* s4:dsdb: move dsdb python tests from lib/ldb/ to dsdb/Stefan Metzmacher2010-06-308-7680/+0
| | | | metze
* s4:ldb/python: make it possible to run tests standaloneStefan Metzmacher2010-06-308-3/+22
| | | | metze
* ldb:ldb_map_outbound.c - "ldb_parse_tree_collect_attrs" - remove unneeded ↵Matthias Dieter Wallnöfer2010-06-291-2/+0
| | | | return value
* ldb:ldb_modules.c - "ldb_dso_load_symbol" - remove unneeded caste before "dlsym"Matthias Dieter Wallnöfer2010-06-291-2/+1
|
* s4:ldb - "ldb_dn_update_components" - fix free of invalid DN partsMatthias Dieter Wallnöfer2010-06-291-4/+3
| | | | | Use "LDB_FREE" for such free operations and in addition wipe also the casefolded DN out.
* ldb:ldb_dn.c - "ldb_dn_set_extended_component" - free the linearized string ↵Matthias Dieter Wallnöfer2010-06-291-2/+4
| | | | when the components change
* s4:ldb_dn.c - make the code parts which free extended components consistentMatthias Dieter Wallnöfer2010-06-291-9/+7
| | | | Cosmetic
* ldb:ldb_dn - "ldb_dn_explode" - move the "dn->comp_num" initalisation ↵Matthias Dieter Wallnöfer2010-06-291-3/+3
| | | | | | upwards and use "LDB_FREE" for freeing "dn->components" Mostly cosmetic - no behaviour change
* s4:secrets Ensure secrets.ldb uses the same hooks as the rest of SambaAndrew Bartlett2010-06-291-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
* s4:lib/registry/ldb.c - add a missing braceMatthias Dieter Wallnöfer2010-06-281-1/+1
| | | | Sorry didn't check that earlier.
* s4:lib/registry/ldb.c - fix memory handling in "ldb_open_key"Matthias Dieter Wallnöfer2010-06-281-1/+4
|
* s4:lib/ldb/registry.c - handle the classname in the right wayMatthias Dieter Wallnöfer2010-06-281-1/+8
| | | | This is for "ldb_get_key_info".
* s4:lib/registry/ldb.c - remove really useless "local_ctx"Matthias Dieter Wallnöfer2010-06-281-8/+2
| | | | "mem_ctx" should fit for these few local allocations.
* s4:lib/registry/ldb.c - retrieve the classname correctly in ↵Matthias Dieter Wallnöfer2010-06-281-7/+6
| | | | "ldb_get_subkey_by_id"
* s4:lib/registry/ldb.c - change the "ldb_get_value" implementation to use the ↵Matthias Dieter Wallnöfer2010-06-281-20/+17
| | | | | | value cache and not an LDB lookup In addition this fixes the use of special characters in registry object names.
* Implementation of self membership validated right.Nadezhda Ivanova2010-06-281-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.
* ldb: Fix a wrong changetype in unit testMatthieu Patou2010-06-251-1/+1
| | | | Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
* s4:lib/registry/ldb.c - cosmetic - fix commentMatthias Dieter Wallnöfer2010-06-251-1/+1
|
* s4:lib/registry/ldb.c - cosmetic - wrap linesMatthias Dieter Wallnöfer2010-06-251-3/+2
|
* s4-ldb: use CHECK_XSLTPROC_MANPAGES()Andrew Tridgell2010-06-241-1/+1
|
* s4-python: python is not always in /usr/binAndrew Tridgell2010-06-242-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>
* s4/ldb: ldb_msg_el_map_remote() should rename the remote attribute names ↵Endi S. Dewata2010-06-241-1/+15
| | | | into local names as defined in simple_ldap_map.c.
* libds:common Remove DS_DC_* domain functionality flagsAndrew Bartlett2010-06-231-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
* s4/dsdb-test: fix usage commentKamen Mazdrashki2010-06-221-2/+2
|
* smbtorture: Add history support to shell mode.James Peach2010-06-211-0/+5
|
* s4:registry/regf.c - add some casts to suppress build warnings on SolarisMatthias Dieter Wallnöfer2010-06-201-2/+2
|
* s4:registry/rpc.c - fix Solaris warnings by castsMatthias Dieter Wallnöfer2010-06-201-4/+4
|
* s4:libpolicy - fix printf output specifiers to suppress warningMatthias Dieter Wallnöfer2010-06-201-1/+1
|
* s4:libpolicy - Solaris compatibility fixMatthias Dieter Wallnöfer2010-06-201-1/+5
|
* s4:ldap.py - test subtree deletes through a new testcaseMatthias Dieter Wallnöfer2010-06-201-0/+48
|
* ldb:controls - add the "TREE_DELETE" control for allowing subtree deletesMatthias Dieter Wallnöfer2010-06-202-0/+34
|
* ldb:ldb.h - add classifications to the control declarationsMatthias Dieter Wallnöfer2010-06-201-7/+13
| | | | This makes it easier to understand which standard specifies which control.
* ldb:pyldb.c - introduce a "mem_ctx" also on "py_ldb_search"Matthias Dieter Wallnöfer2010-06-201-12/+19
| | | | To prevent memory leaks
* ldb:pyldb.c - some cleanups and adequations also in "py_ldb_modify" and ↵Matthias Dieter Wallnöfer2010-06-201-19/+28
| | | | | | "py_ldb_rename" To make them consistent.
* Revert "s4:ldb-samba: fix the build without a system ldb"Stefan Metzmacher2010-06-201-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>
* s4:ldb: only do ABI checking for the standalone build for nowStefan Metzmacher2010-06-201-12/+24
| | | | | | | | Otherwise we fail to build samba4 with a system ldb. metze Signed-off-by: Jelmer Vernooij <jelmer@samba.org>