ddiss/samba.git
13 years agos3: fix order of arguments in nsec_time_diff call
Björn Jacke [Fri, 17 Sep 2010 11:47:05 +0000 (13:47 +0200)]
s3: fix order of arguments in nsec_time_diff call

13 years agos3: remove TspecDiff macro, we can use the shared nsec_time_diff function
Björn Jacke [Thu, 16 Sep 2010 17:45:43 +0000 (19:45 +0200)]
s3: remove TspecDiff macro, we can use the shared nsec_time_diff function

13 years agos3: use nsec_time_diff instead of TspecDiff
Björn Jacke [Thu, 16 Sep 2010 17:02:27 +0000 (19:02 +0200)]
s3: use nsec_time_diff instead of TspecDiff

13 years agos3/vfs_scannedonly: use smb_msleep instead of nanosleep
Björn Jacke [Thu, 16 Sep 2010 16:52:45 +0000 (18:52 +0200)]
s3/vfs_scannedonly: use smb_msleep instead of nanosleep

Thanks to Joachim Schmitz. This fixes bug #7478

13 years agos3/profile: remove the magical clock initialization from the profile code
Björn Jacke [Tue, 14 Sep 2010 20:40:51 +0000 (22:40 +0200)]
s3/profile: remove the magical clock initialization from the profile code

there's no point in not profiling times if no monotonic clock is found -
monotonic and realtime clock are equally fast. Just use clock_gettime_mono
instead.
(cherry picked from commit 4e8d6a779c9aa9b9418b4f835d831ad4492c3f6c)

13 years agos3/profiling: don't use CLOCK_PROCESS_CPUTIME_ID
Björn Jacke [Tue, 14 Sep 2010 20:17:47 +0000 (22:17 +0200)]
s3/profiling: don't use CLOCK_PROCESS_CPUTIME_ID

that clock is a CPU burnometer but we need a chronometer for profiling.
(cherry picked from commit 5f6a145800a9e67c638f3ee05e43bb12fafffb48)

13 years agolibreplace: use CLOCK_HIGHRES when available
Björn Jacke [Tue, 14 Sep 2010 12:08:44 +0000 (14:08 +0200)]
libreplace: use CLOCK_HIGHRES when available

in Solaris 8 CLOCK_HIGHRES was the (only) name for CLOCK_MONOTONIC
(cherry picked from commit 9c00fb4aa68ac7b044e954906e5ed20e039373a3)

13 years agos3: Add the PAC info3 struct to the netsamlogon_cache in ntlm_auth
Volker Lendecke [Thu, 16 Sep 2010 07:31:10 +0000 (09:31 +0200)]
s3: Add the PAC info3 struct to the netsamlogon_cache in ntlm_auth

13 years agos3: Correctly unwrap the krb ticket in gss-spnego
Volker Lendecke [Thu, 16 Sep 2010 08:34:59 +0000 (10:34 +0200)]
s3: Correctly unwrap the krb ticket in gss-spnego

13 years agos3: Fall back to raw NTLMSSP for the gss-spnego protocol
Volker Lendecke [Thu, 16 Sep 2010 08:22:00 +0000 (10:22 +0200)]
s3: Fall back to raw NTLMSSP for the gss-spnego protocol

This is to handle the mod_auth_ntlm_winbind protocol
sending "Negotiate" to IE, which sends raw NTLMSSP
instead of a SPNEGO wrapped NTLMSSP blob.

13 years agos3: Split off output generation from manage_squid_ntlmssp_request
Volker Lendecke [Thu, 16 Sep 2010 08:21:20 +0000 (10:21 +0200)]
s3: Split off output generation from manage_squid_ntlmssp_request

13 years agos3: Wrap the ntlm_auth loop with a talloc_stackframe
Volker Lendecke [Thu, 16 Sep 2010 08:36:21 +0000 (10:36 +0200)]
s3: Wrap the ntlm_auth loop with a talloc_stackframe

13 years agoFix all sid_parse returns to be checked. Tidy up some checks and error
Jeremy Allison [Wed, 15 Sep 2010 22:40:15 +0000 (15:40 -0700)]
Fix all sid_parse returns to be checked. Tidy up some checks and error
messages.

