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

23132 Commits

Author SHA1 Message Date
Matthias Dieter Wallnöfer
da90868907 s4:samldb LDB module - finally we can remove the RDN check
This is now dynamically always done by the objectclass LDB module
2010-06-07 14:47:22 +02:00
Matthias Dieter Wallnöfer
9ab3365fa5 s4:ldap.py - enhance the rename tests to demonstrate the functionality 2010-06-07 14:47:21 +02:00
Matthias Dieter Wallnöfer
ec9b6f3c60 s4:objectclass LDB module - finally implement the correct entry rename protections
Only the "systemFlags" check is still missing.
2010-06-07 14:47:21 +02:00
Matthias Dieter Wallnöfer
0ca17eaa15 s4:objectclass LDB module - cosmetic change 2010-06-07 14:47:21 +02:00
Matthias Dieter Wallnöfer
c6020ccb87 s4:objectclass LDB module - remove duplicated code 2010-06-07 14:47:20 +02:00
Matthias Dieter Wallnöfer
95da724325 s4:objectclass LDB module - fix counter variable types 2010-06-07 14:47:20 +02:00
Matthias Dieter Wallnöfer
0408ec11a9 s4:objectclass LDB module - explain why the search can return with an empty return 2010-06-07 14:47:20 +02:00
Matthias Dieter Wallnöfer
6afa5a733c s4:objectclass LDB module - this "talloc_steal" is not necessary
The "parent_dn" was created on the "ac" context which lives anyway longer
than this child request.
2010-06-07 14:47:19 +02:00
Matthias Dieter Wallnöfer
2d3760c04c s4:objectclass LDB module - fix error result if an entry doesn't contain a structural objectclass
We need to return LDB_ERR_UNWILLING_TO_PERFORM (not LDB_ERR_NAMING_VIOLATION).
2010-06-07 14:47:19 +02:00
Matthias Dieter Wallnöfer
2a294d380f s4:objectclass LDB module - use "ldb_oom" for expressing out of memory 2010-06-07 14:47:19 +02:00
Matthias Dieter Wallnöfer
3c4336bf94 s4:objectclass LDB module - fix header and add my copyright 2010-06-07 14:47:19 +02:00
Günther Deschner
5def19e4dc s4-smbtorture: test workstation auth as well in RPC-SPOOLSS-ACCESS.
Guenther
2010-06-07 12:58:46 +02:00
Matthieu Patou
e2061095b5 s4:ldb python bindings - implement comparison on Python LDB Message objects
Coauthors: Jelmer Vernooij, Matthias Dieter Wallnöfer
2010-06-07 11:58:29 +02:00
Matthieu Patou
315aeef0f9 s4: Remove an uselessly exposed control 2010-06-07 11:43:32 +02:00
Günther Deschner
e271a2b861 s4-smbtorture: handle printservers w/o printers in RPC-SPOOLSS-ACCESS.
Guenther
2010-06-07 11:21:26 +02:00
Matthias Dieter Wallnöfer
98b98a29f6 s4:password_hash LDB module - adapt the module to the new "ldb_msg_remove_attr" behaviour 2010-06-06 23:13:15 +02:00
Matthias Dieter Wallnöfer
28cb8839b7 ldb:ldb_msg_remove_attr - provide a better implementation
We can have some special (bad) messages which contain multiple message elements
for the same attribute. The AD password change ones are such an example.
2010-06-06 23:13:00 +02:00
Matthias Dieter Wallnöfer
93db960fae s4:samldb LDB module - this codepart isn't needed due to the objectclass LDB module
When a "computer" entry will be added, also the inherited "user" objectclass is
going to be specified.
2010-06-06 20:48:58 +02:00
Matthias Dieter Wallnöfer
df63b2ca0e s4:get_last_structural_class - only real structural classes can be candidates for fetching the last one
Classes with objectCategory = 1 are always structural, these with
objectCategory = 0 also (as we can see in our Windows 2008 R2 schema file where
class "Person" has 0 but is structural).

Abstract classes and auxiliary ones cannot be considered (objectCategory = 2, 3)

