1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-29 04:23:51 +03:00
Commit Graph

795 Commits

Author SHA1 Message Date
Andrew Tridgell
fcf38a38ac r23792: convert Samba4 to GPLv3
There are still a few tidyups of old FSF addresses to come (in both s3
and s4). More commits soon.
2007-10-10 14:59:12 -05:00
Andrew Bartlett
b7e727186e r23680: Make it easier to setup a domain member server - the 'server role'
will now control the auth methods, but an override is still available,
ex:

auth methods:domain controller = <methods>

Andrew Bartlett
2007-10-10 14:59:00 -05:00
Andrew Bartlett
96ef5259c6 r23551: Change data_blob_equal to data_blob_cmp, suitable for sorting with qsort().
Andrew Bartlett
2007-10-10 14:53:26 -05:00
Günther Deschner
82477b311e r23384: Fill in NETLOGON netr_DsRGetForestTrustInformation().
Guenther
2007-10-10 14:53:14 -05:00
Günther Deschner
54fa6d453c r23382: Fill in lsa_lsaRQueryForestTrustInformation.
Guenther
2007-10-10 14:53:13 -05:00
Günther Deschner
841ad140a3 r23381: Merge netr_GetDcName WERROR return and WERROR_DOMAIN_CONTROLLER_NOT_FOUND from
SAMBA_3_0.

Guenther
2007-10-10 14:53:13 -05:00
Andrew Bartlett
7f3671bf11 r23365: Try to make Windows Vista join again. On my new test environment, it
wants to check for an existing domain join account, and fails.  This
test shows that we need to return NT_STATUS_NONE_MAPPED when nothing
matches.  (not yet tested if this helps vista).

Andrew Bartlett
2007-10-10 14:53:12 -05:00
Günther Deschner
9c2b964233 r23240: Fill in netr_DsrGetDcSiteCoverageW.
Guenther
2007-10-10 14:53:06 -05:00
Günther Deschner
cf953d0481 r23239: Fill in drsuapi_QuerySitesByCost.
Guenther
2007-10-10 14:53:06 -05:00
Günther Deschner
9cdd6d9782 r23129: Merge from 3_0:
* netr_DsRGetDCName_flags, netr_DsRGetDCNameInfo_AddressType and netr_DsR_DcFlags
* the mask in netr_DsRGetDCNameEx2 turns out to be samr_AcctFlags

Guenther
2007-10-10 14:52:52 -05:00
Stefan Metzmacher
09aea65960 r22825: let longhorn beta3 work with samba4
if we return a zero assoc_group_id longhorn beta3 stops
after getting the bind_ack.

metze
2007-10-10 14:52:20 -05:00
Andrew Bartlett
93e2ff2e85 r22477: When an invaild base is specified to ldb_search, it should return
LDB_ERR_NO_SUCH_OBJECT.  Handle this (found against LDAP, ldb_tdb is
being updated).

Andrew Bartlett
2007-10-10 14:51:31 -05:00
Stefan Metzmacher
c7518d6140 r22408: more private dependecies
split MODULE::DCESRV from SUBSYSTEM::dcerpc_server

metze
2007-10-10 14:51:15 -05:00
Jelmer Vernooij
150bb2238e r22077: Import only necessary test variables, more refactoring. 2007-10-10 14:49:48 -05:00
Jelmer Vernooij
52f32b7330 r21911: Some more work on making the ncacn_np handling in smbd be less special. 2007-10-10 14:49:38 -05:00
Andrew Tridgell
9ba8c00851 r21835: fixed a rpc server bug where we failed to remove a call from one
linked list when moving it to another. This could cause a valgrind
error under the RPC-SCANNER test.
2007-10-10 14:49:34 -05:00
Andrew Bartlett
ddf7354986 r21744: Test more talloc failure cases.
Andrew Bartlett
2007-10-10 14:49:22 -05:00
Andrew Bartlett
c9eb5bf19a r21698: Check for talloc failures.
Andrew Bartlett
2007-10-10 14:49:14 -05:00
Stefan Metzmacher
df7c6c6e0b r21589: give an error when the assoc_group_id isn't 0
TODO: we need to correctly implement assoc groups!

