1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
Commit Graph

76405 Commits

Author SHA1 Message Date
Andrew Tridgell
6356f4c255 s4-kcc: if we are a GC, auto-add partial replicas
when we are a global catalog server, the KCC needs to add partial
replicas for all domain partitions that we don't have copies of
2011-10-04 15:08:57 +11:00
Andrew Tridgell
278e44cf9f s4-dsdb: simplify samdb_is_gc()
we already have a function for returning the NTDS options
2011-10-04 15:08:57 +11:00
Andrew Tridgell
f469369fdf s4-dsdb: add the DSDB_CONTROL_PARTIAL_REPLICA when needed
when we are adding an object via DRS, we need to add the
DSDB_CONTROL_PARTIAL_REPLICA control if we are replicating a partial
replica, so ensure the partition module creates new NCs as partial
replicas
2011-10-04 15:08:57 +11:00
Andrew Tridgell
6b69ecd029 heimdal: handle referrals for 3 part DRSUAPI SPNs
This handles referrals for SPNs of the form
E3514235-4B06-11D1-AB04-00C04FC2DCD2/NTDSGUID/REALM, which are
used during DRS replication when we don't know the dnsHostName of the
target DC (which we don't know until the first replication from that
DC completes).

We use the 3rd part of the SPN directly as the realm name in the
referral.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-10-04 15:08:57 +11:00
Andrew Tridgell
b930b1e1fc s4-repl: try harder to find the right SPN in replication server
when doing DRS between domains, using the right SPN is essential so
the KDC can generate referrals to point us at the right DC.  We prefer
the GC/hostname/DNSDOMAIN form if possible, but if we can't find the
hostname then this changes the code that generates the target
principal name to use either the msDS-HasDomainNCs or hasMasterNCs
attributes to try to find the target DC domainname so we can use the
E3514235-4B06-11D1-AB04-00C04FC2DCD2/GUID/DNSDOMAIN SPN form.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-10-04 15:08:57 +11:00
Andrew Tridgell
60cbc98051 s4-dsdb: added new control DSDB_MODIFY_PARTIAL_REPLICA
this control tells the partition module that the DN being created is a
partial replica, so it should modify the @PARTITION object to add the
partialReplica attribute

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
2011-10-04 15:08:57 +11:00
Andrew Tridgell
fb937afbec s4-join: enable cleanup on failed join
if a join fails, then cleanup the old records
2011-10-04 15:08:57 +11:00
Andrew Tridgell
efb3f45a81 s4-drs: added DSDB_REPL_FLAG_ADD_NCNAME to DsAddEntry call
we want new NCs to be created
2011-10-04 15:08:57 +11:00
Andrew Tridgell
1870fc49dd s4-dsdb: added DSDB_REPL_FLAG_ADD_NCNAME flag 2011-10-04 15:08:57 +11:00
Andrew Tridgell
50d6a76a14 s4-dsdb: fixed formatting of a debug message
another missing newline
2011-10-04 15:08:57 +11:00
Andrew Tridgell
d12309dc1a s4-partition: allow creation of uninstantiated partitions
this is needed for a subdomain join by a new NC. The NC is initially
uninstantiated
2011-10-04 15:08:56 +11:00
Andrew Tridgell
f52d8ca023 s4-dsdb: allow uninstantiated NC heads
this allows INSTANCE_TYPE_WRITE to be not set if
INSTANCE_TYPE_UNINSTANT is set
2011-10-04 15:08:56 +11:00
Andrew Tridgell
faf8581e38 s4-repl: support creation of new NCs via DsAddEntry
this adds a flag to dsdb_origin_objects_commit that tells it to create
a new NC based on the nCName in a crossRef object
2011-10-04 15:08:56 +11:00
Andrew Tridgell
df3cc35f74 s4-repl: fixed formatting of some debug messages 2011-10-04 15:08:56 +11:00
Andrew Tridgell
004f8c6e97 drsuapi: added ncName attid in enum 2011-10-04 15:08:56 +11:00
Andrew Tridgell
7d18241faa dns: added example python script for dnsserver protocol 2011-10-04 15:08:56 +11:00
Andrew Tridgell
57e30bc0cb dns: build python bindings for dnsserver RPC protocol 2011-10-04 15:08:56 +11:00
Andrew Tridgell
ff482bc836 dns: filled in dnsserver.idl
this fills in the functions and structures for the dnsserver RPC
protocol. This protocol is used during a subdomain join to add the NS
glue record to the parent domain
2011-10-04 15:08:56 +11:00
Andrew Tridgell
2fbdaab331 samba-tool: cope with GC compares in ldapcmp
the two base DNs do not need to match when doing GC replica compares
2011-10-04 15:08:56 +11:00
Andrew Tridgell
aed0d2e5eb samba-tool: added --full-sync and --sync-all options to samba-tool drs replicate 2011-10-04 15:08:56 +11:00
Andrew Tridgell
5d4f474b58 s4-dbchecker: fixed handling of DSDB DNs in dbcheck
we need to use the original value, as ldb.Dn() can't parse a DSDB
binary DN
2011-10-04 15:08:56 +11:00
Andrew Tridgell
ac581b3374 s4-dsdb: update callers to dsdb_convert_object_ex() 2011-10-04 15:08:56 +11:00
Andrew Tridgell
761fd4af2e s4-repl: update instanceType in partial_replica replication
when we receive objects to a partial replica, we need to change the
incoming instanceType to not include the INSTANCE_TYPE_WRITE
flag. Partial replicas unset this flag.
2011-10-04 15:08:56 +11:00
Andrew Tridgell
f37e81bbc5 s4-repl: add FULL_SYNC and PARTIAL_REPLICA flags
this sets the appropriate flags for replication with FULL_SYNC and
partial replica replications
2011-10-04 15:08:56 +11:00
Andrew Tridgell
bdc93190fe s4-dsdb: implement DSDB_REPL_FLAG_PRIORITISE_INCOMING
With this set, we accept changes even if they have the same tuple as
the local copy. This can be used by a FULL_SYNC replication to recover
a replica that is corrupt
2011-10-04 15:08:56 +11:00
Andrew Tridgell
f45147b2d9 s4-dsdb: disallow changes based on instanceType
if instanceType does not include INSTANCE_TYPE_WRITE, then disallow
changes to any replicated attributes. This ensures partial replicates
are not alterered
2011-10-04 15:08:56 +11:00
Andrew Tridgell
d3fa49663f s4-dsdb: added DSDB_REPL_FLAG* to replication
this allows the replication server to control replication via a set of
flags. Initial flags will allow control for partial replications and
full_sync support
2011-10-04 15:08:55 +11:00
Andrew Tridgell
0d2d6c94d2 s4-ldap-server: disallow all modifies on global catalog port 2011-10-04 15:08:55 +11:00
Andrew Tridgell
1df100393b s4-ldb: enable display of partialAttributeSet with --show-binary 2011-10-04 15:08:55 +11:00
Jelmer Vernooij
d6c949b074 testtools: Import new upstream snapshot.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Mon Oct  3 13:54:06 CEST 2011 on sn-devel-104
2011-10-03 13:54:06 +02:00
Kai Blin
1dbcb61c79 dns: Move the dns_srv_record to the correct place in the idl file
Autobuild-User: Kai Blin <kai@samba.org>
Autobuild-Date: Sun Oct  2 13:35:49 CEST 2011 on sn-devel-104
2011-10-02 13:35:49 +02:00
Kai Blin
f163bd1dac dns: Add support for TXT record to idl file 2011-10-02 12:00:27 +02:00
Kai Blin
d5dcb9eef1 wscript: Also generate ctags for python files 2011-10-02 12:00:07 +02:00
Kai Blin
5c890ad17f s4 provision: Set server role default when called from command line to 'dc' 2011-10-02 11:59:19 +02:00
Michael Adam
95bb2c23e6 s3:registry: fix the test for a REG_SZ blob possibly being a zero terminated ucs2 string
1. catch data blobs with odd number of bytes (not an ucs2 string at all)
2. test the right ucs2 character to be 0
   (prevent out-of bounds access/potential segfault)

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Sun Oct  2 01:26:05 CEST 2011 on sn-devel-104
2011-10-02 01:26:04 +02:00
Gregor Beck
b9da423556 s3:registry: reg_format: handle unterminated REG_SZ blobs
Signed-off-by: Michael Adam <obnox@samba.org>
2011-10-01 23:51:05 +02:00
Richard Sharpe
595cc42a46 Add the new test_nttrans_fsctl.c to waf
Autobuild-User: Richard Sharpe <sharpe@samba.org>
Autobuild-Date: Sat Oct  1 19:36:53 CEST 2011 on sn-devel-104
2011-10-01 19:36:53 +02:00
Richard Sharpe
c875ab8747 Move FSCTL handling into the VFS. Initial code changes. Passes smbtorture NTTRANS-FSCTL. Test added to selftests. 2011-10-01 07:02:20 -07:00
Richard Sharpe
e8f143a45c Add a torture test to test existing FSCTL responses 2011-10-01 07:02:19 -07:00
Jeremy Allison
c704d9216d Fix bug #8493 - DFS breaks zip file extracting unless "follow symlinks = no" set
If a client sends a mangled name as part of a DFS path, use the
post-mangled name for the pathname walk, not the mangled name.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Oct  1 00:45:59 CEST 2011 on sn-devel-104
2011-10-01 00:45:59 +02:00
Karolin Seeger
5c569a97ab s3-docs: Fix typos.
Thanks to Samba-JP oota <ribbon@samba.gr.jp> for reporting!