Jeremy.
(cherry picked from commit 447d96878a8b5a335447c37eca2a46b7133caa78)

13 years agos3-smbd: prevent call_nt_transact_ioctl() crash in FSCTL_FIND_FILES_BY_SID case.
Günther Deschner [Wed, 15 Sep 2010 22:19:51 +0000 (00:19 +0200)]
s3-smbd: prevent call_nt_transact_ioctl() crash in FSCTL_FIND_FILES_BY_SID case.

Jeremy, please check.

Guenther
(cherry picked from commit db8cfda320d0e2453d01cdae884fd8aa108bcda7)

13 years agoAdd check for invalid data size.
Jeremy Allison [Wed, 15 Sep 2010 17:50:50 +0000 (10:50 -0700)]
Add check for invalid data size.

Jeremy.
(cherry picked from commit 627de92521cb20c5387656946bcbf5ecf3be5332)

13 years agoMerge branch 'v3-6-test' of ssh://git.samba.org/data/git/samba into v3-6-test
Jeremy Allison [Wed, 15 Sep 2010 17:51:39 +0000 (10:51 -0700)]
Merge branch 'v3-6-test' of ssh://git.samba.org/data/git/samba into v3-6-test

13 years agos3: Fix some debug msgs in ntlm_auth
Volker Lendecke [Wed, 15 Sep 2010 08:29:44 +0000 (10:29 +0200)]
s3: Fix some debug msgs in ntlm_auth

13 years agontlmssp: when pushing an ntlmssp NEGOTIATE_MESSAGE deal with NULL strings.
Günther Deschner [Tue, 14 Sep 2010 15:57:23 +0000 (17:57 +0200)]
ntlmssp: when pushing an ntlmssp NEGOTIATE_MESSAGE deal with NULL strings.

Guenther
(cherry picked from commit 33da33c59e431f6f097bdd143fb48db465607669)

13 years agoEnsure incoming timespec values correctly wrap at nsecs.
Jeremy Allison [Tue, 14 Sep 2010 21:53:17 +0000 (14:53 -0700)]
Ensure incoming timespec values correctly wrap at nsecs.

Jeremy.
(cherry picked from commit 0b270f014f67b8ff49b70fb41b2cceac121f337e)

13 years agoFix string_to_sid() to allow non '\0' termination of the string - allows
Jeremy Allison [Tue, 14 Sep 2010 21:45:45 +0000 (14:45 -0700)]
Fix string_to_sid() to allow non '\0' termination of the string - allows
string_to_sid() to be used in formatted strings like FOO/S-1-5-XXXX-YYYY/BAR.

Jeremy.
(cherry picked from commit 55b315094ef8a8ed691f9717c28cab301e17ef25)

13 years agos3-torture Add tests to show that the dom_sid parsing was faulty.
Andrew Bartlett [Sat, 4 Sep 2010 04:13:31 +0000 (14:13 +1000)]
s3-torture Add tests to show that the dom_sid parsing was faulty.

Andrew Bartlett
(cherry picked from commit 15abd86d54c582edfec29dfd55c256b6565da569)

13 years agos3-util_sid Use the NDR parser to parse struct dom_sid
Andrew Bartlett [Sat, 4 Sep 2010 04:11:46 +0000 (14:11 +1000)]
s3-util_sid Use the NDR parser to parse struct dom_sid

The manual parser failed to constrain the maximum number of
sub-authorities to 15, allowing an overflow of the array.

Andrew Bartlett
(cherry picked from commit 1892df6ca803aed94e91cbd7a12ca1b8470dfc89)

13 years agolibcli/security Use sid_append_rid() in dom_sid_append_rid()
Andrew Bartlett [Sat, 4 Sep 2010 04:10:31 +0000 (14:10 +1000)]
libcli/security Use sid_append_rid() in dom_sid_append_rid()

This ensures that the maximum number of sub-authorities is respected,
otherwise we may run off the end of the array.

Andrew Bartlett
(cherry picked from commit 46f585e364fc1640cf01ba0c738c6c5559f0b4fd)

