1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

5664 Commits

Author SHA1 Message Date
Andrew Tridgell
949427c208 python: use os.environ[] instead of os.putenv()
using os.putenv() causes too much confusion, as it doesn't update
os.getenv()

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-22 02:51:10 +01:00
Andrew Tridgell
a12239b131 s4-waf: rename smbpasswd library to smbpasswdparser
this removes a conflict with the s3 smbpasswd binary
2011-02-22 02:51:10 +01:00
Matthieu Patou
95eb3020de pyldb: Add tests for the ldb_result object 2011-02-21 10:56:00 +03:00
Matthieu Patou
4c74c5f557 pyldb: create LdbResult, return value from ldb.search is now a LdbResult 2011-02-21 10:55:59 +03:00
Matthieu Patou
b1595f40c5 ldb: controls marshalling/unmarshalling improvement
Add a function to marshall a control to a string
Refactor the code of ldb_control_parse_strings to allow to extract the
core code into ldb_control_parse_from_string so that this function can
be called for just 1 string
2011-02-21 10:55:59 +03:00
Jelmer Vernooij
fce1069925 ldb-samba: Add missing dependency on pyldb-util. 2011-02-20 16:51:21 +01:00
Andrew Tridgell
bed374215f s4-idl: rename s4 server_id.idl to server_id4.idl
this avoids a conflict with the new s3 server_id.idl

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-18 18:41:00 +11:00
Simo Sorce
0a05a364f3 Increase minor version since a public header has changed
Samba4 now depends on a new macro defined in the public ldb_modules.h header:
LDB_FLAG_INTERNAL_FORCE_SINGLE_VALUE_CHECK.

Bump up the minor release of ldb accordingly.

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Mon Feb 14 19:39:31 CET 2011 on sn-devel-104
2011-02-14 19:39:31 +01:00
Günther Deschner
d3c082e539 s4-readline: remove leftover from readline merge.
Guenther

Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Feb 14 14:26:12 CET 2011 on sn-devel-104
2011-02-14 14:26:12 +01:00
Andrew Tridgell
95e347a2d0 s4-ldb: fixed a uninitialised el->flags in ldb_tdb
this caused an intermittent failure in some tests

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-14 17:55:09 +11:00
Andrew Tridgell
c2ccd24ebf s4-ldb: added LDB_FLAG_INTERNAL_FORCE_SINGLE_VALUE_CHECK
this allows a ldb module to force an element as single valued
2011-02-14 17:55:08 +11:00
Andrew Tridgell
a48328a828 s4-ldb: use a helper function for single valued checking
this gives us a single piece of logic for single value checking in the
tdb backend

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-14 17:55:08 +11:00
Andrew Tridgell
a26f8b8ae6 ldb-web: update mailing list info 2011-02-14 17:55:08 +11:00
Matthieu Patou
a7301556d2 pyldb: fix a bug in the unit test which prevented ldb.python to run all the tests in the testsuite
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Sun Feb 13 00:14:24 CET 2011 on sn-devel-104
2011-02-13 00:14:24 +01:00
Matthieu Patou
17fdee0e92 ldb: use the sizeof of the control variable as offset instead of hardcoded values, helps to avoid bugs 2011-02-13 01:23:01 +03:00
Matthieu Patou
ad9b670f47 ldb: remove "magic" string in ldb_controls, replace them with constants defined in ldb.h
Allow to have less magic value in the control code and will allow not to
duplicate names when doing a function that marshal a control to it's
string representation
2011-02-13 00:51:05 +03:00
Andrew Tridgell
8dc92c8f71 ldb: use #include <ldb.h> for ldb
thi ensures we are using the header corresponding to the version of
ldb we're linking against. Otherwise we could use the system ldb for
link and the in-tree one for include

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-10 06:51:07 +01:00
Andrew Tridgell
8220a7ebae ldb: added ldb 1.0.0 ABI signatures 2011-02-10 06:51:06 +01:00
Andrew Tridgell
2a6f345723 ldb: change version number to 1.0.0
Simo pointed out that the module loading change should have been
combined with a major version number. That seems like a good excuse
for a 1.0 release

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-10 06:51:06 +01:00
Andrew Tridgell
8720811598 ldb: fixed two warnings in the ldb_ldap backend 2011-02-10 06:51:06 +01:00
Andrew Tridgell
7fac3258f7 ldb: added a include/ldb_version.h
this fixes a problem with the installed ldb_modules.h header, which
depended on LDB_VERSION being defined.

Thanks to Simo for noticing this!

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-10 06:51:06 +01:00
Matthias Dieter Wallnöfer
8d80225afb ldb:tools - return LDB_ERR_OPERATIONS_ERROR on generic errors
Use "return" when located in "main" for consistency ("exit" would do the
same).