Karolin

Autobuild-User: Karolin Seeger <kseeger@samba.org>
Autobuild-Date: Fri Sep 30 23:12:35 CEST 2011 on sn-devel-104
2011-09-30 23:12:35 +02:00
Christian Ambach
21027216d4 s3-docs: some corrections for wbinfo
Parameters for --group-info and --gid-info were not listed
properly in the SYNOPSIS and the OPTIONS section

Autobuild-User: Christian Ambach <ambi@samba.org>
Autobuild-Date: Fri Sep 30 18:44:34 CEST 2011 on sn-devel-104
2011-09-30 18:44:34 +02:00
Matthias Dieter Wallnöfer
caacdb0cf1 s3:wscript_build - add dependency on "tdb-wrap3" for libnet dssync
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Fri Sep 30 16:40:12 CEST 2011 on sn-devel-104
2011-09-30 16:40:12 +02:00
Andrew Bartlett
deede4616e build: Add dep on tdb-wrap3 to get tdb headers
Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
2011-09-30 15:07:26 +02:00
Volker Lendecke
fe1bcdb4b9 s3: Re-add (), fix a gcc hint
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Sep 30 15:06:47 CEST 2011 on sn-devel-104
2011-09-30 15:06:47 +02:00
Volker Lendecke
f5081df369 s3: Remove an unused variable 2011-09-30 10:21:43 +02:00
Volker Lendecke
b7b7ce5aa4 s3: Fix an uninitialized variable warning 2011-09-30 10:21:43 +02:00
Volker Lendecke
0834ecc6f3 s3: Fix a C++ warning 2011-09-30 10:21:43 +02:00
Volker Lendecke
26225754ec s3: Fix a C++ warning 2011-09-30 10:21:42 +02:00
Jeremy Allison
27e2a4ab4a Second part of bug #8494 - Remove "experimental" label on VFS ACL modules.
Fix the docs.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Fri Sep 30 03:50:43 CEST 2011 on sn-devel-104
2011-09-30 03:50:43 +02:00