1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-10 12:58:35 +03:00

11875 Commits

Author SHA1 Message Date
Jelmer Vernooij
5340489807 r21440: Support different variables in environments.
(This used to be commit 1702a663ba4ce6f5803e265a969f2be564fce1e3)
2007-10-10 14:48:35 -05:00
Stefan Metzmacher
f280849a6f r21439: fix compiler warnings
metze
(This used to be commit ac347d7aa588574f6a18229083569608327874d8)
2007-10-10 14:48:35 -05:00
Stefan Metzmacher
837f283f81 r21438: create the PAC element in the same order as w2k3,
maybe there's some broken code in windows which relies
on this...

love: can you merge this to heimdal?

metze
(This used to be commit b64abf9113a939308dc9e92ff7ddaad7be6ab551)
2007-10-10 14:48:35 -05:00
Jelmer Vernooij
127ccc27d4 r21437: Cherrypick typelib tests.
(This used to be commit 9ba814d033412150d383d3687f02775d4efc618e)
2007-10-10 14:48:34 -05:00
Stefan Metzmacher
5cd79db03e r21436: Choose the TGT session key enctype also by checking what enctypes
the krbtgt hdb entry provides.

We need to make sure other KDC's with the same hdb backend data
can accept the TGT. (w2k and w2k3 don't support aes256-cts-hmac-sha1-96 (18)
session keys.)

Love: I'm not sure if this is the correct way of doing it...

metze
(This used to be commit 5840f50d8954e95a7071a90a1c4dcce9ae05d77c)
2007-10-10 14:48:34 -05:00
Stefan Metzmacher
760f438553 r21435: ntPwdHash,lmPwdHash,sambaNTPwdHistory,sambaLMPwdHistory and krb5Key
are not used anymore

metze
(This used to be commit 9e91bd64492c45ee333f5e797d4d492378600356)
2007-10-10 14:48:34 -05:00
Stefan Metzmacher
6e2d85e38b r21434: - get rid of "krb5Key"
- use "sambaPassword" only as virtual attribute for passing
  the cleartext password (in unix charset) into the ldb layer
- store des-cbc-crc, des-cbc-md5 keys in the Primary:Kerberos
  blob to match w2k and w2k3
- aes key support is disabled by default, as we don't know
  exacly how longhorn stores them. use password_hash:create_aes_key=yes
  to force creation of them.
- store the cleartext password in the Primary:CLEARTEXT blob
  if configured

TODO:
 - find out how longhorn stores aes keys
 - find out how the Primary:WDigest blob needs to be constructed
   (not supported by w2k)

metze
(This used to be commit e20b53f6feaaca2cc81ee7d296ca3ff757ee3953)
2007-10-10 14:48:34 -05:00
Jelmer Vernooij
0515f728e6 r21433: Get rid of the COM support code - it's not used and unmaintained. We can
always bring it back if we need to. This code was getting in the way while
refactoring.

Add some tests for TDR.

Get rid of typedef in lib/registry/tdr_regf.idl and fix the
TDR code to be able to deal with it.
(This used to be commit 1ad0f99a439f0d52a735b391bf9900d50171aca5)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
d425796fff r21432: Handle properties on tagged types in TDR.
(This used to be commit 0d739c7e9807682cd5bc433c3e4f2d4bbe4f1b69)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
f988568787 r21431: More tests, work on support in wireshark for tagged types.
(This used to be commit a91e624af22aae5b460ccf94d2540b8780f90070)
2007-10-10 14:48:33 -05:00
Jelmer Vernooij
8cf122c2d2 r21430: Support tagged types without typedef. This means:
struct foo {
 ...
};