The patchset has been discussed with Jelmer Vernooij and afterwards LDB
maintainer Simo Sorce.
2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
5e06b21cc1 ldb:tools - always check if ldb connection has been estabilished
Otherwise return "LDB_ERR_OPERATIONS_ERROR".
2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
22f4030c30 ldb:ldbsearch tool - use LDB result constants where possible 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
23c0ae7452 ldb:ldbsearch tool - simplify error code return 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
ff7dff6ef0 ldb:ldbsearch tool - use "%u" for printing unsigned integers 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
475ea1ca59 ldb:ldbedit tool - don't forget about the "do_edit" result code
Use it for computing the program exit code. The "result" has not to be
free'd explicitly since it's a child by "ldb" which itself is child by
"mem_ctx".
2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
79d3532f7f ldb:ldbedit tool - fix bug #7914
"modify_record" returns "-1" when failing, otherwise the number of
modifies performed as an "unsigned int" converted to "int".
When we get "-1" we immediately need to stop (the error message has
already been generated by the function itself).
2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
b5ccf181f5 ldb:ldbedit tool - use unsigned counters for consistency with other LDB tools 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
bc675aa391 ldb:ldbedit tool - use "%u" for printing out unsigned integers 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
b2c1831337 ldb:ldbedit tool - use LDB result constants where needed 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
bd727a967d ldb:ldbrename tool - use LDB result constant where needed 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
ef0477a0b9 ldb:ldbmodify tool - use unsigned counters for consistency with other LDB tools 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
6f52070d9b ldb:ldbdel tool - use LDB result constants for consistency 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
2937e63644 ldb:ldbadd tool - use LDB return codes where possible 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
de9217beaa ldb:ldbadd tool - use "%u" for printing out unsigned integers 2011-02-09 18:59:19 +01:00
Matthias Dieter Wallnöfer
c3ca0b05e5 ldb:ldbadd tool - use LDB result constants for consistency 2011-02-09 18:59:18 +01:00
Jelmer Vernooij
d2740976cd dlinklist: Change license to LGPLv3+ (checked with tridge). 2011-02-09 13:10:09 +01:00
Günther Deschner
56fe080d87 lib/compression: add shared wscript_build.
Guenther
2011-02-08 14:05:36 +01:00
Andrew Tridgell
8b8caac6d0 build: removed the old autogen.sh and autogen-waf.sh scripts
for the builds that use waf only, these are no longer needed and just
cause confusion

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-02-07 15:03:40 +11:00
Stefan Metzmacher
93733e4e31 s4:tls_tstream: also use a dynamic buffer for the pull side
Maybe that fixes the remaining issues with some gnutls versions.

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Jan 18 17:26:08 CET 2011 on sn-devel-104
2011-01-18 17:26:08 +01:00
Stefan Metzmacher
361b4ed016 s4:tls_tstream: fix partial reads, so that the gnutls layer doesn't read the same data twice
metze
2011-01-18 16:34:28 +01:00
Andrew Bartlett
4e2e5eafb2 s4-pyldb Fix tp_basicsize for PyLdbDn
This wasn't actually causing problems before, as the structures were
the same size.

Andrew Bartlett
2011-01-18 10:55:05 +01:00
Kamen Mazdrashki
1667ff79ca s4-ldb_ldif: Take into account LDB_FLG_SHOW_BINARY
when user requires binary data to be displayed
using samba user-friendly ldif handlers

Found using following test search:
bin/ldbsearch -H st/dc/private/sam.ldb -b "CN=Deleted Objects,DC=samba,DC=example,DC=com" \
 "(objectGUID=97b52eac-6d89-434d-b935-1e5f2e086ffc)" replPropertyMetaData --show-deleted --show-binary

Autobuild-User: Kamen Mazdrashki <kamenim@samba.org>
Autobuild-Date: Tue Jan 18 00:40:01 CET 2011 on sn-devel-104
2011-01-18 00:40:01 +01:00
Kamen Mazdrashki
fb0df534f4 s4-ldb_ldif: Don't check for LDB_FLG_SHOW_BINARY in ldb_should_b64_encode
LDB_FLG_SHOW_BINARY is data representation flag and should
not modify behavior of data checking functions.

This lead to a bug in lib/ldb/ldb_tdb/ldb_index.c as ltdb_index_key()
function relies on ldb_should_b64_encode function to determine
how to process index keys.

Found using following test search:
bin/ldbsearch -H st/dc/private/sam.ldb -b "CN=Deleted Objects,DC=samba,DC=example,DC=com" \
 "(objectGUID=97b52eac-6d89-434d-b935-1e5f2e086ffc)" replPropertyMetaData --show-deleted --show-binary
2011-01-18 00:57:05 +02:00
Andrew Tridgell
7320f1988c ldb: new ABI sigs file
Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Mon Jan 17 06:09:23 CET 2011 on sn-devel-104
2011-01-17 06:09:23 +01:00
Andrew Tridgell
633c3e8da5 ldb: added ldb_req_mark_trusted()
this is used to mark a ldb child request trusted, if the caller has
validated all inputs. This will be used when creating new child
requests with trusted inputs.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-01-17 05:23:04 +01:00
Matthias Dieter Wallnöfer
f334cd2210 ldb: inherit parent flags on child requests in modules 2011-01-17 05:23:04 +01:00
Matthias Dieter Wallnöfer
6737231d90 ldb:ldb_dn.c - fix counter type in "ldb_dn_minimise"
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Jan 14 10:43:29 CET 2011 on sn-devel-104
2011-01-14 10:43:29 +01:00
Andrew Tridgell
f33ce4101e ldb: new ABI file for 0.9.23 2011-01-14 16:39:33 +11:00