1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

17298 Commits

Author SHA1 Message Date
Oliver Liebel
b76f383eef Use DIGEST-MD5 authentication for OpenLDAP replication
This avoids passing rootdn passwords or replicated data in cleartext
across the network.

Signed-of-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit 67373c143a1d8a9f310fd116dbf81c1dd123b75f)
2008-09-08 14:39:54 +10:00
Andrew Bartlett
a33eaf564f Add definition for SYSTEM_FLAG_ATTR_IS_RDN
(This used to be commit 36f727c4a73ffc8634692b0c5645343cb414de93)
2008-09-08 14:33:05 +10:00
Andrew Bartlett
171986aea2 Move blackbox.smbclient to test against the member server.
The DC is now using smb signing, so testing for the old SMB versions
won't work.

Add a new test script to check 'net join' independent of
blackbox.smbclient.

Andrew Bartlett
(This used to be commit 44ff392ffea52e89a3ac096a6d381ae540d3473c)
2008-09-08 14:18:04 +10:00
Andrew Bartlett
3eb6f79a02 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into trusted-domains
(This used to be commit a057c3ed9df2670e5cad5f1807e280d77eb58cb0)
2008-09-08 12:54:13 +10:00
Andrew Bartlett
dadd59ba40 Simplfy SetSecrets behaviour in line with RPC-LSA and Win2008.
(This used to be commit 07cb8db799cc22685af4bb63285fa10115790ce1)
2008-09-08 12:46:04 +10:00
Andrew Bartlett
c222f8196a Try to implement the right logic for systemFlags
The MS-ADTS document has quite detailed instrucitons on how these
flags should be processed.  This change also causes the correct
sign-wrapping to occour, as these are declared as signed integers.

Andrew Bartlett
(This used to be commit 5c3d237a6d721dc75166bdc5ac0c6e76a4495bf7)
2008-09-08 11:10:24 +10:00
Andrew Bartlett
4c386ce366 Don't expose passwords, even to the administrator.
This ensures they don't leak over LDAP, but does not prevent access,
as ldbsearch locally still bypasses these controls.

Andrew Bartlett
(This used to be commit fa3f3bab33001770a9d7e33875bf212636f6c128)
2008-09-08 11:09:02 +10:00
Andrew Bartlett
b3cee235f5 More work towards trusted domains support in Samba4's LSA
Make 'lsar_CreateTrustedDomain' consistant with
lsar_CreateTrustedDomainEx{,2} by renaming handle -> policy_handle

Implement LSA server logic to create the cn=users trust account for
incoming trusts.

Andrew Bartlett
(This used to be commit d87b655e20b7c38756774cec2e5898af38c46786)
2008-09-08 10:55:34 +10:00
Stefan Metzmacher
1efff73068 ndr_compression: add XPRESS compression support
metze
(This used to be commit 1432a96d37e367d9d97d48b69c6f16351a9ad066)
2008-09-07 19:20:41 +02:00
Matthieu Suiche
008c9a6887 lzxpress: Import of lzxpress compression
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit fd84c5a08f7e8d6402e5f68eede546eb092d22aa)
2008-09-07 19:19:24 +02:00
Stefan Metzmacher
6e0335f864 ndr_compression: fix the build after lzxpress_decompress() prototype change
metze
(This used to be commit b36056aac3f55587d2b3e7b66feea8173dbc67f0)
2008-09-07 19:18:48 +02:00
Matthieu Suiche
1825077840 lzxpress: fix for decompression...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(This used to be commit ee505df3742dac0af8eec8b9b27d1e1f5ef54ca9)
2008-09-07 19:18:17 +02:00
Simo Sorce
14965b7260 Always free tmp contexts before returning
(This used to be commit 40b71bbd718f6dee70c0611e527f55c56623dea6)
2008-09-06 12:33:27 -04:00
Stefan Metzmacher
95df0fddf6 zlib: we require zlib-1.2.3 or higher
metze
(This used to be commit 3f4eb091f0dcc53acbfdc63a8d82a5a0f28954a6)
2008-09-06 16:16:41 +02:00
Stefan Metzmacher
5631a1b9bc Revert "zlib: add inflateReset2()..."
This reverts commit 2a4fb661d7e3d601a5eb9ccecb4d4f2b07073097.