in IDL will now work. This is the first step towards nested types and
using typedefs for partial types (such as "typedef int *bar;"), a requirement
for complex uses of represent_as().
(This used to be commit a716aa70f0c90898e6fcf57d63a2cf4c40e7d4df)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
069f0cc15b r21429: Fix the build.
(This used to be commit 88fbf9af24a346d3d99af32b8574507b0590846a)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
2b43de2ed8 r21428: Handle representation types in Needed().
(This used to be commit 34517c69e67d7eafa00e6fe0072bd04f074cdbde)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ae76a5a928 r21427: Add tests for Needed*(), in preparation of refactoring.
(This used to be commit a21e7b22ac99c66e2b23d0fa694a8a2ea6e7994e)
2007-10-10 14:48:32 -05:00
Jelmer Vernooij
ab975d9d7f r21426: Add more spoolss tests.
(This used to be commit 8b31fba826e5e76031979755f9682a8da5c59148)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
3e208b3f80 r21425: Add ReplyClosePrinter.
(This used to be commit 745d0eae1a0f681f6a08a7cc259834ddbb5fa023)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
2503fe2273 r21424: Add FindClosePrinterNotify.
(This used to be commit 0ed195f45fed12905278ba60eabe02a11b59eb90)
2007-10-10 14:48:31 -05:00
Jelmer Vernooij
e55e7c96f8 r21423: Extend testsuite, check that all bytes have been consumed. DsBind fails that test, so disabling it for now.
(This used to be commit d6026c2046a26f42ca0cd6ebf1f45488fbfb22e1)
2007-10-10 14:48:30 -05:00
Jelmer Vernooij
4b3f75f3a7 r21422: Add IDL for EnumPrinterKey and RemoteFindNextPrinterChangeNotifyEx.
(This used to be commit 883df28d6ebb1993add95174fe2694154995354b)
2007-10-10 14:48:30 -05:00
Volker Lendecke
5ccf0bd16a r21421: Fix a memleak. This made tdb look considerably worse than necessary.
Volker
(This used to be commit 573ba38722e338fb4158dfda181308a1a736c5c0)
2007-10-10 14:48:30 -05:00
Simo Sorce
4ea28ef7c0 r21419: Give some more clue about what's going on
(This used to be commit 76b377d5ad5c115e5fbb24a10d543883f04283a6)
2007-10-10 14:48:29 -05:00
Simo Sorce
d0feaf0c03 r21418: Return the ratio as well
(This used to be commit 56ed4499d69adf57a41632ba12cbfef383a35ab2)
2007-10-10 14:48:29 -05:00
Jelmer Vernooij
446b6bfcba r21416: add missing file
(This used to be commit 5d4dd136ed29c6418377eae1227cae53fc510356)
2007-10-10 14:48:29 -05:00
Jelmer Vernooij
34659685e1 r21415: Add tests for spoolss and drsuapi. Still need to add validators.
(This used to be commit 61cb52b65b9be2fd09a5c5a02536600c0ac500f7)
2007-10-10 14:48:29 -05:00
Jelmer Vernooij
5d6ed2b367 r21414: Fill in IDL for ReplyOpenPrinter.
(This used to be commit 9e6d43c45cec24a391d8134a9c177461aabb3e6c)
2007-10-10 14:48:28 -05:00
Stefan Metzmacher
4db8862f10 r21413: fix pushing of supplementalCredentials
metze
(This used to be commit 18a5bf850bad9643e09e111d8c2c4e2c2efce989)
2007-10-10 14:48:28 -05:00
Volker Lendecke
31b3c38c02 r21412: The last patch also incremented the seqnum when tdb_store failed. Not as bad
as not doing it at all, but needs fixing. Also simplify the logic, I had
missed the "goto out" at the end of the function.

Volker
(This used to be commit ed30a0ff602d0a1d4409bee4faf12b6979b5f4b8)
2007-10-10 14:48:28 -05:00
Jelmer Vernooij
ec587914ed r21411: Add some simple tests for the wireshark NDR generator.
(This used to be commit 361977448210dfd889abca19b520cd259b9d0855)
2007-10-10 14:48:28 -05:00
Volker Lendecke
6cb2ce4275 r21410: We have to increment the sequence number also when tdb_update_hash()
succeeded. Found while testing the brlock seqnum patch.

Tridge, please check!

Volker
(This used to be commit e518c68fc5446304611d096ac2e3cab744734fc3)
2007-10-10 14:48:27 -05:00
Jelmer Vernooij
b0de151fdd r21408: Remove test that uses empty array.
(This used to be commit 33142f7646265a05892f69b52f04fac9a50af914)
2007-10-10 14:48:27 -05:00
Stefan Metzmacher
881743f091 r21407: auto set the len values
metze
(This used to be commit 307aabe0257559a9211f4f627cb38150a24dc40f)
2007-10-10 14:48:27 -05:00
Stefan Metzmacher
0e173fa7b3 r21406: add idl for parsing the 'Packages' and 'Primary:CLEARTEXT' elements
of supplementalCredentials

metze
(This used to be commit b708d0729e03a78868f18fd37c9a01d7c75c900e)
2007-10-10 14:48:27 -05:00
Stefan Metzmacher
3847155cc4 r21405: add support for [flag(STR_NOTERM|NDR_REMAINING)] string_array foo;
this is handles the content of the 'Packages' element in the supplementalCredetials

