1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-25 06:04:04 +03:00

23858 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
7ea1796fa4 s4:subtree_rename LDB module - rename "check_system_flags" into "check_constraints" and perform more checks
Always considering MS-ADTS 3.1.1.5.4.1.2.
2010-08-01 14:00:10 +02:00
Matthias Dieter Wallnöfer
2e66033ab9 s4:subtree_rename LDB module - introduce out of memory checks 2010-08-01 14:00:10 +02:00
Matthias Dieter Wallnöfer
f997fd299d s4:dsdb/samdb/ldb_modules/util.c - remove unused variables 2010-08-01 11:33:37 +02:00
Stefan Metzmacher
b99a02a7d4 s4:torture/rpc/winreg: fix "strict aliasing" compiler warnings
metze
2010-08-01 11:18:05 +02:00
Stefan Metzmacher
c7ba3c4dcf s4:torture/rpc/winreg: fix the build with non gcc compilers (e.g. on solaris)
metze
2010-08-01 11:17:14 +02:00
Matthias Dieter Wallnöfer
81cc92c5af s4:ldap.py - performs some "systemFlags" testing 2010-08-01 09:36:01 +02:00
Matthias Dieter Wallnöfer
3cdc83d4f9 s4:subtree_rename LDB module - introduce the "systemFlags" protection rules
This is done in a dedicated call "check_system_flags".
2010-08-01 09:35:54 +02:00
Matthias Dieter Wallnöfer
3244f6feaa s4:dsdb/pydsdb.c - import "systemFlags" into Python
Needed by ldap.py tests
2010-07-31 21:43:11 +02:00
Matthias Dieter Wallnöfer
4e3afb36da s4:subtree_rename LDB module - "subren_ctx_init" - fix the "out of memory" return 2010-07-31 21:33:33 +02:00
Matthias Dieter Wallnöfer
1b7029b47b s4:torture/winreg.c - fix warnings of Solaris 10 cc through the appropriate casts 2010-07-31 20:59:02 +02:00
Matthias Dieter Wallnöfer
380b2cb4b0 s4:torture/winreg.c - remove unreachable code 2010-07-31 20:58:47 +02:00
Matthias Dieter Wallnöfer
f0c4a1aff4 s4:torture/winreg.c - add a FIXME comment on a codepart which isn't standard C-compatible
It seems to be GCC specific since it doesn't compile on Solaris 10 cc:
http://build.samba.org/?function=View+Build;host=sunX;tree=samba_4_0_waf;compiler=cc
2010-07-31 20:57:18 +02:00
Matthias Dieter Wallnöfer
f5f236a4b9 s4:dcesrv_netr_LogonGetDomainInfo - improve the client OS informations update
As ekacnet pointed out on the mailing list we don't need to do a delete if we
(re)set the values afterwards - only if we don't set any new ones.
2010-07-31 20:44:29 +02:00
Stefan Metzmacher
76e5d41d6a s4:blackbox/newuser: use test specific user names
As this test doesn't delete the user accounts at the end,
we should use test specific user names. That lowers the
chance of conflicts with other tests.

metze
2010-07-31 11:35:31 +02:00
Stefan Metzmacher
0b4247ef7a s4:selftest: skip samba4.blackbox.ktpass for now as it's not portable
ktutil might not be installed or from MIT.
We should build a samba4ktutil and use that instead,
until then we need to skip this test.

metze
2010-07-31 11:31:43 +02:00
Stefan Metzmacher
1675619656 s4:librpc/rpc: use the correct ndr flags in dcerpc_ndr_validate_in()
metze
2010-07-31 09:07:45 +02:00
Günther Deschner
a6e1fa23ad s4-smbtorture: remove ifdefed symlink test, this is already skipped internally
in the s3 case.

Guenther
2010-07-30 11:24:23 +02:00
Günther Deschner
89071133e3 Revert "s4-torture: Disable setting REG_BINARY printer data with size 0."
This reverts commit 104c419345a42a9a02ae25df482f449dc41a6380.
2010-07-30 11:23:06 +02:00
Kamen Mazdrashki
39d287ec67 s4-test: Expand DSSYNC test to be executed against all partitions
It is still possible to supply specific partition
to test with on command line using
--option="dssync:partition={PARTITION_DN}"
2010-07-29 00:53:49 +03:00
Kamen Mazdrashki
bd6f77ee0b s4-test-dssync: Issue warning in case we have diffrences in link attributes
In case differences in messages are:
 1. Attributes with different values, i.e. 'replace'
 2. Those attributes are back-link attributes
then we just warn about those differences.

It turns out windows doesn't send all values for back-link
attributes in replicated_object but in linked_attributes.

I consider this as workaround for the problem.
A better solution might be to merge linked_attribute values
into replacted_objects before comparing those with LDB result
(although this will work for Win2k8 and latter)
2010-07-29 00:53:49 +03:00
Kamen Mazdrashki
5bf54f17bd s4-test: Simplify test_GetInfo() - we have what we need through LDB connection
we have already opened.

Added 'config_dn' and 'schema_dn' members which are to be used
later for extending the test_FetchData() to be executed
against every partition in case partition is not specified explicitly.