13 years agolibcli/security Merge source3/ string_to_sid() to common code
Andrew Bartlett [Sat, 4 Sep 2010 04:09:17 +0000 (14:09 +1000)]
libcli/security Merge source3/ string_to_sid() to common code

The source3 code repsects the limit of a maximum of 15 subauths,
while the source4 code does not, creating a security issue as
we parse string-form SIDs from clients.

Andrew Bartlett
(cherry picked from commit 51ecf796549287b7f10092778ffb52e018ae32fe)

13 years agos3-util_sid use ARRAY_SIZE() to ensure we never overflow the dom_sid
Andrew Bartlett [Sat, 4 Sep 2010 04:05:59 +0000 (14:05 +1000)]
s3-util_sid use ARRAY_SIZE() to ensure we never overflow the dom_sid

This ensures that this, unlike the MAXSUBAUTHS macro, can't get
out of sync with the structure.

Andrew Bartlett
(cherry picked from commit 72a8ea4d1545190bad85ee9f2216499e78b3625a)

13 years agos3-util_sid Accept S-1-5 as a SID
Andrew Bartlett [Sat, 4 Sep 2010 04:05:30 +0000 (14:05 +1000)]
s3-util_sid Accept S-1-5 as a SID
(cherry picked from commit 9d44688681bc196baf1bccbdf84092ffc0510bb7)

13 years agos3-dom_sid Use C99 types in dom_sid handling
Andrew Bartlett [Sat, 4 Sep 2010 04:04:55 +0000 (14:04 +1000)]
s3-dom_sid Use C99 types in dom_sid handling

Andrew Bartlett
(cherry picked from commit ce1e273a47105fcef71d054c0192b7985fd5b4f2)

13 years agoFix bug 7409 - Thousands of reduce_name: couldn't get realpath.
Jeremy Allison [Mon, 13 Sep 2010 23:54:21 +0000 (16:54 -0700)]
Fix bug 7409 - Thousands of reduce_name: couldn't get realpath.

Don't log this at level 1 - every EACCES will generate one.
Thanks to muehlfeld@medizinische-genetik.de for pointing this out.

Jeremy.
(cherry picked from commit b3fccd10a63058f982082887cefd77af633f516c)

13 years agontlm_auth: Fix a valgrind error
Volker Lendecke [Mon, 13 Sep 2010 16:09:20 +0000 (18:09 +0200)]
ntlm_auth: Fix a valgrind error

13 years agolib/tdb: change version to 1.2.4 after hash checking improvments
Stefan Metzmacher [Fri, 10 Sep 2010 02:47:32 +0000 (04:47 +0200)]
lib/tdb: change version to 1.2.4 after hash checking improvments

lib/tdb: change version to 1.2.4 after hash checking improvments

metze

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit d10b2c07be2cfdca09f07d3045ce891989d83a09)

13 years agotdb: put example hashes into header, so we notice incorrect hash_fn.
Rusty Russell [Mon, 13 Sep 2010 10:35:59 +0000 (20:05 +0930)]
tdb: put example hashes into header, so we notice incorrect hash_fn.

This is Stefan Metzmacher <metze@samba.org>'s patch with minor changes:
1) Use the TDB_MAGIC constant so both hashes aren't of strings.
2) Check the hash in tdb_check (paranoia, really).
3) Additional check in the (unlikely!) case where both examples hash to 0.
4) Cosmetic changes to var names and complaint message.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit 786b7263000dedcb97e7369402e2e9dc967e36c4)

13 years agotdb: fix tdb_check() on other-endian tdbs.
Rusty Russell [Mon, 13 Sep 2010 10:29:18 +0000 (19:59 +0930)]
tdb: fix tdb_check() on other-endian tdbs.

We must not endian-convert the magic string, just the rest.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit f77708e96268d18abbfb038f4e78fe9e11a2856f)

13 years agotdb: fix tdb_check() on read-only TDBs to actually work.
Rusty Russell [Mon, 13 Sep 2010 10:28:23 +0000 (19:58 +0930)]
tdb: fix tdb_check() on read-only TDBs to actually work.