metze
(This used to be commit 07fe22f82ebe66464ef73274a109d1e21a0d7f0f)
2007-10-10 14:48:26 -05:00
Stefan Metzmacher
683eb22d3f r21404: packages just contain utf16 strings not guids:-)
metze
(This used to be commit 925f1f40cf8318d0a72fe3da958db52ccbf14b39)
2007-10-10 14:48:26 -05:00
Jelmer Vernooij
e586d112e2 r21403: Add netlogon tests.
(This used to be commit a620dc359476de9440f3b84dc8b45f569d103270)
2007-10-10 14:48:26 -05:00
Stefan Metzmacher
8a9a68b707 r21395: fix comments
metze
(This used to be commit 97fc985bd062b6ad5a58dd6ce883a637043283a1)
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
613acb284f r21392: - decode the salt utf16 string into a unix string
- fix parsing of Primary:Kerberos blob

metze
(This used to be commit c6fa95ef2263774901c8871396b4eec5b7409c5e)
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
03e0d675cf r21391: add supporting for
uint16 size;
[relative,subcontext(0),subcontext_size(size),flag(STR_NOTERM|NDR_REMAINING)] string *string;

as

uint16 size;
[relative,charset(UTF16)] uint8 *string[size];

isn't supported by pidl yet...

metze
(This used to be commit 9fcfa658430f04658c692eb26db9280fda6e4e25)
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
ac8669cf5c r21390: move fetching the key version number into the function
which contrusts the keys...

later we need to get the key version number from the
"replPropertyMetaData" attribute entry to the (I assume)
the "unicodePwd" attribute.

msDs-KeyVersionNumber is a constructed attribute,
and is "1" when no "supplementalCredentials" is present.

we need to make some tests with a password change function
which don't give a cleartext to the server...

metze
(This used to be commit 9e4324221764c1413be34d5b14915a86740acc04)
2007-10-10 14:48:25 -05:00
Stefan Metzmacher
b3d0836eac r21389: give a better error when our parser hasn't consumed all data
metze
(This used to be commit 03b06398a405e491ce4e2bc91513a57e0d59466f)
2007-10-10 14:48:24 -05:00
Jelmer Vernooij
b7a46675fb r21386: Run all NDR tests in the buildfarm, import some functions from Samba3's IDL.
(This used to be commit 15a4b81ba0b5eeb25126a0b1a7bea7d3bf921ab2)
2007-10-10 14:48:24 -05:00
Jelmer Vernooij
0fd2600394 r21384: Change warning to pidl warning, fix uppercasing.
(This used to be commit a45a677084ba1bc63a8f74892c12ca6f0d9b5071)
2007-10-10 14:48:24 -05:00
Jelmer Vernooij
f86444b516 r21381: dfs tests.
(This used to be commit 3ef8a6834df63a0bfa68996daea6432e98243d40)
2007-10-10 14:48:24 -05:00
Stefan Metzmacher
f2d9c313c6 r21380: add idl for parsing the Primary:Kerberos blobs
inside the supplementalCredentials attribute

w2k uses keys1 and keys2 where both seem identical
w2k3 only uses keys1 and num_keys2 = 0

the Salt is only stored once for all keys

the following keys are stored:
ENTYPE_DES_CBC_MD5 = 3
ENTYPE_DES_CBC_CRC = 1

metze
(This used to be commit 03d7d05e4fa607271f84878bc238e7cf0560bc67)
2007-10-10 14:48:23 -05:00
Jelmer Vernooij
3a93b655dd r21378: Add simple NDR epmap test.
(This used to be commit b29170c8eaafa3a573b0e26efecd6cacd68250b6)
2007-10-10 14:48:23 -05:00
Jelmer Vernooij
f88c667e6a r21377: More tests.
(This used to be commit f3680ba118d4de4c535ceabda69e3b9f00424cd6)
2007-10-10 14:48:23 -05:00
Jelmer Vernooij
2ed0f61a62 r21376: More tests.
(This used to be commit 2e2b15e3d258b66c3a150b97748ff6b4eed69a9a)
2007-10-10 14:48:23 -05:00
Jelmer Vernooij
612cfb84d9 r21375: More lsa tests.
(This used to be commit 88fa90778a0e1f5efca08e5e6ba1b165399de30c)
2007-10-10 14:48:22 -05:00
Jelmer Vernooij
5f23c888af r21374: lsa tests
(This used to be commit bfc2a1c50596ac3aee871de63fdd99362a65d7d8)
2007-10-10 14:48:22 -05:00
Jelmer Vernooij
8bcad6b901 r21373: More tests.
(This used to be commit 83a47e30b59f5289cdcb68ba54aa236795bc42b2)
2007-10-10 14:48:22 -05:00