1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

63628 Commits

Author SHA1 Message Date
Günther Deschner
e271a2b861 s4-smbtorture: handle printservers w/o printers in RPC-SPOOLSS-ACCESS.
Guenther
2010-06-07 11:21:26 +02:00
Günther Deschner
4591fdbc18 s3-privileges: use LUID defines from lsa IDL.
Guenther
2010-06-07 10:33:36 +02:00
Matthew McGillis
f769671780 Fix bug with incorrect flag values for inherited ace in some cases. 2010-06-07 10:19:18 +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
Jeremy Allison
62e0a744e2 Fix a long-standing bug with async io that would only be triggered by SMB2.
On normal or shutdown close, ensure we wait for any pending IO to
complete before returning. Implement a blocking aio_suspend inside
vfs_aio_fork.c. These changes pass make test when the aio_fork module
is used by default on the test shares.

Jeremy.
2010-06-04 21:00:24 -07:00
Björn Jacke
79ec886aa4 s3:build: add shared lib flag for HP-UX compiler 2010-06-05 02:15:29 +02:00
Björn Jacke
a973eb1968 s3: fix build on Heimdal based systems like NetBSD5 2010-06-05 02:15:29 +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
b3ebebd3b1 s3-rpcclient: allow to add access_mask in cmd_spoolss_open_printer_ex().
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
Jeremy Allison
fb79a8d7f0 Oops. Forgot to re-initialize the aio_ex pointer from sival_ptr. 2010-06-04 13:49:38 -07:00
Jeremy Allison
b12409a480 wait_for_aio_completion() should return 0 on non-aio compiled case. 2010-06-04 11:41:57 -07:00
Jeremy Allison
be5133f1e0 Rename req -> smbreq. 2010-06-04 11:41:38 -07:00
Jeremy Allison
e0acee4919 Change smbd_aio_complete_mid() -> smbd_aio_complete_aio_ex(). Simplifies
the code and eliminates find_aio_ex().

Jeremy.
2010-06-04 11:30:46 -07:00
Andreas Schneider
15f64af8e3 s3-rpc: Create a file with all functions for a internal named pipe.
This makes it possible to use the samr rpc server in winbind without
linking in smbd.

Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:50 -04:00
Andreas Schneider
3344adc340 s3-rpc: Seperate rpc_srv_register for plain connection.
This will make it possible to create plain rpc named pipe connnections.

Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:43 -04:00
Andreas Schneider
9097bdddd0 s3-auth: Moved smbd user functions to a generic place.
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:37 -04:00
Andreas Schneider
fad86ddf55 s3-smbd: Remove unneeded dependency of map_username to globals.c.
Reviewed-by: Simo Sorce <idra@samba.org>
2010-06-04 12:12:08 -04:00
Günther Deschner
09daf63c93 s3-selftest: do not call main RPC-SPOOLSS testsuite.
The tests formerly available in there can now be accessed via
RPC-SPOOLSS-PRINTSERVER.

Guenther
2010-06-04 14:31:08 +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
Björn Jacke
e8576ef9f4 ѕ3:Makefile: use PIC instead of PIE flags for shared libs
otherwise shared lib builds are broken on some platforms
2010-06-04 00:57:38 +02:00
Jeremy Allison
a73b846802 Allow us to cope correctly with NT_STATUS_MORE_PROCESSING_REQUIRED when downgrading from krb5 to NTLMSSP over SMB2.
Jeremy.
2010-06-03 11:50:08 -07:00
Jeremy Allison
e47d77832b Found by Guenther - fix up our fallback paths from krb5 to NTLMSSP when using SMB2.
Jeremy.
2010-06-03 11:18:11 -07: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
30a9ddccff s3-spoolss: add and use spoolss_printerinfo2_to_setprinterinfo2().
This fixes some invalid typecasts.

Guenther
2010-06-03 16:32:49 +02:00
Volker Lendecke
12d1a3b0a5 s3: Fix the build of the nfsv4 acl code 2010-06-03 16:10:47 +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