metze
2007-10-10 14:49:01 -05:00
Jelmer Vernooij
623026f67a r21544: Fix duplicate names. The build system should be warning about this.... 2007-10-10 14:48:55 -05:00
Stefan Metzmacher
3c786eb6bd r21518: fix panic, sorry...
metze
2007-10-10 14:48:49 -05:00
Stefan Metzmacher
2d8c85397d r21515: add some more PFC_FLAGS from the DCERPC spec, and fix some names
also make it possible to pass and get the assoc_group_id for
a pipe.

also make it possible to pass the DCERPC_PFC_FLAG_CONC_MPX flag
in bind requests. From the spec it triggers support for
concurrent multiplexing on a single connection.

w2k3 uses the assoc_group_id feature when it becomes a domain controller
of an existing domain. Know the ugly part, with this it's possible to
use a policy handle from one connection on a different one...

typically the DsBind() call is on the 1st connection while DsGetNCChanges()
call using the first connections bind handle are on the 2nd connection.

The second connection also has the DCERPC_PFC_FLAG_CONC_MPX flag attached,
but that doesn't seem to be related to the cross connection handle usage

Can anyone think of a nice way to implement the assoc_group_id stuff in our server?

metze
2007-10-10 14:48:48 -05:00
Stefan Metzmacher
33550c063d r21512: finish DsBind() in the DRSUAPI server:
- fill in our on bind_info struct correctly
- remember the local and remote DsBindInfo28 struct
- remember the remote bind_buid

w2k3 now tries replicate using DsGetNCChanges() from us,
after the NET-API-BECOME-DC test created the domain controller
and replicated all data.

(But we still give a DCERPC fault in DsGetNCChanges()...)

metze
2007-10-10 14:48:47 -05:00
Stefan Metzmacher
c736543b15 r21499: fill in the correct forest dns name
metze
2007-10-10 14:48:45 -05:00
Stefan Metzmacher
dc4242c09c r21362: rename:
"ntPwdHash" => "unicodePwd"
"lmPwdHash" => "dBCSPwd"
"sambaLMPwdHistory" => "lmPwdHistory"
"sambaNTPwdHistory" => "ntPwdHistory"

Note: you need to reprovision after this change!

metze
2007-10-10 14:48:20 -05:00
Stefan Metzmacher
b8c940f1e2 r21356: we have a function to get the sites dn
also it's not always under the domain dn

metze
2007-10-10 14:48:18 -05:00
Jelmer Vernooij
76c78b0339 r20850: Prefix all server calls with dcesrv_ 2007-10-10 14:43:39 -05:00
Jelmer Vernooij
3cc299dbbe r20830: merge mgmt work 2007-10-10 14:43:37 -05:00
Jelmer Vernooij
42bb335bd5 r20786: Fix the build. 2007-10-10 14:40:55 -05:00
Jelmer Vernooij
e84a369d9b r20785: Add stub implementation for mgmt interface. 2007-10-10 14:40:54 -05:00
Andrew Tridgell
2365abaa99 r20646: first preparations for cluster enablement. This changes "
uint32_t server_id
to
  struct server_id server_id;

which allows a server ID to have an node number. The node number will
be zero in non-clustered case. This is the most basic hook needed for
clustering, and ctdb.
2007-10-10 14:37:23 -05:00
Stefan Metzmacher
d883815c8d r20514: implement idl for DsGetNT4ChangeLog() which transferres the meta data
for NT4 DC's in mixed mode domains.

This call is triggered by tranferring the PDC FSMO Role to another DC

the real meta data is encoded in the user buffer which is just a DATA_BLOB in idl

metze
2007-10-10 14:36:04 -05:00
Andrew Bartlett
21b38ae1e4 r20374: It's still 2006 (just...). Add copyright.
Andrew Bartlett
2007-10-10 14:30:18 -05:00
Andrew Bartlett
05debeaced r20354: Trusted domains don't have a surname, I think we want 'cn' here.
Andrew Bartlett
2007-10-10 14:30:15 -05:00
Andrew Bartlett
79941adbff r20353: Restructure the DRSUAPI DsGetDomainControllerInfo test, because as
usual things are more complex than they appear.