(we don't need inflateReset2 anymore)

metze
(This used to be commit ac43081b93966b545928230f7af8654b942432da)
2008-09-06 16:16:41 +02:00
Stefan Metzmacher
c285076f29 Revert "zlib: we don't need the inflateReset2 prototype twice"
This reverts commit 0dbbc287f65a51330c5309df5a96b3acd4d044d5.

(we don't need inflateReset2 anymore)

metze
(This used to be commit 426d129dfff1e2d3750884abb68089ff1850e640)
2008-09-06 16:16:41 +02:00
Stefan Metzmacher
253e222831 ndr_compression: change debug levels
metze
(This used to be commit 83446e22dd1eda958ef62bbe998da0a47b9ff8ef)
2008-09-06 16:16:40 +02:00
Stefan Metzmacher
3b8c11b4d9 ndr_compression: use deflateReset() together with defalteSetDictionary()
metze
(This used to be commit dcc57512b030995d9b186c7a6cb3b304d5680867)
2008-09-06 16:16:00 +02:00
Stefan Metzmacher
79cc502e5d ndr_compression: use inflateReset() and inflateSetDictionary() instead of inflateReset2()
Now we can use an unmodified system zlib-1.2.3

metze
(This used to be commit d68e36b485239cbaf99a6dce3f3bf52b4abcd06d)
2008-09-06 16:15:39 +02:00
Jeremy Allison
56b6b4a68f Don't compare identity, it'll never be different.
Jeremy.
(This used to be commit 840369b5534eee21818b9d3677404b0fc60a0219)
2008-09-05 21:47:06 -07:00
Oliver Liebel
86d5c3b069 Remove <tab> in OpenLDAP MMR config
Signed-of-by: Andrew Bartlett <abartlet@samba.org>
(This used to be commit 80f31c3272b8bc803629c27357033fd325529db1)
2008-09-06 13:12:19 +10:00
Andrew Bartlett
d104a706d1 Make SMB signing work with Windows 2008 and kerberos.
Pinched from b53e6387e30010509034835acf88b91b380ff44a by metze.

Andrew Bartlett
(This used to be commit d55602e23e7947462cb402b20b2d354b96aa7ba3)
2008-09-06 09:07:41 +10:00
Jeremy Allison
0d0fddf8ae Added tests that show that write time update is immediate
when changing file size using SMBwrite of size zero,
SET_END_OF_FILE, or SET_ALLOCATION_SIZE - no 2 second
delay in these cases.
Jeremy.
(This used to be commit 3aa7523d7750fe30d1e6bb5a75ac42b681b9e493)
2008-09-05 14:24:36 -07:00
Andrew Bartlett
b7326979e9 Add a new error code
(This used to be commit b52fba5b2c63a24acbfc7e3e989c16b691d98162)
2008-09-05 16:46:12 +10:00
Andrew Bartlett
2c2fde57fa Update copyright
(This used to be commit edea162a0e11f03b4b6069388abbca099f097386)
2008-09-05 16:45:58 +10:00
Andrew Bartlett
07a3b7a930 Update copyright, I've been working here many long years...
(This used to be commit 842ab594124198453fc88f46ab83b712a7d34dc1)
2008-09-05 16:45:37 +10:00
Andrew Bartlett
059cd93497 Move our DC to implement mandetory signing.
(this does not change the file server role, and only really changes
what 'server signing = auto' means)

Optional signing really isn't any benifit to network security.

In doing so, allow anonymous clients (if permitted by policy) to log
in without signing, as Samba3 does not sign these connections (which
would use an all-zero key, so pointless).

Andrew Bartlett
(This used to be commit 468bf839c500ed1a26ab9a358ee64a4c0a695797)
2008-09-05 16:45:10 +10:00
Andrew Bartlett
b7a1640b38 With a windows 2008 client, even anonymous requires signing...
Andrew Bartlett
(This used to be commit a89f9818180e8fb868975c444c4d0e5aaa8d4e79)
2008-09-05 16:24:44 +10:00
Andrew Bartlett
19fb3b0199 More work to implement LSA CreateTrustedDomainEx2
We still don't get the format inside the encrypted blob correct
however.

Andrew Bartlett
(This used to be commit 99a3abda09716c064b3e9a37c4a79a8f62444eca)
2008-09-04 16:06:38 +10:00
Andrew Tridgell
1929b2fb51 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit c273d63f94c430a4f553085efb0d6e31a99e5853)
2008-09-04 12:49:29 +10:00
Andrew Bartlett
b533a1f4bf Merge commit 'origin/v4-0-test' into trusted-domains
(This used to be commit b599b83a13db90b50a5422ff73daa63648b1e8cd)
2008-09-04 11:32:32 +10:00
Jelmer Vernooij
fbbe799e4e Regenerate SWIG file.
(This used to be commit e8ba65c4db986fcedf7008d05d8f8846f78a98f1)
2008-09-03 22:55:24 +02:00
Jelmer Vernooij
24a9181f25 Avoid using version call for version string.
(This used to be commit 1897cef508c8bea817c510bd9023d794cb983864)
2008-09-03 22:29:53 +02:00
Jelmer Vernooij
1a1c304051 Allow overriding shared library policy using environment variable.
(This used to be commit d5c61f470d7aa6dd0e5a22e8718d53a69cbbc239)
2008-09-03 22:26:02 +02:00
Jelmer Vernooij
a2618d05f9 Fix embedding of Samba 4.
(This used to be commit 3862f3132549332e0a44fad65d7c49a27e1dbd4a)
2008-09-03 14:10:35 +02:00
Andrew Bartlett
b936d0f3be Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into 4-0-abartlet
(This used to be commit 9590805bcbdd1924eda5a69978ffac7ec7603451)
2008-09-03 15:34:44 +10:00
Andrew Bartlett
a35263e1ab Implement NETLOGON PAC verfication on the server-side
This is implemented by means of a message to the KDC, to avoid having
to link most of the KDC into netlogon.

Andrew Bartlett
(This used to be commit 82fcd7941f5c54da2d994c8bd99dd8d86299a296)
2008-09-03 15:30:17 +10:00
Andrew Bartlett
baf0b36081 Merge krb5_cksumtype_to_enctype from Heimdal svn -r 23719
(This used to be commit cc1df3c002e6af25add3c8ae20e7efc2ab6f2fa8)
2008-09-03 14:20:30 +10:00
Andrew Bartlett
ef57d9587b Test a few more error cases in RPC-PAC
(This used to be commit 50502b3b8faf89cf5ad396102f4fe80eaa213908)
2008-09-03 14:19:16 +10:00
Andrew Bartlett
5dae44e88e Start testing CreateTrustedDomainEx2
Andrew Bartlett
(This used to be commit 91ae8dca254aa8c032daf0c87fa2a47760d32586)
2008-09-02 11:31:46 +10:00
Andrew Bartlett
279ca74493 Share IDL between the LSA and drsblob representations of trusts
(This used to be commit e5520706c88911c66b3ce5817e371900212ca083)
2008-09-02 11:31:17 +10:00
Andrew Bartlett
35c8899949 Follow MS-LSAD 3.1.4.7.12 and set defaults when creating a trust.
Also check we get the defaults correct with a query in the torture
suite.

Andrew Bartlett
(This used to be commit b55a1b63cc2f7de889f046e975e3414bc5000613)
2008-09-01 14:43:00 +10:00
Andrew Tridgell
e82f218732 Merge branch 'v4-0-test' of ssh://git.samba.org/data/git/samba into v4-0-test
(This used to be commit f008c3b6ee324056fd9b63f6151ad6849640c959)
2008-08-30 07:38:02 +10:00
Andrew Tridgell
9817f3d785 Add a setexpiry operation in samdb.py
This makes it easy to set the expiry (or no expiry) for a samdb user
(This used to be commit 25171f18a4b242b5a731f4ac1eefc51cc82efd74)
2008-08-30 07:32:44 +10:00
Andrew Tridgell
a5f4ffe042 added a simple script for setting password expiry
(This used to be commit cf37126ac7b833a3a739b151157c296afc0c979c)
2008-08-30 07:23:06 +10:00
Andrew Bartlett
60936dd2c4 Start implementing the server-sde NETLOGON PAC verification.
(This used to be commit 8741e8fee619cccd84f2f10e00426df1d4f34074)
2008-08-29 18:05:06 +10:00
Andrew Bartlett
81dcc99e9a It turns out that the Netlogon PAC verification is encrypted.
This test now passes against Win2k3, and a implementation in the
Samba4 server should follow shortly.

Andrew Bartlett
(This used to be commit c6b8ba893dd3ed90bca32c0ae89fd33be729c238)
2008-08-29 15:06:30 +10:00
Andrew Bartlett
bfec8985cf Update packaging per suggestions on the review
Also make the build more C++ friendly with a patch from Brad Hards.

Andrew Bartlett
(This used to be commit 1367b94c8fb421dd517e7e8044af7606a4693365)
2008-08-29 13:01:52 +10:00
Andrew Bartlett
adb207e903 Further rework the RPC-PAC test.
This would seem to match the documentation requirements for the PAC
verfication over NETLOGON, but I can't get Win2k3 to accept it so far.

Andrew Bartlett
(This used to be commit acfa87f3411a61bdd9066fbbba2bcfbe2a60cbbe)
2008-08-28 16:30:17 +10:00
Andrew Bartlett
c79dff2e9b Heimdal provides Kerberos PAC parsing routines. Use them.
This uses Heimdal's PAC parsing code in the:
 - LOCAL-PAC test
 - gensec_gssapi server
 - KDC (where is was already used, the support code refactored from here)

In addition, the service and KDC checksums are recorded in the struct
auth_serversupplied_info, allowing them to be extracted for validation
across NETLOGON.

Andrew Bartlett
(This used to be commit 418b440a7b8cdb53035045f3981d47b078be6c1e)
2008-08-28 16:28:47 +10:00