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

3991 Commits

Author SHA1 Message Date
Andrew Bartlett
df64302213 r5902: A rather large change...
I wanted to add a simple 'workstation' argument to the DCERPC
authenticated binding calls, but this patch kind of grew from there.

With SCHANNEL, the 'workstation' name (the netbios name of the client)
matters, as this is what ties the session between the NETLOGON ops and
the SCHANNEL bind.  This changes a lot of files, and these will again
be changed when jelmer does the credentials work.

I also correct some schannel IDL to distinguish between workstation
names and account names.  The distinction matters for domain trust
accounts.

Issues in handling this (issues with lifetime of talloc pointers)
caused me to change the 'creds_CredentialsState' and 'struct
dcerpc_binding' pointers to always be talloc()ed pointers.

In the schannel DB, we now store both the domain and computername, and
query on both.  This should ensure we fault correctly when the domain
is specified incorrectly in the SCHANNEL bind.

In the RPC-SCHANNEL test, I finally fixed a bug that vl pointed out,
where the comment claimed we re-used a connection, but in fact we made
a new connection.

This was achived by breaking apart some of the
dcerpc_secondary_connection() logic.

The addition of workstation handling was also propogated to NTLMSSP
and GENSEC, for completeness.

The RPC-SAMSYNC test has been cleaned up a little, using a loop over
usernames/passwords rather than manually expanded tests.  This will be
expanded further (the code in #if 0 in this patch) to use a newly
created user account for testing.

In making this test pass test_rpc.sh, I found a bug in the RPC-ECHO
server, caused by the removal of [ref] and the assoicated pointer from
the IDL.  This has been re-added, until the underlying pidl issues are
solved.
(This used to be commit 824289dcc20908ddec957a4a892a103eec2da9b9)
2007-10-10 13:11:07 -05:00
Andrew Bartlett
4037a7e80c r5901: Add another option to the test script - the realm, which must match
the real ream, not just the short domain name.

Andrew Bartlett
(This used to be commit d585e1a759888df01cfabfec2d6d5506cf3bd426)
2007-10-10 13:11:07 -05:00
Andrew Bartlett
a25443dbeb r5900: Use flatname to specify the netbios domain name (matches what win2k3
uses for trusted domain records) in the secrets join records.

Andrew Bartlett
(This used to be commit a6c502832c4ef471bd423b795f210abf3bb96ca5)
2007-10-10 13:11:07 -05:00
Andrew Bartlett
439056c1db r5899: Fix spelling.
Andrew Bartlett
(This used to be commit 50af206477d8834d58629131e8cc994fb194adfe)
2007-10-10 13:11:07 -05:00
Andrew Bartlett
3240f01636 r5898: Handle errors in the 'sync' name and IP address handling code.
Andrew Bartlett
(This used to be commit 6b8b40f73bd8b7ce23effc8eb1d808db77bcbf8b)
2007-10-10 13:11:07 -05:00
Andrew Bartlett
48e7cfbe1d r5895: Remove old auth_domain code - to be replaced with entirely new implementation.
Andrew Bartlett
(This used to be commit a16339729d25fc5b12846207afe3800df7fca8d5)
2007-10-10 13:11:06 -05:00
Andrew Bartlett
5aa2646be8 r5879: Rename SAMR_FIELD_WORKSTATION to SAMR_FIELD_WORKSTATIONS - it is a list.
Andrew Bartlett
(This used to be commit 7822101cb5213f192f3195648970784a9de4fac4)
2007-10-10 13:11:06 -05:00
Andrew Bartlett
2b41ba049e r5878: Be clear which machine name (We have one worksation, and one BDC) we
are doing logins with.

Andrew Bartlett
(This used to be commit b7297c44faea0ae8b38fb9a90c22c5be3c8f689f)
2007-10-10 13:11:06 -05:00
Andrew Bartlett
928af7e6ff r5877: It is not an error to have a zero-length secret, after decryption.
Andrew Bartlett
(This used to be commit b484776cc4d48690d45c668f9253015eb0d6207d)
2007-10-10 13:11:06 -05:00
Andrew Bartlett
00ac91fa29 r5876: Add a test account for the duration of the samsync - to ensure we have
a good variety of things to test against.

Add code to testjoin to handle this just like test machine accounts

Soon I'll remove the 'must change password' flag, so we can do logins with it.

Andrew Bartlett
(This used to be commit 08b47e2dc067f7e4a52b982d358ff1b0209cc1df)
2007-10-10 13:11:06 -05:00
Jelmer Vernooij
d4c0da18a7 r5871: Remove file with unused function (that uses fstring)
Remove fstring usage from version.c
(This used to be commit d25163159c19d6f948551438f459d161ba6ea4ac)
2007-10-10 13:11:06 -05:00
Jelmer Vernooij
72621f838e r5867: winreg depends on initshutdown now (uses initshutdown_String)
(This used to be commit ff478d44bed302f4a27edea56e9b7e897e62c769)
2007-10-10 13:11:05 -05:00
Jelmer Vernooij
ef213b0248 r5866: Add InitShutdown IDL and torture test.
Implement push side of NDR_LEN4|NDR_NOTERM strings (pull side was already present)
(This used to be commit ea61ec1122841716ed5d90085ba79e7bf691bd6a)
2007-10-10 13:11:05 -05:00
Jelmer Vernooij
85943483fb r5853: Move some of the functions not specific to the Samba NDR parser generator
to a new ndr.pm.
Add function that can generate a "OrderTable" describing the order
in which the NDR data will be pushed/pulled.
(This used to be commit 2603a7326d7e54a012a95e37fd54433b85d8acc4)
2007-10-10 13:11:05 -05:00
Jelmer Vernooij
795f593757 r5852: Rename ndr.pm to ndr_parser.pm
I'm going to add a ndr.pm later on that'll generate a
tree with necessary information for the two NDR backends
(eparser, ndr_parser) containing alignment info, etc.
(This used to be commit 5162daa9464cd64930f5a8fd0d7b381b122c931d)
2007-10-10 13:11:05 -05:00
Stefan Metzmacher
85e0b90cf3 r5850: enable parsing of revision 4 security acl's
metze
(This used to be commit 2a6a075c7da2da7bb62fb42936252717bb9d0593)
2007-10-10 13:11:05 -05:00
Stefan Metzmacher
c2875e51e8 r5839: add LDAP DirSync control idl
metze
(This used to be commit 29d898a338e20c76a2270557b0c401a9672af094)
2007-10-10 13:11:05 -05:00
Stefan Metzmacher
c638a8380d r5830: start to analyse the attribute values, depending on the attribute type
metze
(This used to be commit 63229b9503950847fbecd6ec22171d8c18d7ac91)
2007-10-10 13:11:05 -05:00
Stefan Metzmacher
d7b5a565ef r5828: add some idl for DsAddEntry()
metze
(This used to be commit 3e6ec811288d74921bf3e393213e75d928156772)
2007-10-10 13:11:04 -05:00
Tim Potter
1d64203954 r5827: Make ndrdump accept a uuid as well as a pipe name to specify
which rpc interface to use.
(This used to be commit d59bc9dc9bb3a11dd07b7862ea10d1b32e670598)
2007-10-10 13:11:04 -05:00
Stefan Metzmacher
55546176c6 r5800: fix recursiv printing in ndr_print_DsGetNCChangesInfo1()
metze
(This used to be commit 1084ad4bfce6bc20537f5bfccb5a25b60f503b32)
2007-10-10 13:11:04 -05:00
Stefan Metzmacher
cead12981f r5799: more DsGetNCChanges updates, I'm starting to understand it...
also add a really simple torture test for DsGetNCChanges

metze
(This used to be commit bcde67a7eff9ad82919e90fd64c02a17610c6f0e)
2007-10-10 13:11:04 -05:00
Stefan Metzmacher
9743bdf86f r5798: limit the size of an sid, 28 bytes complete is the biggest SID
that can be handled.

tridge: do you think it would make sense to change the sub_auth[num_auths] to sub_auth[5],
        so we can copy the struct by sid1 = sid2;
	comments please

metze
(This used to be commit 2fc8a604b003a6c3425eb7bbf77fbe467c956085)
2007-10-10 13:11:04 -05:00
Stefan Metzmacher
a81a2c22a2 r5797: - add idl property [subcontext_size()]
this can be used like this
  [subcontext_size(28),subcontext(0)] dom_sid sid;

  this descripes a fixed 28 byte buffer which contains a dom_sid,
  and the rest of the buffer is padded with zero bytes if the dom_sid doesn't
  need all 28 byte in it's ndr encoding.

- only push and pull the subcontext when we are in the NDR_SCALARS section
  (tridge, jelmer: I hope this is correct for all cases...!?:-)

metze
(This used to be commit 483bb1418fd5c70c418142ade80c1e286adfa05a)
2007-10-10 13:11:04 -05:00
Stefan Metzmacher
ebc34d2157 r5796: add ndr_* function for int8 and int16
metze
(This used to be commit 8ac0928a914c1cee3f0493b515f03c6422a8b71a)
2007-10-10 13:11:03 -05:00
Jelmer Vernooij
6647713061 r5785: Fix subcontext pushes
(This used to be commit 0d590906cd7706ebd8c6d5921546291e98067864)
2007-10-10 13:11:03 -05:00
Andrew Bartlett
d830fcd7d1 r5783: Test renaming of accounts in the RPC-SAMR test, and add support into
the SAMR server.

Andrew Bartlett
(This used to be commit fd748f9d2f8f354f76587d92b94de83bffe1c6dc)
2007-10-10 13:11:03 -05:00
Tim Potter
d93d5f967f r5782: Use standard input for reading packet data if filename not specified.
(This used to be commit c3c6dafc3120ed5018a27a882cbc09e9d05fac33)
2007-10-10 13:11:03 -05:00
Tim Potter
ee461300a5 r5781: Fix build.
(This used to be commit 35354456b2ab2fa173359fa16d8accb13a8fac7d)
2007-10-10 13:11:03 -05:00
Tim Potter
03cd26e353 r5780: Remove unused arguments.
(This used to be commit 1ee84e373e2b44c96f9353f194b766d6a144e7ce)
2007-10-10 13:11:03 -05:00
Tim Potter
639edc4097 r5779: Remove signal and timeout gubbage from tdb.
(This used to be commit dbb56e9a59cf00d57b09ded6d60bf9424d5f1f4c)
2007-10-10 13:11:03 -05:00
Tim Potter
1fb7f63aa9 r5778: Remove tdb_set_lock_alarm() function from wrappers at tridge's request.
(This used to be commit 8b83eca265b6ad5f33e90beac67f3e1621010764)
2007-10-10 13:11:02 -05:00
Tim Potter
fd0aa010be r5777: At some stage SIG_ATOMIC_T was renamed to sig_atomic_t. This should
fix abartlet's compile problem.
(This used to be commit 170139035ab1e7659a82e1e2d40990f4d7f146c3)
2007-10-10 13:11:02 -05:00
Jelmer Vernooij
e9ca6e48ff r5775: Remove some unused functions (unions are no longer as special as they used to be)
Add oxid mapping table support in DCOM
(This used to be commit e193555f0eec2dda8c8760e9668181200fef0a1e)
2007-10-10 13:11:02 -05:00
Tim Potter
f58143b025 r5769: Fix unused variable warning.
(This used to be commit 80dfac3640443a41f7e45e9164ca1a6749494011)
2007-10-10 13:11:02 -05:00
Stefan Metzmacher
768f82cbc6 r5766: get some more DsGetNCChanges stuff parsing correct
metze
(This used to be commit 1a4560997d99f2401903f8e466208c001d3ab6c1)
2007-10-10 13:11:01 -05:00
Stefan Metzmacher
26cb89fcdd r5765: remove unused var
metze
(This used to be commit a8f7c3e59f35127b51d4afc551b71f21886f4565)
2007-10-10 13:11:01 -05:00
Stefan Metzmacher
e90c904a5f r5764: add support for embedded ref pointers
metze
(This used to be commit 112043b1809a96b1a39ade71ea2885c0d792c79f)
2007-10-10 13:11:01 -05:00
Stefan Metzmacher
4b83366b6c r5742: - add torture test and idl for DsReplicaUpdateRefs()
(the torture test currently only tests if the idl is correct)

- add start for idl for DsGetNCChanges()
  (if someone didn't noticed the current ethereal trunk code can
   successful decrypt DCERPC and LDAP gsskrb5 encrypted blobs,
   when you provide a keytab and have compiled against heimdal :-)

- add a view bitmaps and enum's for better debugging

metze
(This used to be commit cf7c1352ab2857b80256e02f70ab3fbd5177d596)
2007-10-10 13:11:01 -05:00
Stefan Metzmacher
736797ef7f r5737: add some error codes
metze
(This used to be commit f543eb4ede54ac361017878574b3f4b6ffc9f2d5)
2007-10-10 13:11:01 -05:00
Stefan Metzmacher
1ecdd79847 r5736: fix to avoid endless recursion in ndr_size_*() calculation
metze
(This used to be commit eaac0f214703f91f186eb54f97e15e56461762bd)
2007-10-10 13:11:00 -05:00
Jeremy Allison
f52643c23c r5730: More fun with delayed write semantics with multiple file handles
open on the same file on the same connection.
Jeremy.
(This used to be commit 23733abfa201347265f54232989b608b11ad7a85)
2007-10-10 13:11:00 -05:00
Steve French
020817e152 r5716: Add new Unix extensions defines for infolevels
(This used to be commit 7f6ea98e0f338c3c9f1132c6d64a54266c1b9cfa)
2007-10-10 13:11:00 -05:00
Jelmer Vernooij
961148db31 r5709: Leave out the pull/push call with NDR_BUFFERS for not just
scalars but also for structs/unions containing only scalars.
(This used to be commit a3e136b2f3bd51159775fea25eff0ea81e9716f7)
2007-10-10 13:11:00 -05:00
Jelmer Vernooij
1bbaa12437 r5697: Give an error message when a ref pointer is NULL (requested by tpot)
(This used to be commit 7ecc2e6130d7f284906cbc50dda86c742f139fae)
2007-10-10 13:11:00 -05:00
Stefan Metzmacher
bbb69c5a7a r5682: fix the build
metze
(This used to be commit 67a2b091261d4dee2ed518ae80fdd8c1d9bf0e86)
2007-10-10 13:11:00 -05:00
Stefan Metzmacher
c857c03170 r5681: fix the build and compiler wanings
metze
(This used to be commit bb2622a0c94127a31855adc41d90289219a1ddd7)
2007-10-10 13:11:00 -05:00
Jelmer Vernooij
3e88cae57b r5680: Don't crash if none of the predefined keys is available (reported by Alexander)
(This used to be commit 0d789872a890062b0b95aa039bb853bb6c07b2d0)
2007-10-10 13:10:59 -05:00
Rafal Szczesniak
983306c819 r5679: Complete basic test of rpc_composite_userinfo function (which
btw proves the function is completely broken but that's what
tests are for)

rafal
(This used to be commit 7278c7d8370d52fed1e6a7dfc848a3efa06ccd61)
2007-10-10 13:10:59 -05:00
Rafal Szczesniak
3a9d9ab5b0 r5678: Torture tests require also libnet in order to run NET-* tests.
rafal
(This used to be commit e492a2a604a930690a7cbec8aee17b8229bcf928)
2007-10-10 13:10:59 -05:00