Stefan Metzmacher
a7cab4ea36
s4:ldb-samba: handle more GUID attributes
...
metze
2010-05-20 19:10:56 +02:00
Jelmer Vernooij
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
Matthias Dieter Wallnöfer
9ad9fd5b71
ldb:ldb_msg.c - use result constant
2010-05-13 17:10:27 +02:00
Olaf Flebbe
d5c3db6f88
work around AIX6.1 name space pollution rename mod_name to module_name
2010-05-12 07:15:07 +02:00
Kamen Mazdrashki
1f3faea046
s4/dn: handle case 'base' dn has no components
...
This could if the 'base' dn is special for example.
2010-05-10 23:45:20 +03:00
Matthias Dieter Wallnöfer
6131caad8f
s4:passwords.py - add a python unittest for additional testing of my passwords work
...
This performs checks on direct password changes over LDB/LDAP. Indirect
password changes over the RPCs are already tested by some torture suite (SAMR
passwords). So no need to do this again here.
2010-05-10 19:12:27 +02:00
Andrew Tridgell
67fb18adb0
s4-ldb: check for ldap_initialize
...
HPUX 11.0 has a ldap library that doesn't have ldap_initialize
2010-05-05 21:37:42 +02:00
Andrew Tridgell
7f2e59e4c1
s4-ldb: add msg saying which build system is being used
...
(this is a gratuituous commit to trigger the build farm to rebuild
ldb on all systems)
2010-05-05 11:42:33 +02:00
Anatoliy Atanasov
efb1aea909
s4/waf: ABI update for lib/ldb
2010-05-04 18:32:30 +02:00
Anatoliy Atanasov
f84aeea739
s4/rodc: Support read-only database
...
Check on modify if we are RODC and return referral.
On the ldap backend side now we pass context and ldb_modify_default_callback
to propagate the referral error to the client.
2010-05-04 18:32:18 +02:00
Anatoliy Atanasov
bcdaa23798
s4/rodc: Fix the callbacks up the stack to handle referrals on modify requests
2010-05-04 18:31:47 +02:00
Anatoliy Atanasov
6dafd5f8c7
s4/test: Implement tests for msDS-isRODC constructed attribute
...
This attribute will be returned for objects with
objectClass=nTDSDSA,server and computer
2010-05-03 18:28:01 +02:00
Andrew Tridgell
7cbcf652c5
s4-ldb: use a parent context in the ldb utils
...
This avoids a talloc free with references error on exit
2010-05-02 18:25:13 +02:00
Kamen Mazdrashki
da127d44e3
s4/test: schemaInfo may not to be set yet
...
On newly provisioned Forest schemaInfo is not initially set.
It should be created after firs Schema modification
2010-04-29 04:54:05 +03:00
Stefan Metzmacher
0a70788e19
s4:lib/registry: fix the waf build
...
The pass to a source file is relative to the wscript* file.
metze
2010-04-27 17:05:29 +02:00
Günther Deschner
a833be0c4e
s4: use shared registry functions.
...
Guenther
2010-04-27 16:42:15 +02:00
Andrew Tridgell
f1c523939b
pytalloc: ensure talloc_ctx is directly after PyObject_HEAD
...
the talloc python interface for tp_alloc and tp_dealloc relies on a
cast to a py_talloc_Object to find the talloc_ctx (see
py_talloc_dealloc). This means we rely on the talloc_ctx for the
object being directly after the PyObject_HEAD
This fixes the talloc free with references bug in samba_dnsupdate
The actual problem was the tp_alloc() call in
PyCredentialCacheContainer_from_ccache_container() which used a cast
from a py_talloc_Object to a PyCredentialCacheContainerObject. That
case effectively changed the parent/child relationship between the
talloc_ctx and the ccc ptr.
This patch changes all the structures that follow this pattern to put
the TALLOC_CTX directly after the PyObject_HEAD, to ensure that if
anyone else decides to do a dangerous cast like this that it won't
cause the same sort of subtle breakage.
Pair-Programmed-With: Rusty Russell <rusty@samba.org>
2010-04-20 15:50:27 +10:00
Nadezhda Ivanova
4fc59089c8
Removed more excess looping and fixed problem with incorrect IO flag handling.
2010-04-20 00:23:42 +03:00
Andrew Tridgell
211bf1ea17
s4-waf: removed the unused installdir= option to SAMBA_BINARY()
...
This was left over from the automatic conversion of the config.mk
files
2010-04-18 21:47:00 +10:00
Andrew Tridgell
7aa4c11fc4
build: more adjustments for the ABI type name maps
...
- use 'va_list' instead of 'struct __va_list_tag *'
Using the C name for va_list is preferable
- add support for negative ABI name matches in abi_match=. That is
used to exlude ldb_*module_ops from the ldb ABI
- don't include the ldb module ops or backend ops in the ABI
2010-04-18 18:24:27 +10:00
Andrew Tridgell
f96353adcf
s4-waf: rebuild signature files with the api type maps
...
This is not strictly necessary, as the old types would compare equal,
but it is neater to use the generic type names
2010-04-18 15:39:59 +10:00
Andrew Tridgell
77768dbd75
ldb-waf: enable ABI checking in ldb
...
we use separate signature files for ldb and ldb-samba4, as the samba4
varient of the library has many more public symbols
2010-04-18 15:00:38 +10:00
Andrew Tridgell
7d90b59602
ldb: mark the tdb backend in ldb as _PRIVATE_
2010-04-18 15:00:38 +10:00
Nadezhda Ivanova
64f4183a35
s4:Added a test for correct CO expansion in SD creation.
2010-04-17 18:16:25 +03:00
Nadezhda Ivanova
cec0e86ec8
s4:Added a test to make sure we ignore ACEs with ID flag set.
2010-04-15 18:21:55 +03:00
Andrew Tridgell
c10d267a76
s4-waf: don't try to use the system lib for the library build
...
when building library FOO, don't try to find the system library FOO
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2010-04-13 23:03:27 +10:00
Andrew Tridgell
c168e5ce50
s4-ldb: enable waf build of ldb without ldap backend
...
this is useful for cross-compilation testing, where getting all the
ldap deps installed can be hard
2010-04-12 23:13:30 +10:00
Andrew Tridgell
928fb86150
s4-ldb: fixed a crash bug for non-UTF8 strings
...
when one of the strings was not valid UTF8, we would try to
dereference NULL
2010-04-12 19:12:37 +10:00
Stefan Metzmacher
33bb334e80
s4-waf: inline LIBREPLACE_NETWORK into 'replace'
...
metze
2010-04-12 09:13:43 +02:00
Andrew Tridgell
98942c8d84
build: use a common autogen-waf.sh for all builds
...
the symlink will get updated with the right target when waf dist is
used in each directory
2010-04-12 11:17:35 +10:00
Jelmer Vernooij
3a34b5f35e
subunit: Remove more test output that could be interpreted by subunit.
2010-04-11 20:57:33 +02:00
Jelmer Vernooij
7da94cc4a6
subunit: Support formatting compatible with upstream subunit, for consistency.
...
Upstream subunit makes a ":" after commands optional, so I've fixed any
places where we might trigger commands accidently. I've filed a bug
about this in subunit.
2010-04-11 20:57:33 +02:00
Matthias Dieter Wallnöfer
0b7bb7f85a
s4:registry - "patchfile_preg.c" - use more "sizeof"s on length specification
...
This makes the code more clear to read.
2010-04-10 19:58:09 +02:00
Matthias Dieter Wallnöfer
458a441f7f
s4:registry - "patchfile_preg.c" - fix indentation
2010-04-10 19:58:08 +02:00
Matthias Dieter Wallnöfer
c7c8f0ccf3
s4:registry - "patchfile_preg.c" - fix a datatype
...
This should be an "uint16_t" (only two bytes are written).
2010-04-10 19:58:08 +02:00
Andrew Bartlett
78dd377849
s4:ldif_handlers tokenGroups are SIDs
2010-04-10 21:41:01 +10:00
Kamen Mazdrashki
08dd0d0b54
s4/schema: Torture test for schemaInfo implementation
...
This test checks if schemaInfo revision changes when an object
is added or modified in Schema.
Ref. [MS-ADTS], 3.1.1.2.1
2010-04-09 12:21:29 +03:00
Kamen Mazdrashki
6e7be5f4d1
s4/ldif: Handle Schema:schemaInfo blobs
2010-04-09 12:21:25 +03:00
Matthias Dieter Wallnöfer
0a154b940d
s4:registry - "patchfile_preg.c" - assign a better type to the "i" counter variable
...
The "i" variable sums up "size" values which are of type "size_t". Therefore
also "i" itself should be from this type.
2010-04-08 23:57:35 +02:00
Matthias Dieter Wallnöfer
aa9e782a4d
s4:registry - "patchfile_preg.c" - make a SIVAL statement nicer
2010-04-08 23:57:34 +02:00
Jelmer Vernooij
6510b2cdd2
s4-net: Use new Net() object in net export keytab.
2010-04-08 23:22:55 +02:00
Jelmer Vernooij
814e20e7da
pynet: Create a net class.
2010-04-08 23:22:55 +02:00
Jelmer Vernooij
57ac0a6042
s4-python: Move load_partition_usn to dsdb module.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
dd4ef4e106
s4-python: More cleanups.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
a35d876537
s4-python: rename samba.glue to samba._glue to indicate it's private.
2010-04-08 23:20:36 +02:00
Jelmer Vernooij
cc6e2b8a81
s4-python: Fix formatting, import of FLG_NOSYNC.
2010-04-08 23:20:36 +02:00
Matthias Dieter Wallnöfer
ef3490e799
s4:registry - "REGF backend" - don't ignore wrong-sized REG_DWORD/REG_DWORD_BIG_ENDIAN values
2010-04-08 15:29:40 +02:00
Matthias Dieter Wallnöfer
e2aec9d81f
s4:registry - "patchfile_preg.c" - fix the read operation of the data length on big-endian platforms
2010-04-08 12:27:27 +02:00
Matthias Dieter Wallnöfer
2164ba51e2
s4:registry - "patchfile_preg.c" - use "sizeof(uint32_t)" for some size specifications
...
Looks nicer.
2010-04-08 12:27:27 +02:00
Matthias Dieter Wallnöfer
64957ce068
LDB:sample_module - reintroduce accidentally removed "ldb_msg_add_fmt" statement
...
Obviously this is really needed by the "samba4.ldb" test.
2010-04-07 23:06:02 +02:00