Jeremy Allison [Thu, 7 Jun 2007 00:14:06 +0000 (00:14 +0000)]
r23371: Fix the misleading comment I added - it really *should*
say "locks chain and returned record", not
"and returns record"
Jeremy.
Jeremy Allison [Thu, 7 Jun 2007 00:00:45 +0000 (00:00 +0000)]
r23370: Traverse in tdb wasn't consistently using the
travlocks.lock_rw for lock read/write types, it
was sometimes using it (tdb_next_lock) and
sometimes explicitly using F_WRLCK instead.
Change this to consistently use travlocks.lock_rw
only.
I'm pretty sure about this fix (else I woudn't
be checking this in :-) but tridge and Volker
please review.
Jeremy.
Andrew Bartlett [Wed, 6 Jun 2007 12:51:45 +0000 (12:51 +0000)]
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
Andrew Tridgell [Wed, 6 Jun 2007 12:44:04 +0000 (12:44 +0000)]
r23364: add LDB_FLG_NOMMAP flag
Michael Adam [Wed, 6 Jun 2007 09:27:43 +0000 (09:27 +0000)]
r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.
But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.
Michael
Andrew Bartlett [Wed, 6 Jun 2007 01:36:15 +0000 (01:36 +0000)]
r23361: Merge from SAMBA_4_0_RELEASE:
Print the smb.conf path being created in provision.
Andrew Bartlett
Andrew Bartlett [Tue, 5 Jun 2007 05:35:39 +0000 (05:35 +0000)]
r23351: Merge from SAMBA_4_0_RELEASE:
Fix a nasty issue we had with SWAT. We could not provision into a
different domain, as we didn't re-calcuate the DOMAINDN after the user
changed it in the form.
Andrew Bartlett
Stefan Metzmacher [Mon, 4 Jun 2007 14:26:37 +0000 (14:26 +0000)]
r23339: merge from SAMBA_3_0:
fix a crash bug...I wonder why only HP-UX 11.00 ans 11.11 noticed
it via a SIGBUS...
I missed to remove the samba3 specifc code path to tdb_open_ex()
when I synced lib/tdb/ with samba4. The explicit cast in on tdb_open_ex()
dropped the compiler warning :-(
metze
Andrew Bartlett [Mon, 4 Jun 2007 03:55:36 +0000 (03:55 +0000)]
r23325: Remove items from menu that have been removed from SVN long ago, with
the start of the transition to the new SWAT.
Andrew Bartlett
Kai Blin [Sat, 2 Jun 2007 11:38:27 +0000 (11:38 +0000)]
r23311: Updating the samba4 winbind protocol to version 18.
nsswitch/winbindd_nss.h is just copied from SAMBA_3_0.
nsswitch/winbind_nss_config.h is copied from SAMBA_3_0, too, but I had to
drop some of the defines to make things build again.
Kai
Stefan Metzmacher [Sat, 2 Jun 2007 08:16:42 +0000 (08:16 +0000)]
r23306: pass down LDFLAGS to the link command in the libreplace standalone build
metze
Stefan Metzmacher [Sat, 2 Jun 2007 08:00:45 +0000 (08:00 +0000)]
r23303: so HP-UX 11.11 also likes the 11.00 workarround for broken
pread/pwrite when using large file support.
metze
Andrew Tridgell [Sat, 2 Jun 2007 00:32:49 +0000 (00:32 +0000)]
r23301: merged from ctdb
Stefan Metzmacher [Fri, 1 Jun 2007 18:36:55 +0000 (18:36 +0000)]
r23296: HP-UX 11.11 also gets sizeof(uint64_t) == 4
so try the same fix as for 11.00
metze
Stefan Metzmacher [Fri, 1 Jun 2007 13:49:19 +0000 (13:49 +0000)]
r23294: try to fix the build
metze
Stefan Metzmacher [Fri, 1 Jun 2007 13:04:56 +0000 (13:04 +0000)]
r23293: the fix for HP-UX 11.11 doesn't work on HP-UX 11.00
we end up with sozeof(uint64_t) == 4 :-(
the _APP32_64BIT_OFF_T section in <sys/unistd.h> missed
to redirect pread, pwrite to pread64, pwrite64 in HP-UX 11.00
so try it manually as a workarround
metze
Rafal Szczesniak [Fri, 1 Jun 2007 12:29:22 +0000 (12:29 +0000)]
r23292: check for errors returned in a call result.
rafal
Jelmer Vernooij [Fri, 1 Jun 2007 12:01:53 +0000 (12:01 +0000)]
r23289: Provide support for GCC attributes _PURE_, _NONNULL_, _DEPRECATED_, _NORETURN_ and _WARN_UNUSED_RESULT_.
Stefan Metzmacher [Fri, 1 Jun 2007 10:17:02 +0000 (10:17 +0000)]
r23288: give more info...
metze
Andrew Bartlett [Fri, 1 Jun 2007 03:47:35 +0000 (03:47 +0000)]
r23286: In SWAT, it was not possible to use a domain name other than the default.
Fix this in the same way the setup/provision script does.
Andrew Bartlett
Andrew Bartlett [Thu, 31 May 2007 23:01:08 +0000 (23:01 +0000)]
r23281: Ensure we wipe all the right things in distclean.
Andrew Bartlett
Stefan Metzmacher [Thu, 31 May 2007 13:59:08 +0000 (13:59 +0000)]
r23266: HP-UX 11.23 doesn't like this, but HP-UX 11.00 and 11.11 need it
metze
Stefan Metzmacher [Thu, 31 May 2007 12:23:52 +0000 (12:23 +0000)]
r23265: HP-UX 11.00 also needs this, try to see if 11.23 is also happy
with it...
metze
Andrew Bartlett [Thu, 31 May 2007 12:08:03 +0000 (12:08 +0000)]
r23264: Make it more clear what this is actually setting up
Andrew Bartlett [Thu, 31 May 2007 05:37:52 +0000 (05:37 +0000)]
r23262: Fix mkrelease.sh to work in the right directories
Andrew Bartlett [Thu, 31 May 2007 05:05:45 +0000 (05:05 +0000)]
r23261: Merge WHATSNEW back into the main branch. Comments/omissions greatly
appriciated.
Andrew Bartlett
Andrew Bartlett [Thu, 31 May 2007 00:00:19 +0000 (00:00 +0000)]
r23257: Newer OpenLDAP versions don't seem to need this, so simplfy.
Andrew Bartlett
Günther Deschner [Wed, 30 May 2007 10:24:40 +0000 (10:24 +0000)]
r23240: Fill in netr_DsrGetDcSiteCoverageW.
Guenther
Günther Deschner [Wed, 30 May 2007 09:54:19 +0000 (09:54 +0000)]
r23239: Fill in drsuapi_QuerySitesByCost.
Guenther
Andrew Tridgell [Wed, 30 May 2007 08:15:49 +0000 (08:15 +0000)]
r23238: merged transaction lock changes from ctdb
this ensures that having the global lock also implies the transaction
lock
Andrew Tridgell [Wed, 30 May 2007 08:14:59 +0000 (08:14 +0000)]
r23237: update lib/replace from ctdb
Andrew Bartlett [Wed, 30 May 2007 01:09:18 +0000 (01:09 +0000)]
r23235: Don't do a seperate LDAP provision step. Instead, everything we need
(including the config files) is created by provision-backend.
Andrew Bartlett
Andrew Bartlett [Wed, 30 May 2007 00:36:23 +0000 (00:36 +0000)]
r23233: Use the schema and basedn files generated by the provision-backend script.
(Moving towards using only the script's output, one step at a time).
Andrew Bartlett
Andrew Bartlett [Tue, 29 May 2007 23:24:42 +0000 (23:24 +0000)]
r23232: Add in some extra files required by the new provision-backend.
(sorry for breaking the build)
Andrew Bartlett
Jim McDonough [Tue, 29 May 2007 21:50:17 +0000 (21:50 +0000)]
r23231: Fix make test on build farm for 64-bit hosts. There's no reason this should
be any different for 64-bit hosts, but we probably are lucking out on other
fields here as well. The "fields_present" field shouldn't just be copied
from usrmgr traces, because it indicates which fields should be set, and
in this case, we were setting the kickoff time (NOT the expired time) to some
random date.
Stefan Metzmacher [Tue, 29 May 2007 15:19:37 +0000 (15:19 +0000)]
r23209: import getnameinfo.c, inet_ntop.c and inet_pton.c from
loikeet-heimdal
metze
Stefan Metzmacher [Tue, 29 May 2007 15:18:20 +0000 (15:18 +0000)]
r23208: on some HP-UX boxes dlfcn.h is available and use unsigned int flags
for dlopen but no library contains the function...
metze
Stefan Metzmacher [Tue, 29 May 2007 14:51:24 +0000 (14:51 +0000)]
r23205: abartlet please commit the correct content ...
this just fixes make install
metze
Andrew Bartlett [Tue, 29 May 2007 13:06:08 +0000 (13:06 +0000)]
r23191: Use the new provision-backend script to setup Fedora DS for make test.
OpenLDAP to follow once I get things working...
Andrew Bartlett
Andrew Bartlett [Tue, 29 May 2007 12:18:41 +0000 (12:18 +0000)]
r23189: Work towards a totally scripted setup of LDAP backends, so others can
easily try this out.
I also intend to use this for the selftest, but I'm chasing issues
with the OpenlDAP (but not Fedora DS) backend.
Andrew Bartlett
Stefan Metzmacher [Tue, 29 May 2007 11:13:07 +0000 (11:13 +0000)]
r23188: revert 23123 and 23118.
as a long term solution this was the correct approach,
but it's a bit more complex and we need to provide the
whole socket api and libnsl.so checking in libreplace...
as a short term solution to fix the build on host 'hape'
we'll use the same trick as with inet_aton.c from
heimdal's lib/roken/
metze
Stefan Metzmacher [Tue, 29 May 2007 11:03:07 +0000 (11:03 +0000)]
r23187: revert 23145 and 23135 to fix the build on solaris...
metze
Andrew Tridgell [Tue, 29 May 2007 08:30:41 +0000 (08:30 +0000)]
r23182: fixed valgrind error
Andrew Tridgell [Tue, 29 May 2007 08:22:45 +0000 (08:22 +0000)]
r23181: prevent attempts to reopen the connection twice at the same time
Andrew Tridgell [Tue, 29 May 2007 07:32:28 +0000 (07:32 +0000)]
r23180: auto-reconnect on both NT_STATUS_END_OF_FILE and NT_STATUS_LOCAL_DISCONNECT
Rafal Szczesniak [Tue, 29 May 2007 06:33:55 +0000 (06:33 +0000)]
r23179: I forgot ejsnet.js script is one of tests. Disable it temporarily.
rafal
Rafal Szczesniak [Tue, 29 May 2007 05:49:35 +0000 (05:49 +0000)]
r23178: add simple js code I use for testing and which starts to look like
ejsnet command line utility (perhaps to be moved to utils later...)
rafal
Andrew Bartlett [Tue, 29 May 2007 01:20:47 +0000 (01:20 +0000)]
r23177: Add in a new provision-backend script. This helps set up the OpenLDAP or Fedora DS backend.
This required a new mkdir() call in ejs.
We can now provision just the schema for ad2oLschema to operate on
(with provision_schema(), without performing the whole provision, just
to wipe it again (adjustments to 'make test' to come soon).
Andrew Bartlett
Andrew Bartlett [Tue, 29 May 2007 00:34:31 +0000 (00:34 +0000)]
r23176: Note that we only return one DC from this call at the moment.
Andrew Bartlett
Jelmer Vernooij [Mon, 28 May 2007 21:04:59 +0000 (21:04 +0000)]
r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl
Jelmer Vernooij [Mon, 28 May 2007 14:24:36 +0000 (14:24 +0000)]
r23174: merge text
Jelmer Vernooij [Sat, 26 May 2007 16:56:54 +0000 (16:56 +0000)]
r23158: Set version to 1.0.1.
Jelmer Vernooij [Sat, 26 May 2007 16:55:08 +0000 (16:55 +0000)]
r23157: Add news file for talloc.
Andrew Tridgell [Sat, 26 May 2007 08:47:27 +0000 (08:47 +0000)]
r23153: a first cut at a fix for the dgram flood problem that volker
found. Not sure this is the best solution, but it should work.
Andrew Tridgell [Sat, 26 May 2007 03:24:08 +0000 (03:24 +0000)]
r23152: fixed some async retry issues in openbench
Andrew Bartlett [Sat, 26 May 2007 00:25:22 +0000 (00:25 +0000)]
r23149: Fix up the trusted domain lookup code to use the new structures.
Andrew Bartlett
Stefan Metzmacher [Fri, 25 May 2007 13:30:49 +0000 (13:30 +0000)]
r23146: fix the build (temporary)
abartlet: please fix this correct!
metze
Stefan Metzmacher [Fri, 25 May 2007 13:11:17 +0000 (13:11 +0000)]
r23145: try to fix the build on solaris
metze
Stefan Metzmacher [Fri, 25 May 2007 13:03:33 +0000 (13:03 +0000)]
r23144: splitup RAW-OPLOCK into small units
metze
Andrew Tridgell [Fri, 25 May 2007 12:35:03 +0000 (12:35 +0000)]
r23143: error found by valgrind
Andrew Tridgell [Fri, 25 May 2007 12:21:29 +0000 (12:21 +0000)]
r23142: added error checking and reconnect on echo replies
Andrew Bartlett [Fri, 25 May 2007 11:59:52 +0000 (11:59 +0000)]
r23141: Use the finddcs() library call rather than a winbind-specific version.
(I created finddcs() from the winbind code a while back, so this
finishes that work)
Andrew Bartlett
Andrew Tridgell [Fri, 25 May 2007 11:39:43 +0000 (11:39 +0000)]
r23140: send send echos while disconnected
Andrew Tridgell [Fri, 25 May 2007 10:43:06 +0000 (10:43 +0000)]
r23139: use echo operations once a second in lockbench and openbench to ensure
we detect IP takeover on servers
Andrew Tridgell [Fri, 25 May 2007 10:42:29 +0000 (10:42 +0000)]
r23138: added a raw interface for SMBecho operations
Stefan Metzmacher [Fri, 25 May 2007 09:15:09 +0000 (09:15 +0000)]
r23137: make it possible to skip the pidl tests
with PIDL_TESTS_SKIP=yes
metze
Andrew Bartlett [Fri, 25 May 2007 08:44:33 +0000 (08:44 +0000)]
r23136: Set the event context onto the credentials in more places.
This helps ensure that the kerberos code uses the right event context.
Andrew Bartlett
Stefan Metzmacher [Fri, 25 May 2007 08:14:15 +0000 (08:14 +0000)]
r23135: inet_ntop and inet_pton are now provided by libreplace
metze
Andrew Bartlett [Fri, 25 May 2007 08:05:14 +0000 (08:05 +0000)]
r23134: Set the event context onto the cli_credentials.
Andrew Bartlett
Andrew Bartlett [Fri, 25 May 2007 08:04:39 +0000 (08:04 +0000)]
r23133: I felt pity on Kai, as he starts work on winbind in Samba4, so I
decided to clean it up a little.
We now use SPNEGO for authentication if possible, and common routines
shared with the rest of the librpc codebase. Rather than make a
connection to IPC$, then connect the pipes to it, we instead have the
lsa and samr pipes as 'secondary connections'.
Andrew Bartlett
Andrew Bartlett [Fri, 25 May 2007 05:19:02 +0000 (05:19 +0000)]
r23132: Resolve an issue where we would use the ccache after we free()ed it.
The problem was, we would set the ccache, then invalidate it as we set
details from it (like the principal name from the ccache).
Instead, set the ccache onto the credentials structure after we are
done processing it.
Andrew Bartlett
Günther Deschner [Thu, 24 May 2007 23:38:46 +0000 (23:38 +0000)]
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
Rafal Szczesniak [Thu, 24 May 2007 21:51:25 +0000 (21:51 +0000)]
r23126: this was sitting on my laptop for a while...
change the way the ejs object is being created and return listing
context (with status) rather than collecting all entries gathered
from libnet call.
rafal
Rafal Szczesniak [Thu, 24 May 2007 21:45:29 +0000 (21:45 +0000)]
r23125: add host manager subcontext function.
rafal
Rafal Szczesniak [Thu, 24 May 2007 21:44:27 +0000 (21:44 +0000)]
r23124: add host subcontext providing (at the moment) list of domains
hosted on the server.
rafal
Michael Adam [Thu, 24 May 2007 21:29:15 +0000 (21:29 +0000)]
r23123: Fix two utterly simply typos that broke the whole build farm...
Michael
Michael Adam [Thu, 24 May 2007 15:51:01 +0000 (15:51 +0000)]
r23118: Make inet_pton and inet_ntop available through lib/replace.
The code for inet_pton.c and inet_ntop.c is taken from
the rsync code.
I will put this into 3_0 and 3_0_26 too, but let's sort
the readahead issue in lib/replace of 3_0 first...
Michael
Stefan Metzmacher [Thu, 24 May 2007 12:40:46 +0000 (12:40 +0000)]
r23115: the attribute array needs to be NULL terminated...
hopefully fix the crash on some hosts in the farm...
metze
Stefan Metzmacher [Thu, 24 May 2007 12:02:34 +0000 (12:02 +0000)]
r23114: we fail the new BASE-DELETE/deltest20a|b tests
metze
Stefan Metzmacher [Thu, 24 May 2007 09:28:49 +0000 (09:28 +0000)]
r23111: nicer ./configure --help output
metze
Stefan Metzmacher [Thu, 24 May 2007 09:28:05 +0000 (09:28 +0000)]
r23110: add --disable-shared option, very useful for the build-farm...
metze
Michael Adam [Thu, 24 May 2007 07:15:36 +0000 (07:15 +0000)]
r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
Jeremy Allison [Wed, 23 May 2007 23:14:48 +0000 (23:14 +0000)]
r23104: Add comment explaining the new test.
Jeremy.
Jeremy Allison [Wed, 23 May 2007 23:11:16 +0000 (23:11 +0000)]
r23103: Add a torture test for the insane semantics Steve's cifsfs client
uses so we don't regress :-).
Jeremy.
Jeremy Allison [Wed, 23 May 2007 21:14:05 +0000 (21:14 +0000)]
r23099: New interesting delete on close tests :-).
This will break all delete tests on the build farm
until I check in my server patch.
Jeremy.
Andrew Tridgell [Wed, 23 May 2007 07:44:51 +0000 (07:44 +0000)]
r23090: a test showing two netlogon pipes open at once, using the LogonEx ops
Andrew Bartlett [Wed, 23 May 2007 02:41:31 +0000 (02:41 +0000)]
r23089: This is upstream now, so we don't need to add it manually.
Andrew Bartlett
Stefan Metzmacher [Tue, 22 May 2007 12:45:58 +0000 (12:45 +0000)]
r23071: print the command on failure only
metze
Stefan Metzmacher [Tue, 22 May 2007 11:23:36 +0000 (11:23 +0000)]
r23069: print out the command, to find out the problem on host 'tridge'
metze
Stefan Metzmacher [Tue, 22 May 2007 09:25:58 +0000 (09:25 +0000)]
r23067: use 'const union smb_search_data *file' also in the server code to get rid
of compiler warnings in the cifs backend
metze
Stefan Metzmacher [Tue, 22 May 2007 09:02:16 +0000 (09:02 +0000)]
r23066: don't ignore errors
metze
Rafal Szczesniak [Tue, 22 May 2007 06:34:14 +0000 (06:34 +0000)]
r23065: revert local includes to prevent security problems (at least
temporarily...)
rafal
Andrew Bartlett [Tue, 22 May 2007 05:22:18 +0000 (05:22 +0000)]
r23064: Clarify comment and indent
Andrew Bartlett [Tue, 22 May 2007 05:21:59 +0000 (05:21 +0000)]
r23063: Make sure to invalidate the ccache when we set a
username/password/realm/etc from the command line.
Also make sure it can't 'come back' from a later call to
cli_credentials_guess(), buy setting a threshold.
This should fix the issues with the build farm...
Andrew Bartlett
Andrew Tridgell [Tue, 22 May 2007 05:16:16 +0000 (05:16 +0000)]
r23062: make sure one node doesn't get ahead of the others at the start
Andrew Tridgell [Tue, 22 May 2007 04:53:05 +0000 (04:53 +0000)]
r23061: keep the RAW-BENCH-OPEN test balanced
Andrew Tridgell [Tue, 22 May 2007 04:13:17 +0000 (04:13 +0000)]
r23060: use #include <roken.h> consistently. Using "roken.h" in this directory
breaks Samba builds on some systems as they find the wrong roken.h
Andrew Tridgell [Tue, 22 May 2007 01:02:00 +0000 (01:02 +0000)]
r23059: reject_free needs to be initialised
Andrew Tridgell [Tue, 22 May 2007 00:43:10 +0000 (00:43 +0000)]
r23058: the cldap code was getting too intimate with the internals of struct
asn1_context. A hangover from when it wasn't a allocated structure
Andrew Tridgell [Mon, 21 May 2007 23:35:14 +0000 (23:35 +0000)]
r23057: only call the async recv function for the first pending receive, not
all pending receives, when the transport dies. This is because the
async callback most commonly shuts down the connection (it's the only
reasonable thing to do when it's dead), and that frees the whole
context. That means that if we loop more than once, we'll end up using
freed memory.