1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
Commit Graph

56008 Commits

Author SHA1 Message Date
Andrew Tridgell
7b3b66d7a2 s4-ldb: ldap attribute names can contain a '.'
When they are of the form of OIDs
2009-09-15 14:52:29 -07:00
Andrew Tridgell
08f144777d s4-ldb: expose ldb_transaction_prepare_commit() in ldb
It is useful to be able to control the 2 phase commit from application
code (s4 replication uses it)
2009-09-15 14:52:29 -07:00
Andrew Tridgell
bfd0877261 s4-repl: don't do double replication
When we replicate from a remote DC, we need to note the new uSN that
the local changes have resulted in, and modify the uSN that the notify
task uses to determine if it should send a ReplicaSync message back to
the remote DC. Otherwise we end up always triggering a ReplicaSync
every time we replicate from another DC
2009-09-15 14:52:23 -07:00
Andrew Tridgell
f5aec9ebb4 tdb: allow reads after prepare commit
We previously only allowed a commit to happen after a prepare
commit. It is in fact safe to allow reads between a prepare and a
commit, and the s4 replication code can make use of that, so allow it.
2009-09-15 14:52:01 -07:00
Andrew Tridgell
48bc784e08 s4-drs: filter based on local_usn
The getncchanges uSN is in our local space, so we must compare it to
the local_usn in replPropertyMetaData
2009-09-15 14:52:01 -07:00
Andrew Tridgell
7f3817ab77 s4-repl: make sure we marshal the replPropertyMetaData after the last change
we were setting local_usn after the marshall, so it wasn't going into
the object
2009-09-15 14:52:01 -07:00
Andrew Tridgell
e1abb39388 s4-dsdb: use DLIST_ADD() not DLIST_ADD_END()
Using DLIST_ADD_END() to construct a long list is very inefficient (it
is O(n^2). These lists are not ordered, so using DLIST_ADD() is much
better.
2009-09-15 14:52:00 -07:00
Andrew Tridgell
4861194f39 s4-ldb: cope better with corruption of tdb records
When doing an indexed search if we hit a corrupt record we abandoned
the indexed search and did a full search. The problem was that we
might have sent some records to the caller already, which means the
caller ended up with duplicate records. Fix this by returning a search
error if indexing returns an error and we have given any records to
the caller.
2009-09-15 14:52:00 -07:00
Andrew Tridgell
6a9c89b3ae talloc: when we enable NULL tracking, reparent the autofree context
If NULL tracking is enabled after the autofree context is initialised
then autofree ends up separate from the null_context. This means that
talloc_report_full() doesn't report the autofree context. Fix this by
reparenting the autofree context when we create the null_context.
2009-09-15 14:52:00 -07:00
Andrew Tridgell
451a537caa s4-repl: add a debug to make it easier to monitor replication 2009-09-15 14:52:00 -07:00
Björn Jacke
8703d9f5bf libreplace: white space cleanups 2009-09-15 20:26:24 +02:00
Björn Jacke
18f1f5b56b s3: ignore cups-config to tidy up library dependencies
contrary to krb5-config for example, which outputs useful things, cups-config
--libs does not output libs we have to link against. It outputs libs that cups
linked against. We just have to link against cups.
2009-09-15 19:48:32 +02:00
Andrew Bartlett
5a01071692 libcli:nbt put util_net.c protos in new header file
This fixed a very odd build problem due to util.h importing
system/network.h being imported before the uid_wapper code.

Andrew Bartlett
2009-09-15 10:38:53 -07:00
Andrew Bartlett
9a209ac252 s4:schema Add code to provide an index into the subClass tree
In time, this should avoid the astounding (order) complexity of the
objectclass sorting in objectclass.c eventually.

Andrew Bartlett
2009-09-15 10:38:52 -07:00
Günther Deschner
231b2fa261 s3-dcerpc: really fix remaining old auth level constants. sorry...
Guenther
2009-09-15 19:34:18 +02:00
Günther Deschner
c2d7c7a9dd s3-dcerpc: fix remaining old auth level constants.
Guenther
2009-09-15 18:30:44 +02:00
Günther Deschner
9831e7675c ntlmssp: pretty print a VERSION structure.
Guenther
2009-09-15 17:54:58 +02:00
Günther Deschner
ed03edc2e4 ntlmssp: better document to what structures we are reffering to.
Guenther
2009-09-15 17:54:55 +02:00
Günther Deschner
fdf3bd6203 s3-dcerpc: remove unsed auth type defines as seen on the wire.
Guenther
2009-09-15 17:50:00 +02:00
Günther Deschner
e1ecb807e3 s3-dcerpc: remove more unused structs.
Guenther
2009-09-15 17:49:52 +02:00
Günther Deschner
7b36ea55ea s3-dcerpc: remove duplicate RPC_AUTH_LEVEL flags.
Guenther
2009-09-15 17:49:43 +02:00
Günther Deschner
d3af0346c8 s3-dcerpc: use dcerpc_AuthLevel and remove duplicate set of flags.
Guenther
2009-09-15 17:49:34 +02:00
Andrew Bartlett
668470c992 libcli:nbt make the lmhosts parsing code and dependicies common
This starts the process to have Samba4 use lmhosts.

Andrew Bartlett
2009-09-15 07:42:54 -07:00
Stefan Metzmacher
f07e77e13f s4:heimdal_build: fix one more problem with automatic dependecies
metze
2009-09-15 07:49:26 +02:00
Andrew Bartlett
ffe831452b s4:provision Prevent some invalid combinations of realm and domain
We don't do well (even just trying to create duplicate
servicePrincipalName values) with some of these combinations, so kill
it off early before the administrator thinks it's going to work.

