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

3643 Commits

Author SHA1 Message Date
Andrew Tridgell
c710c0671f r4718: don't use the deprecated __va_copy() unless va_copy() is unavailable
(This used to be commit 603ef69be075821e3ffe2084bb5cfb0bc9cce180)
2007-10-10 13:08:47 -05:00
Andrew Tridgell
d9d41b57e9 r4717: fixed our usage of VA_COPY to be more standards compliant
(This used to be commit 48b52584ab7db747feaf7ad4382bd3877935ee26)
2007-10-10 13:08:47 -05:00
Stefan Metzmacher
ef4e85614e r4716: add a real ugly hack to get all ldap queries of an
w2k3 dc join working

I just commit that to not lose it if my home box would crash...

you need a hacked.ldb with some stuff in it, I'll explain later

and you need --option="ldapsrv:hacked=yes"

so what is left now is KRB5 support for DCERPC in the server
as the EVENT LOG of w2k3 says...

metze
(This used to be commit d72760d26ffe531e34bcbec623b986761152ae5b)
2007-10-10 13:08:47 -05:00
Stefan Metzmacher
c0b55c0e3b r4715: alwys add the distinguishedName attribute
the w2k3 dc join needs that

metze
(This used to be commit 29bc75ba28f8c73fe22878948ed43c41faee474c)
2007-10-10 13:08:47 -05:00
Simo Sorce
a2f77f979d r4714: move the ldb code to the new talloc interface (eg remove _p suffix)
this helps standalone building of ldb

renew the schema module
split code into functions to improve readability and code reuse

add and modify works correctly but we need a proper testsuite

Simo
(This used to be commit a681ae365ff1b5a2771b42ebd90336651ce1e513)
2007-10-10 13:08:47 -05:00
Andrew Bartlett
7588b41e15 r4713: Add initial support for QueryTrustedDomainInfo on LSA.
(more info levels to come)

Andrew Bartlett
(This used to be commit 175ae7599ee06d8856ffb8912c7fe4e68ebe5feb)
2007-10-10 13:08:47 -05:00
Andrew Tridgell
a2e754c294 r4712: slight tidy up in alter_context server
(This used to be commit 20ab5bed34c852509b7f3e4c778ff23f4379b36e)
2007-10-10 13:08:47 -05:00
Andrew Tridgell
4b73689468 r4711: - deprecate talloc_destroy()
- expanded the talloc_realloc() test a little (I was concerned about a
  possible bug, which turned out to be an illusion)

- don't enable gcov by default in Makefile.talloc
(This used to be commit 4ec47cc1083c4cdb780e548177631c5914bf677a)
2007-10-10 13:08:46 -05:00
Andrew Tridgell
287515fd3d r4710: added a smb_composite_savefile() function, and expanded the test suite a little
(This used to be commit ef4dbc443dbdebc4160209ed3f23cbb97109c414)
2007-10-10 13:08:46 -05:00
Stefan Metzmacher
09c34de35a r4709: fix compiler warnings
metze
(This used to be commit 7aa86445e3290021fe40c5c9425ecdbc2dda1618)
2007-10-10 13:08:46 -05:00
Andrew Bartlett
7ea2317e97 r4708: Comparing with LDAP, it is clear that these 'flags' are in fact the
POSIX offset for the trusted domain.

Andrew Bartlett
(This used to be commit cd9e795e4004e28dc0184b86f0c44431378fc3ff)
2007-10-10 13:08:46 -05:00
Stefan Metzmacher
9178e7b8bf r4707: w2k3 don't restict passwords on
netr_ServerPasswordSet and netr_ServerPasswordSet2

so we do now

I also add a torture test for this

metze
(This used to be commit d896ac603a5cf387a10b21e64e2c92ff2626bc4d)
2007-10-10 13:08:46 -05:00
Andrew Bartlett
062fe90c79 r4706: Fix the build, after I renamed these elements in the IDL.
Andrew Bartlett
(This used to be commit 8f47c7b02cc28eda022154796c7341fd63a87cc5)
2007-10-10 13:08:45 -05:00
Stefan Metzmacher
894b6890b4 r4705: use an enum for reject_reason
metze
(This used to be commit 57bf3d7a83ede0099f43a1f71026715f22cda68f)
2007-10-10 13:08:45 -05:00
Andrew Bartlett
e54964c618 r4703: Add support for EnumTrustDomain, and expand the testsuite.
Add my copyright to the SAMR server.

Andrew Bartlett
(This used to be commit 51e94fa26cc602ddca652776c213cd7096f9703a)
2007-10-10 13:08:45 -05:00
Stefan Metzmacher
516dbfd5ed r4702: implment idl, torture test and server code for netr_ServerPasswordSet2()
metze
(This used to be commit 7d8ba92da2b8babe7165f105591fd3e5738b2319)
2007-10-10 13:08:45 -05:00
Stefan Metzmacher
fef48c0cc8 r4701: remove debugs
metze
(This used to be commit 9db0d19413beb4a0a0b48f4223600ff8dff33728)
2007-10-10 13:08:45 -05:00
Andrew Tridgell
1d795fa57b r4700: first attempt at a composite async function, smb_composite_loadfile(),
which combineds ntcreatex, readx and close into a single call that
behaves just like a normal libcli async call.
(This used to be commit 516f68fb054f0717f0429e031aa820776ecc6597)
2007-10-10 13:08:45 -05:00
Andrew Bartlett
e6be2ad8b7 r4699: Move the test_EnumTrustDom() test into the test_CreateTrustedDomain
test.  This way, it must have at least one domain to enumerate.

