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

5396 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
7be36a0bd9 s4:lib/registry/util.c - strtoll call - better say explicitly that data is in hex format
Template is commit deebc934ed from Wilco.
2010-10-15 08:45:15 +02:00
Andrew Bartlett
353d9bc3e4 s4-acl Merge sec_access_check() with se_access_check() from source3/
Andrew Bartlett

Signed-off-by: Andrew Tridgell <tridge@samba.org>
2010-10-14 02:35:05 +00:00
Jelmer Vernooij
18ea6c5dce ldb: Only build LIBLDB_MAIN when building ldb itself.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Wed Oct 13 15:41:29 UTC 2010 on sn-devel-104
2010-10-13 15:41:29 +00:00
Matthias Dieter Wallnöfer
9bdea1b384 ldb:ldb_match.c - fix a counter type 2010-10-13 13:35:21 +00:00
Andrew Tridgell
d5e599204c ldb: raise minor version number for new ldb_msg_match_error() function
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Oct 13 11:42:18 UTC 2010 on sn-devel-104
2010-10-13 11:42:17 +00:00
Andrew Tridgell
269143fa00 s4-ldb: take advantage of ldb_match_msg_error() in more places
this gives better error checking
2010-10-13 11:00:04 +00:00
Andrew Tridgell
180304516d s4-ldb: use operator_fn syntax function in ldb_match code
this also fixes error handling in case of bad syntax, memory error
etc, which was previously conidered as a mismatch, but should return
an error

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-13 11:00:04 +00:00
Andrew Tridgell
d267c8b478 s4-ldb: implement an operator_fn for the ldb-samba syntaxes
this allows us to properly handle the LDB_OP_PRESENT operator on
deleted linked attributes

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-13 11:00:04 +00:00
Andrew Tridgell
3d75111fd6 s4-ldb: added an optional operator_fn in the schema syntax
this function takes the operator being invoked, which will allow
schema functions to provide more fine grained control over
comparisons.

The key bug this was introduced to fix is the incorrect handling of
the LDB_OP_PRESENT test for deleted linked attributes. The backends
are unaware of the deleted state of these links, so they cannot do a
LDB_OP_PRESENT test on their own.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-10-13 11:00:04 +00:00
Andrew Tridgell
d95160ca2f ldb: when running from build directory, use the build modules
we need to use the build modules, not the installed modules, so tests
run from the source directory are valid

Pair-Programmed-With: Jelmer Vernooij <jelmer@samba.org>
2010-10-13 11:00:03 +00:00
Andrew Bartlett
f768b32e37 libcli/security Provide a common, top level libcli/security/security.h
This will reduce the noise from merges of the rest of the
libcli/security code, without this commit changing what code
is actually used.

This includes (along with other security headers) dom_sid.h and
security_token.h

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Tue Oct 12 05:54:10 UTC 2010 on sn-devel-104
2010-10-12 05:54:10 +00:00
Jelmer Vernooij
9d2e777e18 ldb: Build ildap module as shared object. 2010-10-11 15:13:16 +00:00
Jelmer Vernooij
837bcb9e0f popt_credentials: Implement pending machine account manually, rather than through credentials. 2010-10-11 15:13:16 +00:00
Andrew Bartlett
13ba3464c0 ldb The use of a private event context isn't a hack
This is deliberate behaviour.

Andrew Bartlett

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Mon Oct 11 13:45:14 UTC 2010 on sn-devel-104
2010-10-11 13:45:13 +00:00
Andrew Bartlett
7013a3e390 s4-ldb Allow a NULL event context in samba_ldb_init() 2010-10-11 13:02:16 +00:00
Andrew Bartlett
1555d5acf5 s4-ldb Don't use talloc_autofree_context() in ldb
The private event context only needs to live as long as ldb itself.

Andrew Bartlett
2010-10-11 13:02:16 +00:00
Andrew Bartlett
69199a96d1 s4-tevent Remove event_contex_find() and event_context_set_default()
It is considered that it is better to create a new event context
rather than 'finding' some other event context, in the case
where we do not have one specified.

Andrew Bartlett
2010-10-11 13:02:16 +00:00
Jelmer Vernooij
d74e0adb30 credentials: Split up into several subsystems. 2010-10-11 02:06:03 +00:00
Jelmer Vernooij
5324b943e7 wafsamba: Fix handling of pyembed/pyext. 2010-10-10 23:54:04 +00:00
Jelmer Vernooij
e2f3e10b1a ldb-samba: Rename samdb_relative_path to ldb_relative_path, as it's not samdb-specific. 2010-10-10 23:45:23 +02:00
Jelmer Vernooij
c1884f31ea ldb-samba: Add ldb_wrap_add, remove last schema reference from ldb_wrap. 2010-10-10 23:25:38 +02:00
Jelmer Vernooij
7f68870bc9 ldb-samba: Split up ldb_wrap_connect() a bit. 2010-10-10 23:09:06 +02:00
Jelmer Vernooij
938cb40290 ldb-samba: Add convenience function for doing a Samba-style LDB init. 2010-10-10 23:09:06 +02:00
Jelmer Vernooij
6280725b47 samdb: Handle schema setup in samdb, not in more generic ldbsamba. 2010-10-10 23:08:45 +02:00
Jelmer Vernooij
614c8ea986 tls: add missing dependency on util_tevent. 2010-10-10 23:08:12 +02:00
Jelmer Vernooij
c15e919a09 wafsamba: Clarify needs_python argument name, use pyembed/pyext where
applicable.