Andrew Bartlett
2009-09-14 22:41:09 -07:00
Matthieu Patou
7268720ad4 s4: Script to build or rebuild extend DN attributes
This script can be used to upgrade a provision that didn't integrate extended dn.
 It can also be used to add missing extended DN that weren't created during provision.
2009-09-14 22:41:09 -07:00
Björn Jacke
f410d23185 s3: BSD needs sys/sysctl.h included to build properly
FreeBSD (and other BSDs, too) need sys/sysctl.h inclueded to use sysctlbyname().

Thanks to Timur Bakeyev for that.
2009-09-15 06:54:31 +02:00
Volker Lendecke
24309bdb2e Second part of bug fix for 6606.
s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled
2009-09-14 19:09:54 -07:00
Jeremy Allison
f3cc05b96d Torture test for bug 6529 - Offline files conflict with Vista and Office 2003.
Ensure we don't regress.
Jeremy.
2009-09-14 18:45:16 -07:00
Björn Jacke
54831cc1a5 nss_winbind: remove unused variable 2009-09-15 03:42:30 +02:00
Jeremy Allison
ca2c93b9e5 Fix bug 6494 - Incorrect FileStatus returned in NT_CREATE_ANDX.
Lookup the EA and Stream status on CreateX.
Jeremy.
2009-09-14 15:30:05 -07:00
Jeremy Allison
f31138ecc7 Fix bug 6726 - Filename length overwrites oplock request field in cli_nt_create().
Jeremy.
2009-09-14 15:10:53 -07:00
Volker Lendecke
e94361e1e2 s3:vfs_catia: Make some fns static 2009-09-14 22:48:45 +02:00
Volker Lendecke
d3a6914e3b s3:vfs_catia: Use talloc_zero for simplification 2009-09-14 22:48:45 +02:00
Volker Lendecke
9dae2501f1 s3:vfs_modules: Fix Coverity ID 946: OVERRUN_STATIC
Tim, please check!
2009-09-14 22:48:45 +02:00
Andrew Tridgell
3dd404abad s4-repl: handle rename in repl_meta_data
On a rename we need to update uSNChanged, and the max uSN for the
partition
2009-09-14 13:13:12 -07:00
Andrew Tridgell
b9ce122ff2 s4-drs: allow replication of renames
a rename may have no attribute changes
2009-09-14 13:12:32 -07:00
Matt Kraai
bd40feb1eb Prepend "$libreplacedir/" to all objects in LIBREPLACEOBJ 2009-09-14 22:08:12 +02:00
Andrew Tridgell
33160b1a5b s4-repl: fixed a memory error handling linked attributes
We could get a double free with multiple linked attributes in a
message
2009-09-14 09:41:52 -07:00
Andrew Tridgell
3cf73dfdbd s4-repl: fall back to repsFrom if repsTo not set
Windows does not seem to be always setting up repsTo using
DsUpdateRefs(). For now we will fall back to using repsFrom if repsTo
is empty. This is almost certainly incorrect, but it does get
notification based replication working with both w2k3 and w2k8.
2009-09-14 09:41:52 -07:00
Jelmer Vernooij
667b825d18 pyldb: Don't segfault when invalid type is specified to Dn.get().
(#6722)
2009-09-14 17:03:30 +02:00
Michael Adam
d106e728fb examples/LDAP: remove sambaAccountPolicy from the IBM-DS schema.
Michael
2009-09-14 14:51:21 +02:00
Michael Adam
aa089b80de dsdb: the samba3 ldap schema has no sambaAccountPolicy (any more at least)
Michael
2009-09-14 14:51:21 +02:00
Stefan Metzmacher
d1457b6648 s4:heimdal_build: fix the build with --enable-automatic-dependencies
We need to create the header file before we generate the source file.

metze
2009-09-14 10:01:46 +02:00
Andrew Bartlett
e29cbda452 s4:heimdal_build Fix build breakages caused by asn1compile change
The issue was that we referenced an asn1compile generated file by
name, not by the subsystem is was generated by.

Andrew Bartlett
2009-09-13 22:12:12 -07:00
Volker Lendecke
0f65d33502 s3: Test short reads in the build farm 2009-09-14 07:13:22 +02:00
Volker Lendecke
1f34ffa0ca s3:libsmb: Fix bug 6606 -- short reads in smbclient were not handled 2009-09-14 07:13:22 +02:00
Günther Deschner
b8834cad07 schannel: remove unused schannel structs.
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
2f9adf04e4 s3-rpc_client: add rpccli_lsa_lookup_sids3 wrapper.
Guenther
2009-09-14 06:49:58 +02:00
Günther Deschner
ff968712ba s3-rpc_client: add rpccli_lsa_lookup_names4 wrapper.
Guenther
2009-09-14 06:49:58 +02:00