Andrew Bartlett
(This used to be commit c19f1850ee76db07d4ab5654039bc1f78377994d)
2007-10-10 13:08:44 -05:00
Andrew Bartlett
c0571f6234 r4698: - Initial implementation of trusted domains in LSA.
- Use templates for Secrets and the new trusted domains

 - Auto-add modifiedTime, createdTime and objectGUID to records in the
   samdb layer.

Andrew Bartlett
(This used to be commit 271c8faadfe2d9e0f3d523a1cdc831f5f9e35d19)
2007-10-10 13:08:44 -05:00
Andrew Bartlett
9eaf1b45c0 r4695: Leave less memory handing around on long-term TALLOC_CTX.
Add lsa_Delete() support for secrets.

Andrew Bartlett
(This used to be commit be4cd59f331c1ef38831ee874376d3cd073e2186)
2007-10-10 13:08:44 -05:00
Andrew Bartlett
4e052c1704 r4694: 'fix' the behaviour for setting only the old, but not the new secret.
(The behaviour is a little odd, but we wanted bug-for-bug, right? :-)

Andrew Bartlett
(This used to be commit 6a09a84320c9ab18568a66efb3839a8dcde834af)
2007-10-10 13:08:44 -05:00
Andrew Bartlett
91f70398df r4693: Add another test (RPC-MULTIBIND) that should always pass.
Andrew Bartlett
(This used to be commit 279e4de307b02bec5b64de765fbbb82c0ffdc5e4)
2007-10-10 13:08:44 -05:00
Andrew Bartlett
899f610fb4 r4692: Make the client SPNEGO code bail out in a couple more cases.
Andrew Bartlett
(This used to be commit a062ac122c402fb2cf31eb8e76f4077b1f33b8eb)
2007-10-10 13:08:44 -05:00
Andrew Bartlett
52e90022bf r4691: Make the DCE-RPC bind code compleatly generic to the number of passes
that the GENSEC mechanism wishes to select.  It is of course up to the
GENSEC mech and the remote server to actually support this however...

Andrew Bartlett
(This used to be commit 7200a01545e14a8b0c90fadf3c27933dd1f4359f)
2007-10-10 13:08:44 -05:00
Stefan Metzmacher
fae215266b r4690: - add support for async rpc server replies
the backend should check for
(dce_call->state_flags & DCESRV_CALL_STATE_FLAG_MAY_ASYNC)
then it's allowed to reply async

then the backend should mark that call as async with
dce_call->state_flags |= DCESRV_CALL_STATE_FLAG_ASYNC;

later it has to manualy set r->out.result
and then send the reply by calling

status = dcesrv_reply(p->dce_call);

NOTE: that ncacn_np doesn't support async replies yet

- implement an async version of echo_TestSleep

- reenable the echo_TestSleep torture test
  (this need to be more strict when we have support for async ncacn_np)

metze
(This used to be commit f0a0dbeb25b034b1333078ca085999359f5f6209)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
90d65c2e85 r4689: - make talloc_report_depth() public
- add talloc_parent() to return the parent context of a pointer

these are very use full for debuging

metze
(This used to be commit 9b9501bc03ef8d4b53049f6b3531d06ed7ef7f89)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
8ac3838d19 r4688: don't run male proto for lib/talloc/
metze
(This used to be commit 4ab63d547903814318b74ea030bba9da0f36942f)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
0c440d6506 r4687: use struct type and location for easier finding
metze
(This used to be commit a88aac7a397972c52ca2fb192b58f2a172630a6e)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
ffb8c82424 r4686: cerate a function to create a socket by specifying an socket_ops struct
metze
(This used to be commit 894f402b01c8d4e0bef9c29697b8d13e5b9ea150)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
9261f6e928 r4685: only remove events when we have them
metze
(This used to be commit d2276a9149b14aed459e9492384c0a7563dd154c)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
91e9cf6d1a r4684: the smbsrv code should not know about rpc stuff
just vfs_ipc

metze
(This used to be commit f85ebd1e8e19f5ff271dd7d79190fea16d6a98c4)
2007-10-10 13:08:43 -05:00
Stefan Metzmacher
a97cb33fcc r4683: fix the build
metze
(This used to be commit b020dbec89a85619ae3ee12f4dd0e3828d30ba04)
2007-10-10 13:08:42 -05:00
Andrew Bartlett
a249198d53 r4682: A LDB-based secrets implementation in Samba4.
This uses LDB (a local secrets.ldb and the global samdb) to fill out
the secrets from an LSA perspective.

Some small changes to come, but the bulk of the work is now done.