Commit bc1c82ea137 "Fix tdb_check() to work with read-only tdb databases."
claimed to do this, but tdb_lockall_read() fails on read-only databases.

Also make sure we can still do tdb_check() inside a transaction (weird,
but we previously allowed it so don't break the API).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit 82e5644c9dbf5c2e4b0c4183372e0a79203d32a5)

13 years agotdb: make check more robust against recovery failures.
Rusty Russell [Mon, 13 Sep 2010 10:25:26 +0000 (19:55 +0930)]
tdb: make check more robust against recovery failures.

We can end up with dead areas when we die during transaction commit;
tdb_check() fails on such a (valid) database.

This is particularly noticable now we no longer truncate on recovery;
if the recovery area was at the end of the file we used to remove it
that way.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(cherry picked from commit 9e0deff904877068d19b41e965732f145c2554b9)

13 years agos3: Fix a typo (authentictaion->authentication)
Volker Lendecke [Mon, 13 Sep 2010 09:44:19 +0000 (11:44 +0200)]
s3: Fix a typo (authentictaion->authentication)

13 years agos3: Do not directly log off after a pam_logon
Volker Lendecke [Mon, 13 Sep 2010 09:31:58 +0000 (11:31 +0200)]
s3: Do not directly log off after a pam_logon

13 years agos3: Fix wbinfo arg for --pam-logon
Volker Lendecke [Mon, 13 Sep 2010 09:31:26 +0000 (11:31 +0200)]
s3: Fix wbinfo arg for --pam-logon

13 years agos3/winbind: use mono time for startup timeout check
Björn Jacke [Fri, 10 Sep 2010 19:36:20 +0000 (21:36 +0200)]
s3/winbind: use mono time for startup timeout check

13 years agolibreplace: clock_gettime sets errno
Björn Jacke [Fri, 10 Sep 2010 19:03:17 +0000 (21:03 +0200)]
libreplace: clock_gettime sets errno

13 years agoAdd check missing from previous patch after talloc_strdup().
Jeremy Allison [Sat, 11 Sep 2010 06:33:18 +0000 (23:33 -0700)]
Add check missing from previous patch after talloc_strdup().

Jeremy.
(cherry picked from commit a89b0ef53b990721d6e897b938bed75577b623d9)

13 years agoFactor out the recent changes into a function - check_parent_exists().
Jeremy Allison [Sat, 11 Sep 2010 06:28:15 +0000 (23:28 -0700)]
Factor out the recent changes into a function - check_parent_exists().
Fix this to ensure that if "start" is manipulated, then "dirpath"
is changed also.

Ensures that when the path:

/a/long/file/name/path.txt

is processed, we first stat:

/a/long/file/name/path.txt

and if this fails, we try to stat:

/a/long/file/name

if this path exists (the normal case when creating a new
entry in a directory) then we no longer do the individual
path name walk, but only do case insensitive lookup on the
last component. If the stat fails we do the full pathname
walk as normal in 3.5.x and below. Metze, examine this
change for your back-port.

Jeremy.
(cherry picked from commit 1787c1dfc3a506c0afee6d2bb67ba8789c709b86)

13 years agoCheck all SMB_MALLOC returns correctly. Found by Andreas Moroder <andreas.moroder...
Jeremy Allison [Fri, 10 Sep 2010 18:56:26 +0000 (11:56 -0700)]
Check all SMB_MALLOC returns correctly. Found by Andreas Moroder <andreas.moroder@gmx.net>.

Jeremy
(cherry picked from commit e8509589287ea04c6290dd127d3ef0c3e0b3f49d)

13 years agos3:torture: fix printf output, lines can't start with lower case "test"
Stefan Metzmacher [Wed, 8 Sep 2010 15:54:29 +0000 (17:54 +0200)]
s3:torture: fix printf output, lines can't start with lower case "test"

metze
(cherry picked from commit c91bdd2b0e02d31a1ea3a13a7f32a10e12c83fa8)

13 years agos3:torture: fix run_uid_regression_test
Stefan Metzmacher [Wed, 8 Sep 2010 15:55:12 +0000 (17:55 +0200)]
s3:torture: fix run_uid_regression_test

metze
(cherry picked from commit a489fb3ee252a052ed6bc6033bf021b249dbecca)

13 years agos3-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETED
Stefan Metzmacher [Wed, 8 Sep 2010 15:53:47 +0000 (17:53 +0200)]
s3-errormap: map ERRSRV/ERRbaduid to NT_STATUS_USER_SESSION_DELETED

metze
(cherry picked from commit cd8e2fd9fa2d2b0ef8c3c7189697577d46c2f848)

13 years agos3: use time_mono throughout in smbget
Björn Jacke [Wed, 8 Sep 2010 20:29:00 +0000 (22:29 +0200)]
s3: use time_mono throughout in smbget

13 years agos3/ldap: use monotonic clock for timeouts in smbldap
Björn Jacke [Mon, 6 Sep 2010 23:04:10 +0000 (01:04 +0200)]
s3/ldap: use monotonic clock for timeouts in smbldap

tevent would need monotonic clock features to make also smbldap's idle handling
aware of backward clock jumps. Other areas in smbldap are clock jump save now.

13 years agoFox missing SMB_MALLOC return checks noticed by "Andreas Moroder <andreas.moroder...
Jeremy Allison [Thu, 9 Sep 2010 22:29:03 +0000 (15:29 -0700)]
Fox missing SMB_MALLOC return checks noticed by "Andreas Moroder <andreas.moroder@gmx.net>".

Jeremy.
(cherry picked from commit 718fd39f10310d10ebc2276021d97d48f1163a88)

13 years agoMore paranoia to ensure SD's can't be set on read-only shares.
Jeremy Allison [Thu, 9 Sep 2010 22:28:43 +0000 (15:28 -0700)]
More paranoia to ensure SD's can't be set on read-only shares.

Jeremy.
(cherry picked from commit e6b85c2a7b3cfa0dd3c9859c88e5462c616d5a2a)

13 years agos3: Fix messsssages
Volker Lendecke [Thu, 9 Sep 2010 14:57:01 +0000 (16:57 +0200)]
s3: Fix messsssages

13 years agos3: Ensure NULL termination for "workstation" in auth_crap
Volker Lendecke [Thu, 9 Sep 2010 14:25:09 +0000 (16:25 +0200)]
s3: Ensure NULL termination for "workstation" in auth_crap

13 years agoDon't rely on the underlying ACL modules to enforce share level
Jeremy Allison [Thu, 9 Sep 2010 03:54:38 +0000 (20:54 -0700)]
Don't rely on the underlying ACL modules to enforce share level
security when setting ACLs, check at the call level as well.

Jeremy.
(cherry picked from commit bec9baf88a54d0e0d3fe1065c27df0f76c960e65)

13 years agoOptimization suggested by Metze. Without this patch,
Jeremy Allison [Wed, 8 Sep 2010 23:55:24 +0000 (16:55 -0700)]
Optimization suggested by Metze. Without this patch,
FindFirst with 'path\to\some\dir\with\files\*'

triggers the following stat calls

path\to\some\dir\with\files\* => ENOENT
path\
path\to\
path\to\some\
path\to\some\dir\
path\to\some\dir\with\
path\to\some\dir\with\files\
path\to\some\dir\with\files\* => ENOENT

With this patch we get :

path\to\some\dir\with\files\* => ENOENT
path\to\some\dir\with\files = OK

Jeremy.
(cherry picked from commit fcac46a61245e6b05f88ed80ec4b554ffd55dc63)

13 years agos3: "== false" looks wrong :-)
Volker Lendecke [Wed, 8 Sep 2010 13:29:32 +0000 (15:29 +0200)]
s3: "== false" looks wrong :-)
(cherry picked from commit 4f0b190a3086db3789e4198f5409a2b5c1980bf9)