http://msdn.microsoft.com/en-us/library/ms677964(VS.85).aspx
2010-06-06 20:48:42 +02:00
Matthias Dieter Wallnöfer
ae9faaa894 s4:ldap.py - enhance the RDN name test to show that invalid "name" attributes are allowed on add operations 2010-06-06 20:48:24 +02:00
Matthias Dieter Wallnöfer
dd64b253fc s4:rdn_name LDB module - use "ldb_msg_remove_attr" for deleting attributes 2010-06-06 20:48:04 +02:00
Matthias Dieter Wallnöfer
430491b2df s4:rdn_name LDB module - remove "rdn_name_find_attribute"
It does exactly the same as "ldb_msg_find_element".
2010-06-06 20:47:41 +02:00
Matthias Dieter Wallnöfer
cadf774f8b s4:dsdb/common/util.c - provide a better implementation of the "samdb_msg_add_(add/del)val" calls
This supports now also coexisting add and delete message elements with the
same attribute name.
2010-06-06 20:47:10 +02:00
Matthias Dieter Wallnöfer
fa2a86ec61 ldb:ltdb_filter_attrs - fix a counter variable type 2010-06-06 20:46:52 +02:00
Matthias Dieter Wallnöfer
f3f91063bd s4:ldap_server/ldap_backend.c - send back also the extended error message if it exists
This message often contains suggestions how to fix issues.
2010-06-06 20:46:29 +02:00
Matthias Dieter Wallnöfer
45171d6108 s4:ridalloc LDB module - add more "talloc_free"s where useful
Some were missing on failure return branches.
2010-06-06 20:44:01 +02:00
Matthias Dieter Wallnöfer
787a42ef99 s4:acl LDB module - fix counter types where appropriate 2010-06-06 20:43:38 +02:00
Matthias Dieter Wallnöfer
fc037e029e s4:descriptor LDB module - cosmetic fixup 2010-06-06 20:43:19 +02:00
Matthias Dieter Wallnöfer
2fbb8c08ef s4:urgent_replication.py - specify the "dnsRoot" attribute which is requested on "crossRef" entries 2010-06-06 20:43:00 +02:00
Matthias Dieter Wallnöfer
7896a35da3 s4:ldap.py - make sure that also the "posixuser" will be deleted on test breakages 2010-06-06 20:42:42 +02:00
Matthias Dieter Wallnöfer
b8ea2e0757 s4:provision - fix typo in substitution variable 2010-06-06 20:42:19 +02:00
Günther Deschner
6309f7b950 s4-smbtorture: make RPC-SPOOLSS-ACCESS more compatible with older samba releases.
Guenther
2010-06-05 01:26:49 +02:00
Günther Deschner
3ad2fa6728 s4-smbtorture: remove another incarnation of test_ClosePrinter.
This should fix the build; why waf didn't catch that durint make bin/smbtorture4 ?

Guenther
2010-06-05 01:25:05 +02:00
Günther Deschner
e89502e0f5 s4-smbtorture: add RPC-SPOOLSS-ACCESS.
This test creates

- a user
- a user with BUILTIN\Administrators membership
- a user with BUILTIN\Print Operators membership
- a user with SePrintOperatorPrivilege (if available)
- a user with full access in security descriptor

and checks what access rights are granted in spoolss_OpenPrinterEx.

Guenther
2010-06-05 00:35:09 +02:00
Günther Deschner
29c0c103af s4-smbtorture: share test_ClosePrinter between RPC-SPOOLSS and RPC-SPOOLSS-WIN.
Guenther
2010-06-05 00:35:09 +02:00
Günther Deschner
8b3059de97 s4-smbtorture: check error codes in RAP-SAM testsuite.
Guenther
2010-06-05 00:35:09 +02:00
Günther Deschner
bb4693d15e s4-smbtorture: completely rework RPC-SPOOLSS-PRINTER.
This is now a child testsuite to RPC-SPOOLSS. You can call simple tests via
RPC-SPOOLSS-{addprinter,addprinterex}-testname.

Guenther
2010-06-04 14:24:24 +02:00
Günther Deschner
789125f9a4 s4-smbtorture: rework order of test in RPC-SPOOLSS-PRINTSERVER a bit.
Guenther
2010-06-04 14:24:05 +02:00
Günther Deschner
e65164ff48 s4-smbtorture: convert RPC-SPOOLSS into a torture suite.
Guenther
2010-06-03 18:31:23 +02:00
Günther Deschner
9884bf7d57 s4-smbtorture: allow to call single tests from a testcase in a testsuite
directly on the commandline.

Guenther
2010-06-03 18:29:46 +02:00
James Peach
3eac633522 libreplace: Fix readline build with libedit.
libedit on MAc OSX 10.5 does not have the rl_completion_t typedef,
but uses a internal typedef names CPPFunction.

Signed-off-by: Günther Deschner <gd@samba.org>
2010-06-03 16:33:43 +02:00
Günther Deschner
8131e9f290 s4-smbtorture: move PrintProcessors winreg test to main RPC-SPOOLSS test.
Guenther
2010-06-03 14:54:49 +02:00
Günther Deschner
6acaa70d64 s4-smbtorture: add test_PrintProcessors_winreg.
This does cross reference checks between spoolss PrintProcessors and entries
stored in winreg.

Guenther
2010-06-03 13:01:40 +02:00
Günther Deschner
4a10635371 s4-smbtorture: refactor test_EnumPrintProcessors().
Guenther
2010-06-03 13:01:16 +02:00
Günther Deschner
3948876f66 s4-smbtorture: only test data up to a length of 9 bytes in test_SetPrinterDataEx_matrix().
Guenther
2010-06-03 11:46:44 +02:00
Matthias Dieter Wallnöfer
74fad2568d s4:ldb_msg_element_compare - fix typo in comment 2010-06-02 09:39:34 +02:00
Matthias Dieter Wallnöfer
6ad27cd7fe s4:lib/ldb/pyldb_util.c - add a cast to quiet a warning
Jelmer, please fix if it isn't correct.
2010-06-02 09:39:18 +02:00
Günther Deschner
23eb2888d9 s4-smbtorture: skip driverName and printerName DsSpooler tests for now.
Guenther
2010-06-01 16:49:25 +02:00
Günther Deschner
582847412a s4-smbtorture: Make sure RPC-SPOOLSS and RPC-SPOOLSS-PRINTER pass against s3.
Printjobs are extremely fragile beasts on paused virtual printers within make
test. Very often the printq updater in the background is not fast enough, so
subsequent tests don't get to the updated information. Something to remember and
to work on later...

Guenther
2010-06-01 16:49:24 +02:00
Anatoliy Atanasov
3bae05d286 s4: check the sacl and dacl pointers on the old sd 2010-06-01 16:52:46 +03:00