Also remove the incorrect server-side implementation, which blindly
assumed some sense of consistancy across the API switch levels.

Andrew Bartlett
2007-10-10 14:30:15 -05:00
Andrew Bartlett
2eb9e6445c r20315: Implement the server side of DsGetDomainControllerInfo. This is a
supprisingly complex call...

It turns out that the in/out parameter 'level' is not in/out, but set
seperatly by the server-side code from r->req.req1.level.

This commit also breaks out some common code from samldb into samdb.

Andrew Bartlett
2007-10-10 14:29:38 -05:00
Andrew Bartlett
67d8365e83 r20149: Remove the smb.conf distinction between PDC and BDC. Now the correct
way to setup a Samba4 DC is to set 'server role = domain controller'.

We use the fSMORoleOwner attribute in the base DN to determine the PDC.

This patch is quite large, as I have corrected a number of places that
assumed taht we are always the PDC, or that used the smb.conf
lp_server_role() to determine that.

Also included is a warning fix in the SAMR code, where the IDL has
seperated a couple of types for group display enumeration.

We also now use the ldb database to determine if we should run the
global catalog service.

In the near future, I will complete the DRSUAPI
DsGetDomainControllerInfo server-side on the same basis.

Andrew Bartlett
2007-10-10 14:29:15 -05:00
Stefan Metzmacher
ed4c7ce547 r20114: from Julien Kerihuel <j.kerihuel@openchange.org>, thanks!:
I've attached the patch which fix this problem. I've only added
  DCERPC_NDR_REF_ALLOC to the connection flags. This way it is processed
  correctly by ndr_pull_init_flags and added to the ndr flags of the pull
  structure.

metze
2007-10-10 14:29:09 -05:00
Stefan Metzmacher
00875f806e r20047: patch from Julien Kerihuel <j.kerihuel@openchange.org>
to make the "remote" rpc proxy work for outlook and exchange

metze
2007-10-10 14:28:55 -05:00
Simo Sorce
4f07542143 r20034: Start using ldb_search_exp_fmt() 2007-10-10 14:28:51 -05:00
Simo Sorce
93b738b111 r19903: This is a cut&paste error for sure
there is no ongoing transaction in this code
2007-10-10 14:28:34 -05:00
Stefan Metzmacher
b4d7d49c27 r19902: give better errors...
metze
2007-10-10 14:28:33 -05:00
Stefan Metzmacher
df133cd22a r19847: add idl for DsRemoveDSServer(), this is used when a server unbecomes a DC
metze
2007-10-10 14:28:25 -05:00
Jelmer Vernooij
0221d5b6c4 r19844: Fix warnings and errors in epmapper IDL. 2007-10-10 14:28:24 -05:00
Simo Sorce
3929c086d5 r19832: better prototypes for the linearization functions:
- ldb_dn_get_linearized
  returns a const string

- ldb_dn_alloc_linearized
  allocs astring with the linearized dn
2007-10-10 14:28:22 -05:00
Simo Sorce
a580c871d3 r19831: Big ldb_dn optimization and interfaces enhancement patch
This patch changes a lot of the code in ldb_dn.c, and also
removes and add a number of manipulation functions around.

The aim is to avoid validating a dn if not necessary as the
validation code is necessarily slow. This is mainly to speed up
internal operations where input is not user generated and so we
can assume the DNs need no validation. The code is designed to
keep the data as a string if possible.

The code is not yet 100% perfect, but pass all the tests so far.
A memleak is certainly present, I'll work on that next.

Simo.
2007-10-10 14:28:22 -05:00
Andrew Bartlett
a1e80eeb95 r19761: This may need work, but here is an initial implementation of
DsWriteAccountSpn().

It passes the client toture test.

Andrew Bartlett
2007-10-10 14:28:20 -05:00
Andrew Bartlett
4c349f44f8 r19682: Fix comments.
Andrew Bartlett
2007-10-10 14:25:31 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Jelmer Vernooij
8143de855c r19573: Move secrets.o into param/ (subsystems haven't been integrated yet). 2007-10-10 14:24:55 -05:00