13 years agoOops. Fix the build after the last commit. Sorry.
Jeremy Allison [Wed, 8 Sep 2010 20:03:21 +0000 (13:03 -0700)]
Oops. Fix the build after the last commit. Sorry.

13 years agos3-spoolss: Fixed a possible crash bug.
Andreas Schneider [Mon, 6 Sep 2010 14:07:24 +0000 (16:07 +0200)]
s3-spoolss: Fixed a possible crash bug.
(cherry picked from commit 80eba8143802dec1cad6debd85df3ab5ff47c83e)

13 years agos3: Prune the printername cache when a printer is deleted
Volker Lendecke [Wed, 8 Sep 2010 17:05:39 +0000 (10:05 -0700)]
s3: Prune the printername cache when a printer is deleted

(back port of commit 7612760c2226bc43c68f1a7e3b2985d0a22bf277
from master).

13 years agos3/libads: use monotonic clock for ldap connection timeouts
Björn Jacke [Tue, 7 Sep 2010 00:15:09 +0000 (02:15 +0200)]
s3/libads: use monotonic clock for ldap connection timeouts

13 years agos3: use monotonic clock for aio timeout
Björn Jacke [Tue, 7 Sep 2010 01:29:19 +0000 (03:29 +0200)]
s3: use monotonic clock for aio timeout