Allow using both pyembed and pyext, to prevent unresolved symbols.

Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sun Oct 10 03:54:01 UTC 2010 on sn-devel-104
2010-10-10 03:54:01 +00:00
Stefan Metzmacher
9300f922ae s4:lib/tls: buffer writes in tstream_tls_push_function()
This works arround bugs in gnutls_handshake(),
which diesn't handle EAGAIN correctly, when they use the
push function.

Thanks to Marcel.Ritter@rrze.uni-erlangen.de and
Matthieu Patou <mat@samba.org> for the debugging work
on bug #7218.

metze
2010-10-08 11:53:08 +02:00
Stefan Metzmacher
a3d44d5504 s4:lib/tls: make more clear what the immediate event is for
metze
2010-10-08 11:53:06 +02:00
Stefan Metzmacher
cce2f9dde4 s4:lib/tls: fix enabled logic in tstream_tls_params_server()
metze
2010-10-08 11:53:06 +02:00
Andrew Tridgell
bb0017615d waf: fixed exit status of test suites
use RUN_COMMAND() to handle signal errors and exit status
2010-10-07 14:29:21 +11:00
Matthias Dieter Wallnöfer
933aef0bf4 s4:ldb_modules.c - fix a typo 2010-10-05 08:43:19 +00:00
Jelmer Vernooij
5548d3d41e Add missing dependencies for com_err. 2010-10-05 00:38:35 +02:00
Jelmer Vernooij
6ea99a237d ldb: Refer to ldb(3), not ldb(7). 2010-10-05 00:38:35 +02:00
Matthieu Patou
d09cfc04fb unittests: add a test to avoid regression on previous fix
Autobuild-User: Matthieu Patou <mat@samba.org>
Autobuild-Date: Mon Oct  4 20:23:31 UTC 2010 on sn-devel-104
2010-10-04 20:23:31 +00:00
Matthieu Patou
9dcad792b6 pyldb: test return code before trying to talloc_steal
Otherwise you can have an error on the talloc_steal as the req can have
been not talloced yet
2010-10-04 19:42:19 +00:00
Jelmer Vernooij
8cec67fe61 registry: Make a two more functions static. 2010-10-04 13:52:09 +02:00
Matthias Dieter Wallnöfer
fba8e326f8 s4:patchfile_dotreg.c - use "size_t" when counting characters in DATA_BLOBs
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Sun Oct  3 16:03:41 UTC 2010 on sn-devel-104
2010-10-03 16:03:41 +00:00
Jelmer Vernooij
beed95e3a2 heimdal: convert some subsystems to libraries, consistent with upstream heimdal. 2010-10-03 16:25:37 +02:00
Wilco Baan Hofman
e2eae17961 Make sure REG_SZ is properly written to a .reg file (not as hex(1)), fix trailing comma REG_BINARY.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:38 +02:00
Wilco Baan Hofman
a8adadbe5b Fix issues addressed by Jelmer:
* Add a comment about why the reg_strhex_to_data_blob was added
 * Fix int which should've been a boolean

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:38 +02:00
Wilco Baan Hofman
6e881dd86a Fix patchfile_dotreg to write proper .reg files: 'hex(1..B):', 'dword:', etc
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:38 +02:00
Wilco Baan Hofman
2d4500deea Fix registry editor to be compatible with Windows 7.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
90d82870b0 5 uint32_t's should be set, not 5 bytes.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
b3d2345bd1 The root key should be created as a root key, not subkey.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
bc2098c459 Do not include the closing doublequote in .reg files.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
deebc934ed Fix hex():00,00,00 bugs and strtol dword bugs, these values are explicitly hex.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
1ed896407f Make sure we write the value stored in value, not line (doublequoted).
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
a23aa3f5f1 Make sure that regf only writes to disk every five seconds or when flushed or destroyed
Brings speed up on a large .reg import from 17.5s to 0.95s, over 18 times faster

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
927e4db090 Fix .reg file format parsing.
* multiline data
 * doublequoted value name
 * handle windows format CRLF

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00
Wilco Baan Hofman
4356f09d7f Fix registry parsing of strings to also support the windows method.
Specifically: dword:00000000, hex:00,00,00,00, hex(0..B):00,00,00,00

Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2010-10-03 15:31:37 +02:00