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

64975 Commits

Author SHA1 Message Date
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
34692556be s4:blackblock/ktpass: use test specific user name
metze
2010-07-31 11:22:15 +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
9e0000224a s3-printing: remove unused get_local_printer_publishing_data() call.
Guenther
2010-07-31 00:54:45 +02:00
Günther Deschner
813fbbd68c s3-build: avoid to globally include printing and spoolss headers.
This shrinks precompiled headers by 3MB and will slightly speed up any build.

Guenther
2010-07-31 00:50:31 +02:00
Simo Sorce
28c74564c5 cleanups: Trailing spaces, line length, etc... 2010-07-30 16:34:53 -04:00
Simo Sorce
57bd974e58 s3-dcerpc: Use dcerpc_guess_sizes in the server code too. 2010-07-30 14:55:28 -04:00
Simo Sorce
4c64e4d4af s3-dceprc: Improve dcerpc_guess_sizes() interface
Make it possible to pass in the NDR padding size so that theoretically
client and server code can decide to use a different alignment.

Pass in the header length as a parameter so that this function can be used for
different type of packets.

Make sure padding size will not make the fragment exceed the maximum length.

Calculate padding taking in account the header length.
2010-07-30 14:55:28 -04:00
Simo Sorce
3469fbc5e4 s3-dcerpc: rationalize packet creation in the server code
Move all related functions into create_next_packet, but make it transport
neutral (not pass in pipse_struct)
2010-07-30 14:55:27 -04:00
Simo Sorce
a9d3a596a7 s3-dcerpc: Make function to guess pdu sizes common. 2010-07-30 14:55:27 -04:00
Simo Sorce
9329a9fe84 s3-dceprc: consolidate use of dcerpc_push_dcerpc_auth() 2010-07-30 14:55:27 -04:00
Simo Sorce
da6c246aac s3-dcerpc: Remove unused functions 2010-07-30 14:55:27 -04:00
Simo Sorce
186f93633b s3-dcerpc: use common spengo wrapper code for client SPNEGO/NTLMSSP 2010-07-30 14:55:27 -04:00
Simo Sorce
984438ca15 s3-dcerpc: add sign/seal support when using SPNEGO/KRB5 2010-07-30 14:55:27 -04:00
Simo Sorce
0b24e8e869 s3-dcerpc: Add SPNEGO incapsulation for KRB5 auth 2010-07-30 14:55:27 -04:00
Simo Sorce
e286b9c0bd rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for ntlmssp 2010-07-30 14:55:27 -04:00
Volker Lendecke
fcdda8f443 s3: Remove "cli" from "struct finfo" 2010-07-30 17:01:33 +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 104c419345.
2010-07-30 11:23:06 +02:00
Jeremy Allison
b7f029016a We should be using the winbindd separator in this case, not hardcoding a \\ value.
Jeremy.
2010-07-29 13:54:22 -07:00
Volker Lendecke
a8cd3ef99e s3: Do the ftruncate write cache optimization in one place
Instead of hand-tuning all the cases that are below this piece of code, this is
a general case that we can catch upfront.
2010-07-29 22:46:44 +02:00
Volker Lendecke
a86cad3921 Revert "s3: Avoid pwrite calls for the 1-byte writes with zero content"
This reverts commit 6763730304.
2010-07-29 22:46:44 +02:00
Volker Lendecke
fec8505e0b s3: Avoid an unnecessary ftruncate call
If we just created the file, it has length 0 by definition. This is still done
while holding the share mode lock, so no race around wrt other cifs clients.
2010-07-29 22:46:36 +02:00
Jeremy Allison
4f43030482 Fix bug #7589 - ntlm_auth fails to use cached credentials.
In handling the WINBINDD_PAM_AUTH message winbindd canonicalizes a *copy*
of the mapped username, but fails to canonicalize the actual username
sent to the backend domain process. When "winbind default domain"
is set this can lead to credentials being cached with an index of
user: user, not DOMAIN\user. All other code paths that use
canonicalize_username() (WINBINDD_PAM_CHAUTHTOK, WINBINDD_PAM_LOGOFF)
correctly canonicalize the data sent to the backend. All calls
the can cause credentials to be looked up (PAM_CHAUTHTOK etc.)
correctly call canonicalize_username() to create the credential
lookup key.

Jeremy.
2010-07-29 12:44:00 -07:00
Andreas Schneider
e8d386704e s3-spoolss: Increased debug level for trace output. 2010-07-29 20:48:01 +02:00
Andreas Schneider
b2be8f2267 s3-spoolss: Fixed debug statements and increased level. 2010-07-29 20:45:07 +02:00
Jeremy Allison
bc1c82ea13 Fix tdb_check() to work with read-only tdb databases. The function tdb_lockall() uses F_WRLCK internally, which doesn't work on a fd opened with O_RDONLY. Use tdb_lockall_read() instead.
Jeremy.
2010-07-29 08:56:35 +09:30
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
Simo Sorce
e8ac4a8b82 s3-dcerpc: Try to fix build when gssapi_ext.h is not available 2010-07-28 17:12:57 -04:00
Simo Sorce
7c9c075987 Do not refernece pipe_auth_data directly in dcerpc_gssapi.c 2010-07-28 15:53:56 -04:00
Simo Sorce
d17abc69f6 s3-dcerpc: Avoid ifdef, it is handled within dcerpc_gssapi.c already 2010-07-28 15:35:59 -04:00
Volker Lendecke
44add9952e s3: Fix cli_qpathinfo2
Does not fix the DIR_CREATETIME test, but it is definitely an error.
2010-07-28 20:14:25 +02:00
Simo Sorce
c4b3c9ec0f smbd: Fix build warning 2010-07-28 12:44:37 -04:00
Simo Sorce
7eaa15af2c s3-dcerpc: Add sign/seal with gssapi 2010-07-28 12:42:15 -04:00
Simo Sorce
1abcbd70ae s3-dcerpc: Add next authentication step with gssapi 2010-07-28 12:24:44 -04:00
Simo Sorce
135a82e78f s3-decrpc: Introduce gssapi support for dcerpc krb5 auth 2010-07-28 12:24:44 -04:00
Simo Sorce
72088096af rpcclient: Use DCERPC_AUTH_LEVEL_CONNECT if no sign/seal is set for krb5 auth 2010-07-28 12:23:39 -04:00