13 years agos3/nmbd: tidy up debug message: ttl isn't a hex value
Björn Jacke [Tue, 7 Sep 2010 01:05:35 +0000 (03:05 +0200)]
s3/nmbd: tidy up debug message: ttl isn't a hex value

13 years agos3/libads: use monotonic clock for DNS timeouts
Björn Jacke [Mon, 6 Sep 2010 23:54:01 +0000 (01:54 +0200)]
s3/libads: use monotonic clock for DNS timeouts

13 years agolib/util: add time_mono() for monotonic time a la time()
Björn Jacke [Mon, 6 Sep 2010 18:27:24 +0000 (20:27 +0200)]
lib/util: add time_mono() for monotonic time a la time()

13 years agos3-proto: remove obsolete prototypes.
Günther Deschner [Thu, 26 Aug 2010 21:25:00 +0000 (23:25 +0200)]
s3-proto: remove obsolete prototypes.

Guenther
(cherry picked from commit 338184fb3a3869f81ead82dcc477c87d858334d3)

13 years agos3-selftest: add samba3.posix_s3.rpc.spoolss.notify to knownfail list.
Günther Deschner [Mon, 16 Aug 2010 10:22:27 +0000 (12:22 +0200)]
s3-selftest: add samba3.posix_s3.rpc.spoolss.notify to knownfail list.

Guenther
(cherry picked from commit f03ac22770ef96d4b0fec81d94efefcddd8b310b)

13 years agos3-selftest: do not remove nsswrapper environment when running smbtorture4.
Günther Deschner [Thu, 26 Aug 2010 13:49:17 +0000 (15:49 +0200)]
s3-selftest: do not remove nsswrapper environment when running smbtorture4.

Guenther
(cherry picked from commit 433c08045ee96ca2e507cdec47bf9ef1dd95540e)

13 years agos3-libads: avoid crashing in ads_keytab_list().
Günther Deschner [Tue, 31 Aug 2010 12:27:56 +0000 (14:27 +0200)]
s3-libads: avoid crashing in ads_keytab_list().

Heimdal's krb5_kt_start_seq_get() will leave a non 0 fd in the krb5_kt_cursor
struct when it cannot find a given keytab.

Guenther
(cherry picked from commit bf3912be46b2cac71a1ff89f548b9e3528872c6c)

13 years agos3-printing: add debug to get_correct_cversion().
Günther Deschner [Tue, 31 Aug 2010 14:58:54 +0000 (16:58 +0200)]
s3-printing: add debug to get_correct_cversion().

Guenther
(cherry picked from commit 16c2d9182d0c0ff55eba4d8bce2931b579b00339)

13 years agowinreg: add winreg_RestoreKeyFlags to IDL.
Günther Deschner [Tue, 31 Aug 2010 14:58:23 +0000 (16:58 +0200)]
winreg: add winreg_RestoreKeyFlags to IDL.

Guenther
(cherry picked from commit e5c7ec66982e6d2705c7a103aff5502f441404bb)

13 years agos3-spoolss: fix some debug statements.
Günther Deschner [Thu, 2 Sep 2010 11:41:08 +0000 (13:41 +0200)]
s3-spoolss: fix some debug statements.