A re-provision is required after this change.

Andrew Bartlett
(This used to be commit ded33033521a6a1c7ea80758c5c5aeeebb182a51)
2007-10-10 13:08:42 -05:00
Andrew Bartlett
7ab7debcf1 r4681: Another entry for structs.h
Andrew Bartlett
(This used to be commit a3f3553cbe3cc8c8b39704b7735277e36ca709a0)
2007-10-10 13:08:42 -05:00
Andrew Bartlett
fdebf9dd4c r4680: Make more efficient use of memory in SAMR:
Avoid a strdup, use a talloc_reference
 Use the shortest term memory context possible

Andrew Bartlett
(This used to be commit 5569db0f94807b7e2418630fbdca03be9c65e838)
2007-10-10 13:08:42 -05:00
Andrew Bartlett
0a0dbc37f3 r4679: Remove the void* from samdb. We now use structures without full
declarations all the time, and the struture the void* is hiding here
is even a declared one, so there is no excuse.  This also causes the
compiler to warn on bugs.

Andrew Bartlett
(This used to be commit f40e794902020c5fb6839e6493be9a73416716b0)
2007-10-10 13:08:42 -05:00
Andrew Bartlett
cec158231b r4678: Add some const to LDB.
Andrew Bartlett
(This used to be commit d4da9fb1600dba5daca9acb83f528c8f5f42f0ce)
2007-10-10 13:08:42 -05:00
Stefan Metzmacher
0385de8b1f r4677: stub.pm must be synced with server.pm
metze
(This used to be commit b467635c2dd90dc40e2358b8d18bec238a85786f)
2007-10-10 13:08:41 -05:00
Stefan Metzmacher
945180f676 r4676: NTTIME_1sec is a standard NTTIME for the calling code
as it's already converted in the pull/push code

metze
(This used to be commit 0d2286ba56fa8d25244a5554e75b5be24eba28b0)
2007-10-10 13:08:41 -05:00
Andrew Bartlett
1a71331ebc r4675: Prevent global warming, and save tridge's sainity by short-cutting the
testsuite for all the different flag types.  (We really only need to
know if we are getting the session key crypto stuff right, and one
call can tell us that).

Andrew Bartlett
(This used to be commit 8807498f6d3ff248c4d42bf18db45cfe25bd3b2f)
2007-10-10 13:08:41 -05:00
Andrew Bartlett
7b4d1a4448 r4674: Test SetSecret behaviour for local and global secrets, when setting
only the OLD secret value.

Andrew Bartlett
(This used to be commit 5853af89c8dd5c4d6220f395bcc18708398999af)
2007-10-10 13:08:41 -05:00
Andrew Bartlett
462ef44745 r4673: Fix the IDL for the QuerySecret LSA call.
This call uses a new IDL type, NTTIME_hyper.  This is 8-byte aligned,
as the name suggests.

Expand the QuerySecret LSA calls in RPC-SAMLOGON and RPC-LSA, to
validate the behaviour of times, and of the old secrets.

Thanks to tridge for spotting the use of HYPER!

Andrew Bartlett
(This used to be commit 1fed79cb0f2ae7940639d08ef99576559d4cd06e)
2007-10-10 13:08:40 -05:00
Andrew Tridgell
70071c2114 r4672: added the "spnego" flag to the binding string docs
(This used to be commit 360aa583e7359a2e653d385a8d3c7977fd9614d1)
2007-10-10 13:08:40 -05:00
Andrew Bartlett
4e89127786 r4671: Expand the RPC-LSA test to set secret values twice.
Andrew Bartlett
(This used to be commit 357d9114f002a607f80985588bbac150fa40d2bc)
2007-10-10 13:08:40 -05:00
Andrew Tridgell
097d568383 r4670: abartlet was worried about floating point precision with my first
version - here is one based purely on 64 bit math
(This used to be commit 1ff04b0dc3e680b6288622576bb373359a594c2f)
2007-10-10 13:08:40 -05:00
Andrew Tridgell
a7a5c98e29 r4669: a timeval_to_nttime() function as requested by abartlet. Andrew, its
your responsibility to use/test this :-)
(This used to be commit 2107b0cd7661a631952742bae241cb165b05c5f2)
2007-10-10 13:08:40 -05:00
Andrew Bartlett
fdfa2adcb1 r4667: Don't follow a NULL pointer for an idle event handler.
Fix up some header comments.

Andrew Bartlett
(This used to be commit 62005a3924e2af52c7173098b0b38eca14e03609)
2007-10-10 13:08:40 -05:00
Andrew Tridgell
a36f456adf r4664: SPNEGO auth in our rpc server now works, so add it to the battery of
tests in test_rpc.sh
(This used to be commit 69ffbd4cedaddd71fad9bab2375dc634479c0ed6)
2007-10-10 13:08:40 -05:00
Andrew Tridgell
5423fd3b35 r4663: fixed SPNEGO auth in the rpc server
(This used to be commit 439cbb9ead2443513ecc84f5638924e056ebdc73)
2007-10-10 13:08:40 -05:00