DsSyncText.site_name was removed also as it is not used anymore
2010-07-29 00:53:49 +03:00
Kamen Mazdrashki
88f1798100 s4-ldb: use TALLOC_CTX type instead of 'void' 2010-07-29 00:53:49 +03:00
Andreas Schneider
8fe6813ca0 s4-torture: Enable tests with keynames including a slash.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:15 -04:00
Andreas Schneider
3f68a39458 Revert "s4-smbtorture: skip driverName and printerName DsSpooler tests for now."
This reverts commit 23eb2888d94b34822e4c49b1d62f4bd3fac43fcf.

Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:14 -04:00
Andreas Schneider
104c419345 s4-torture: Disable setting REG_BINARY printer data with size 0.
Signed-off-by: Jim McDonough <jmcd@samba.org>
2010-07-27 10:27:06 -04:00
Andrew Tridgell
a709e423d2 waf-idl: put the gen_ndr/README file for source3 back
This was removed by 100d37fc4624690423f6a932709b3f9046d05c64, probably
accidentially.
2010-07-19 22:17:17 +10:00
Kamen Mazdrashki
35b1e00ba3 s4: Remove trailing whitespaces
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
11a44ce6f8 ldb: Mark _DEPRECATED_ ldb_msg_diff() and ldb_msg_canonicalize() functions
They are not quite safe to use (requires caller to steal
resulting message in own context) and may lead to holding
memory for too long.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
31aeb841c9 s4-dsdb: use ldb_msg_normalize() in ldb_msg_difference()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
1e20dbd812 s4-test: Use ldb_msg_normalize() in sqlite3 backend
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
91d9f88d28 s4-test: Use ldb_msg_normalize() in torture/rpc/dssync.c test
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
d71b20e8dc s4-dsdb: use ldb_msg_normalize() in ldbadd-process_file()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:35 +10:00
Kamen Mazdrashki
2ad701911e s4-dsdb: use ldb_msg_normalize() in source4/lib/ldb/common/ldb.c
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
86cc914717 s4-dsdb: use ldb_msg_normalize() in source4/dsdb/schema/schema_set.c
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
e5a9469a88 s4-ldb: Add ldb_msg_normalize() to accept a memory context from client
Previos implementation from ldb_msg_canonicalize()
was moved into this function and now ldb_msg_canonicalize()
is based on ldb_msg_normalize()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
48574ccc3f s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add()
Previous implementation was 'leaking' attribute name
string, that is allocated by ldb_msg_add_empty()

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
3944c81d08 s4-ldb: Use _ldb_msg_add_el() in ldb_msg_add_empty()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
8d523d46f5 s4-ldb: Add separate function to add empty element into ldb_msg
It just adds another element, nothing more.
Caller is responsible to fill-in the added element and
determine how to handle data allocation contexts.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
a95fd4ef64 s4-ldb: Write more explanatory comment for ldb_msg_add()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
8deae13313 s4-pyldb: Use ldb_msg_difference() in py_ldb_msg_diff()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:34 +10:00
Kamen Mazdrashki
148b8588bc s4-test: Use ldb_msg_difference() in torture/rpc/dssync.c test
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:33 +10:00
Kamen Mazdrashki
fa0db46af1 s4-tools: use ldb_msg_difference() in ldbedit - modify_record()
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:33 +10:00
Kamen Mazdrashki
fb1c0796c7 s4-dsdb/schema/schema_set.c: fix trailing spaces and comments spelling
Few comments split on several lines also...

(Sorry Metze, I know you hate reviewing "and this, and that"
type of patches, but those are just cosmetics)

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:33 +10:00
Kamen Mazdrashki
a11d3b4dfb s4-dsdb: use ldb_msg_difference() in source4/dsdb/schema/schema_set.c
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:33 +10:00
Kamen Mazdrashki
65b967a706 s4-ldb: Implement ldb_msg_difference() function to accept a memory context from client
Old implementation from ldb_msg_diff() was moved into
this this function but with changed interface
so that a memory context may be passed.

ldb_msg_diff() function is now based on ldb_msg_difference(),
which fixes a hidden leak - internal ldb_msg object
(returned from ldb_msg_canonicalize) wasn't freed
and stays attached to ldb_context for the connection lifetime.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-07-19 17:33:33 +10:00
Matthieu Patou
c55f5f2a35 s4 nss_switch: fix build problem on computer without the iniparser
Although the build was ok on my workstation it appears that on build
server it was not because the include path was not correct.
2010-07-17 20:10:11 +04:00
Matthieu Patou
dbbfad8286 s4-waf: add the missing bits for builing nss_winbind and pam_winbind
This is something that was not picked up during the migration to waf
2010-07-17 18:05:12 +04:00
Matthieu Patou
e461e29cd9 s4 unittests: add blackblox test for ktpass 2010-07-17 17:56:16 +04:00
Matthieu Patou
5a8c77f97b s4: create a simple version of ktpass
This script is intended to be a replacement for the ktutil of Windows.
It's use is for exporting keytab that will be used for kerberized
services.
2010-07-17 17:56:16 +04:00
Günther Deschner
3b0c87cf31 s4-smbtorture: run all testcases with bigendian push as well in RPC-BIND.
Guenther
2010-07-16 22:47:30 +02:00