Guenther
(cherry picked from commit cf728f890f6d2cd8cc831ba95a5d2d0dac6e8e35)

13 years agos3-build: remove unrequired ntlmssp forward declaration.
Günther Deschner [Wed, 18 Aug 2010 16:25:54 +0000 (18:25 +0200)]
s3-build: remove unrequired ntlmssp forward declaration.

Guenther
(cherry picked from commit d9a76054318eb2fbe2bb539d6091379814f16b0e)

13 years agos3-idmap: only include idmap headers where needed.
Günther Deschner [Wed, 18 Aug 2010 16:13:42 +0000 (18:13 +0200)]
s3-idmap: only include idmap headers where needed.

Guenther
(cherry picked from commit 2b41f421fd14cb2190b43dbf079c734e7024335c)

13 years agos3-build: no point in including doserr.h, noone uses them.
Günther Deschner [Wed, 18 Aug 2010 14:51:06 +0000 (16:51 +0200)]
s3-build: no point in including doserr.h, noone uses them.

Guenther
(cherry picked from commit 3ef531ec34dc709479005b00f50d1daf8e65269a)

13 years agos3-nmbd: move nmbd proto out of main proto.h
Günther Deschner [Wed, 18 Aug 2010 13:22:09 +0000 (15:22 +0200)]
s3-nmbd: move nmbd proto out of main proto.h

Guenther
(cherry picked from commit c2177909187ad104d5d2e13bad0f45fb97d121e2)

13 years agos3-build: only include nsswitch header where needed.
Günther Deschner [Wed, 18 Aug 2010 10:42:49 +0000 (12:42 +0200)]
s3-build: only include nsswitch header where needed.

Guenther
(cherry picked from commit 7ff7eb0b5299f90a313986bfc547f48ef9f8dc9c)

13 years agos3-build: remove unrequired forward declaration for struct printjob.
Günther Deschner [Wed, 18 Aug 2010 10:26:53 +0000 (12:26 +0200)]
s3-build: remove unrequired forward declaration for struct printjob.

Guenther
(cherry picked from commit 08eff4d311ef3dd4973645e28a7669db4c383cad)

13 years agos3-build: only include memcache.h where needed.
Günther Deschner [Wed, 18 Aug 2010 10:24:35 +0000 (12:24 +0200)]
s3-build: only include memcache.h where needed.

Guenther
(cherry picked from commit aba1bf4b5e1bf82f769c3c545578414202c74106)

13 years agos3-lsa: separate out init_lsa headers.
Günther Deschner [Thu, 19 Aug 2010 21:15:22 +0000 (23:15 +0200)]
s3-lsa: separate out init_lsa headers.

Guenther
(cherry picked from commit e978a3d3f4974753f09fbafdd0cf3ad15209911f)

13 years agos3-build: only include smb_signing.h where needed.
Günther Deschner [Tue, 17 Aug 2010 13:03:58 +0000 (15:03 +0200)]
s3-build: only include smb_signing.h where needed.

Guenther
(cherry picked from commit 59289d4fa9e5f6f2ff6abd13e8f07ca6ee3e2a3c)

13 years agos3: On Solaris, iov_len is an int
Volker Lendecke [Sun, 5 Sep 2010 14:27:43 +0000 (16:27 +0200)]
s3: On Solaris, iov_len is an int

We can't use &iov.iov_len passing it to a size_t *

13 years agoFix warning message on SAFE_FREE.
Jeremy Allison [Fri, 3 Sep 2010 20:57:01 +0000 (13:57 -0700)]
Fix warning message on SAFE_FREE.

13 years agos3-ctdb: ctdbd_init_connection() is static to this file.
Günther Deschner [Wed, 1 Sep 2010 08:56:17 +0000 (10:56 +0200)]
s3-ctdb: ctdbd_init_connection() is static to this file.

Guenther
(cherry picked from commit 5568ceda47905657b79f7971a3a5eca1ba0cedc1)

13 years agos3: use fine grained time in netprot response
Björn Jacke [Wed, 12 May 2010 08:50:17 +0000 (10:50 +0200)]
s3: use fine grained time in netprot response

13 years agos3: use monotonic clock for time deltas in smbget
Björn Jacke [Tue, 31 Aug 2010 11:10:45 +0000 (13:10 +0200)]
s3: use monotonic clock for time deltas in smbget

13 years agotdb/waf: the deps for rt are provided by libreplace
Björn Jacke [Tue, 31 Aug 2010 11:06:39 +0000 (13:06 +0200)]
tdb/waf: the deps for rt are provided by libreplace

13 years agoreplace/waf: add rt to deps at this place
Björn Jacke [Tue, 31 Aug 2010 09:31:19 +0000 (11:31 +0200)]
replace/waf: add rt to deps at this place

13 years agos3: use monotonic time in timeout of sys_select_intr()
Björn Jacke [Mon, 30 Aug 2010 16:02:19 +0000 (18:02 +0200)]
s3: use monotonic time in timeout of sys_select_intr()

13 years agolib/util: add nsec_time_diff to calulate diffs from timespecs
Björn Jacke [Mon, 30 Aug 2010 15:56:37 +0000 (17:56 +0200)]
lib/util: add nsec_time_diff to calulate diffs from timespecs

13 years agos3: use monotonic clock for time deltas in namequery functions
Björn Jacke [Mon, 30 Aug 2010 13:46:22 +0000 (15:46 +0200)]
s3: use monotonic clock for time deltas in namequery functions

13 years agos3: use monotonic clock for time deltas in smbtar
Björn Jacke [Mon, 30 Aug 2010 13:44:54 +0000 (15:44 +0200)]
s3: use monotonic clock for time deltas in smbtar

13 years agos3: use monotonic clock for time deltas in smbclient
Björn Jacke [Mon, 30 Aug 2010 10:15:54 +0000 (12:15 +0200)]
s3: use monotonic clock for time deltas in smbclient

13 years agos3: add TspecDiff macro
Björn Jacke [Mon, 30 Aug 2010 13:30:16 +0000 (15:30 +0200)]
s3: add TspecDiff macro

13 years agolib/util: add function to query the monotonic clock with the required fallback to...
Björn Jacke [Mon, 30 Aug 2010 10:10:29 +0000 (12:10 +0200)]
lib/util: add function to query the monotonic clock with the required fallback to the realtime clock

13 years agolibreplace: make a define for a best effort monotonic clock
Björn Jacke [Thu, 26 Aug 2010 10:22:02 +0000 (12:22 +0200)]
libreplace: make a define for a best effort monotonic clock

13 years agos3: we have clock_gettime everywhere, remove ifdefs
Björn Jacke [Tue, 24 Aug 2010 09:14:19 +0000 (11:14 +0200)]
s3: we have clock_gettime everywhere, remove ifdefs

13 years agos3: use clock_gettime() in timespec_current()
Björn Jacke [Mon, 30 Aug 2010 14:51:56 +0000 (16:51 +0200)]
s3: use clock_gettime() in timespec_current()

13 years agolibreplace: add clock_gettime replacement function for systems that don't have it
Björn Jacke [Thu, 19 Aug 2010 17:07:04 +0000 (19:07 +0200)]
libreplace: add clock_gettime replacement function for systems that don't have it

13 years agolibreplace/waf: look for clock_gettime
Björn Jacke [Thu, 26 Aug 2010 22:13:07 +0000 (00:13 +0200)]
libreplace/waf: look for clock_gettime

13 years agolibreplace: move detection of clock_gettime to libreplace
Björn Jacke [Thu, 19 Aug 2010 16:39:45 +0000 (18:39 +0200)]
libreplace: move detection of clock_gettime to libreplace

13 years agolibreplace: move gettimeofday TZ arg check here
Björn Jacke [Mon, 30 Aug 2010 12:35:49 +0000 (14:35 +0200)]
libreplace: move gettimeofday TZ arg check here

13 years agodocs:vfs_gpfs: improve the CAVEAT section on run and build time dependencies
Michael Adam [Mon, 30 Aug 2010 12:49:16 +0000 (14:49 +0200)]
docs:vfs_gpfs: improve the CAVEAT section on run and build time dependencies