Michael Adam [Fri, 20 Apr 2007 12:06:38 +0000 (12:06 +0000)]
r22411: Fix the build:
Prototype of create_aio_ex_read, set_message and definition of
UNIXERROR have changed in r22389 and r22391? to require an additional
"inbuf" argument. Some places in smbd/aio.c had not been adapted.
This patch fixes the build.
Michael
Günther Deschner [Fri, 20 Apr 2007 10:54:55 +0000 (10:54 +0000)]
r22402: Fix build warning.
Guenther
Michael Adam [Fri, 20 Apr 2007 10:27:33 +0000 (10:27 +0000)]
r22401: Add bzr revision+nick support to mkversion.sh.
The plan is to actually synchronize with SAMBA_4_0's mkversion.sh,
which is more elaborate. But there are a few differences in
behaviour I still have to check. So I am cheching this here in for
a start...
Michael
Herb Lewis [Fri, 20 Apr 2007 01:52:44 +0000 (01:52 +0000)]
r22395: allow profiling level to be set on startup
James Peach [Thu, 19 Apr 2007 23:47:55 +0000 (23:47 +0000)]
r22394: Remove test directory once we are finished.
Simo Sorce [Thu, 19 Apr 2007 23:25:37 +0000 (23:25 +0000)]
r22393: fix cut&paste error
Simo Sorce [Thu, 19 Apr 2007 23:15:33 +0000 (23:15 +0000)]
r22392: Remove leftover potentially segfaulty code.
Check we are online before actually trying to connect anywhere
Jeremy Allison [Thu, 19 Apr 2007 22:40:32 +0000 (22:40 +0000)]
r22391: Looks bigger than it is. Make "inbuf" available
to all callers of smb_setlen (via set_message()
calls). This will allow the server to reflect back
the correct encryption context.
Jeremy.
Gerald Carter [Thu, 19 Apr 2007 22:26:09 +0000 (22:26 +0000)]
r22390: Patchset sent to samba-technical to address the winbind
loop when allocating a new id for a SID:
auth_util.patch Revert create_local_token() to
the 3.0.24 codebase
idmap_type.patch Have the caller fillin the
id_map.xid.type field when
resolving a SID so that if we allocate
a new id, we know what type to use
winbindd_api.patch Remove the WINBINDD_SIDS_TO_XIDS calls
from the public winbindd interface
for the 3.0.25 release
idmap_rid.patch Cleanup the idmap_rid backend to not
call back into winbindd to resolve
the SID in order to verify it's type.
Jeremy Allison [Thu, 19 Apr 2007 20:50:49 +0000 (20:50 +0000)]
r22389: Start preparing for multiple encryption contexts in the
server. Allow server to reflect back to calling client
the encryption context that was sent.
Jeremy.
Simo Sorce [Thu, 19 Apr 2007 20:00:40 +0000 (20:00 +0000)]
r22388: clearer message, thanks David
Günther Deschner [Thu, 19 Apr 2007 14:58:22 +0000 (14:58 +0000)]
r22376: Make sure we use krb5 when we identify just an older heimdal lib (0.6.x)
Timur, please check.
Guenther
Stefan Metzmacher [Thu, 19 Apr 2007 09:08:53 +0000 (09:08 +0000)]
r22366: sync lib/talloc/ with samba4
metze
Stefan Metzmacher [Thu, 19 Apr 2007 08:50:14 +0000 (08:50 +0000)]
r22364: sync lib/tdb/ with samba4
there's no code change here...
metze
Stefan Metzmacher [Thu, 19 Apr 2007 08:49:09 +0000 (08:49 +0000)]
r22363: merge from samba4:
fix compiler warning
metze
Stefan Metzmacher [Thu, 19 Apr 2007 08:45:29 +0000 (08:45 +0000)]
r22362: fix the build on othersystems
metze
Jeremy Allison [Thu, 19 Apr 2007 01:26:38 +0000 (01:26 +0000)]
r22358: Use gss error to NTSTATUS mapping function for errors.
Jeremy.
Jeremy Allison [Thu, 19 Apr 2007 01:20:37 +0000 (01:20 +0000)]
r22355: Ensure we get good debug messages from gss_XX calls.
Jeremy.
Jeremy Allison [Thu, 19 Apr 2007 00:51:18 +0000 (00:51 +0000)]
r22354: Make client select krb5 encrpyt if krb5 already on.
Jeremy.
Jeremy Allison [Thu, 19 Apr 2007 00:45:01 +0000 (00:45 +0000)]
r22353: Fix bad #ifdefs.
Jeremy.
Jeremy Allison [Thu, 19 Apr 2007 00:44:39 +0000 (00:44 +0000)]
r22352: Wow - working gss SMB sealing !
Jeremy.
Jeremy Allison [Thu, 19 Apr 2007 00:40:08 +0000 (00:40 +0000)]
r22351: Making progress in tests...
Jeremy.
Jeremy Allison [Thu, 19 Apr 2007 00:35:18 +0000 (00:35 +0000)]
r22350: Add some helpful debug messages.
Jeremy.
Jeremy Allison [Wed, 18 Apr 2007 22:34:23 +0000 (22:34 +0000)]
r22349: Fix missing ) in #else path.
Jeremy.
Simo Sorce [Wed, 18 Apr 2007 22:25:17 +0000 (22:25 +0000)]
r22348: 3_0 as well
Jeremy Allison [Wed, 18 Apr 2007 22:02:30 +0000 (22:02 +0000)]
r22345: Only use new krb5 OID.
Jeremy.
Jeremy Allison [Wed, 18 Apr 2007 21:56:18 +0000 (21:56 +0000)]
r22344: Correctly create sub-struct for GSS encryption.
Jeremy.
Simo Sorce [Wed, 18 Apr 2007 21:10:37 +0000 (21:10 +0000)]
r22343: Commit to 3_0 as well after adapting the patch.
(tdb_delete_bystring instead of tdb_delete is used here)
Michael Adam [Wed, 18 Apr 2007 20:18:43 +0000 (20:18 +0000)]
r22341: Fix build of examples/VFS: adapt include for new place of tdb...
Gerald Carter [Wed, 18 Apr 2007 16:45:00 +0000 (16:45 +0000)]
r22340: Fix another segfault in idmap_ldap.c caused by setting the iterator
LDAPMessage * to NULL on each loop rotation.
Michael Adam [Wed, 18 Apr 2007 11:12:31 +0000 (11:12 +0000)]
r22330: For my own convenience (changes discussed some weeks ago with
Jerry, who basically didn't care - now I can commit them myself;-):
- Add a call to mkversion.sh to ensure sane version number even
from a plain checkout.
- Add a "nodocs" switch to allow for calling make-tarball.sh without
the need of having samba-docs and using-samba around.
Jeremy Allison [Wed, 18 Apr 2007 00:34:10 +0000 (00:34 +0000)]
r22327: Finish the gss-spnego part of the seal code. Now
for testing....
Jeremy.
Gerald Carter [Tue, 17 Apr 2007 21:32:59 +0000 (21:32 +0000)]
r22321: BUG 4509: Makefile fix linking the sfu.so and rfc2307.so
plugins in $libdir/nss_info to idmap/ad.so
Lars Müller [Tue, 17 Apr 2007 18:35:10 +0000 (18:35 +0000)]
r22320: Be more careful and check for the euid instead of the uid.
Thx for the hint James!
Lars Müller [Tue, 17 Apr 2007 17:17:19 +0000 (17:17 +0000)]
r22318: If we're running as non root we might not be able to dump the core file
to the corepath.
Even the chdir() will fail if the LOGFILEBASE path is set 0700.
If the currrent user doesn't have the permission to create the core file
we end with:
unable to change to <LOGFILEBASE>
refusing to dump core
The alternative would be to change the permissions of the directory.
But taht would not ensure core dumps are working out of the box.
Stefan Metzmacher [Tue, 17 Apr 2007 17:07:14 +0000 (17:07 +0000)]
r22317: add tdb_ prefix to non static function
metze
Stefan Metzmacher [Tue, 17 Apr 2007 17:03:38 +0000 (17:03 +0000)]
r22316: merge from samba4:
this function should be static
metze
Stefan Metzmacher [Tue, 17 Apr 2007 16:53:06 +0000 (16:53 +0000)]
r22315: move tdbback.c content into tdbbackup.c
and make the functions static.
also use libreplace headers in tdbbackup.c
metze
Stefan Metzmacher [Tue, 17 Apr 2007 16:36:24 +0000 (16:36 +0000)]
r22314: use libreplace headers
metze
Stefan Metzmacher [Tue, 17 Apr 2007 16:06:20 +0000 (16:06 +0000)]
r22313: as discussed with simo:
remove the only usage of backup_tdb() in samba3.
As backup_tdb() will go completely soon.
metze
Stefan Metzmacher [Tue, 17 Apr 2007 12:21:47 +0000 (12:21 +0000)]
r22304: remove unused stuff completely to fix the build, sorry
metze
Stefan Metzmacher [Tue, 17 Apr 2007 10:07:12 +0000 (10:07 +0000)]
r22302: fix the build when no shared-library support is detected
metze
Stefan Metzmacher [Tue, 17 Apr 2007 10:05:43 +0000 (10:05 +0000)]
r22301: remove unused vars
metze
Stefan Metzmacher [Tue, 17 Apr 2007 08:03:29 +0000 (08:03 +0000)]
r22298: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
Jeremy Allison [Tue, 17 Apr 2007 02:14:28 +0000 (02:14 +0000)]
r22291: Fix off-by-one in tconX parsing.
Jeremy.
Jeremy Allison [Mon, 16 Apr 2007 22:42:45 +0000 (22:42 +0000)]
r22285: Allow arbitrary bases in int and ulong parsing.
Jeremy.
Gerald Carter [Mon, 16 Apr 2007 20:29:33 +0000 (20:29 +0000)]
r22283: Remove very old bug where we assigned the online mode of
the domain to queried to our own domain.
Jeremy Allison [Mon, 16 Apr 2007 20:06:02 +0000 (20:06 +0000)]
r22282: Fix last few name -> servicename changes.
Jeremy.
Stefan Metzmacher [Mon, 16 Apr 2007 19:56:42 +0000 (19:56 +0000)]
r22280: merge from samba4:
add a lot more detailed strtoll() and strtoull() tests
metze
Stefan Metzmacher [Mon, 16 Apr 2007 19:51:30 +0000 (19:51 +0000)]
r22277: __location__ is defined in libreplace now
metze
Jeremy Allison [Mon, 16 Apr 2007 19:47:41 +0000 (19:47 +0000)]
r22276: Fix name -> servicename in messages.c
Jeremy.
Stefan Metzmacher [Mon, 16 Apr 2007 19:46:06 +0000 (19:46 +0000)]
r22274: merge from samba4:
- provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro
metze
Stefan Metzmacher [Mon, 16 Apr 2007 19:23:00 +0000 (19:23 +0000)]
r22271: merge from samba4:
provide __location__ in replace.h
and see how the build-farm likes this simpler version
metze
Stefan Metzmacher [Mon, 16 Apr 2007 19:15:57 +0000 (19:15 +0000)]
r22268: merge from samba4:
protect #define __location__ with an #ifndef
metze
Jeremy Allison [Mon, 16 Apr 2007 19:10:16 +0000 (19:10 +0000)]
r22266: Fix bug #4512 - we were returning a volume label greater than
32 unicode chars. Windows XP doesn't like that :-).
Jeremy
Stefan Metzmacher [Mon, 16 Apr 2007 12:43:54 +0000 (12:43 +0000)]
r22264: merge from samba4:
use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.
metze
Stefan Metzmacher [Mon, 16 Apr 2007 12:00:08 +0000 (12:00 +0000)]
r22262: fix the build on systems without GSS_C_NT_HOSTBASED_SERVICE
metze
Stefan Metzmacher [Mon, 16 Apr 2007 09:44:00 +0000 (09:44 +0000)]
r22254: merge from samba4:
- make the strtoll tests more verbose
- add initial strtoull tests
metze
Stefan Metzmacher [Mon, 16 Apr 2007 09:20:52 +0000 (09:20 +0000)]
r22252: merge from samba4:
add prototype of setenv
metze
Stefan Metzmacher [Mon, 16 Apr 2007 08:20:13 +0000 (08:20 +0000)]
r22249: move tdb code to lib/tdb/ as in samba4
metze
Stefan Metzmacher [Mon, 16 Apr 2007 07:41:01 +0000 (07:41 +0000)]
r22247: merge from samba4:
only test strtoll once
metze
Stefan Metzmacher [Mon, 16 Apr 2007 06:30:08 +0000 (06:30 +0000)]
r22244: merge from samba4:
remove useless printf's
metze
Stefan Metzmacher [Mon, 16 Apr 2007 06:08:43 +0000 (06:08 +0000)]
r22240: merge from samba4:
use strlcpy instead of strcpy to make the IBM checker happy
metze
Simo Sorce [Sun, 15 Apr 2007 23:58:39 +0000 (23:58 +0000)]
r22230: Let's just cast here, the 2 calls have different allocation mechanisms.
We just let domname and name hang on the mem ctx until the call returns,
and the context will be destroyed.
Simo.
Stefan Metzmacher [Sun, 15 Apr 2007 21:14:37 +0000 (21:14 +0000)]
r22229: discard_const_p is in lib/replace now
metze
Stefan Metzmacher [Sun, 15 Apr 2007 21:13:48 +0000 (21:13 +0000)]
r22227: merge from samba4:
move discard_const macros to librelace
metze
Stefan Metzmacher [Sun, 15 Apr 2007 20:57:48 +0000 (20:57 +0000)]
r22224: merge from samba4:
make comparing of struct tm more verbose and portable
metze
Stefan Metzmacher [Sun, 15 Apr 2007 20:12:09 +0000 (20:12 +0000)]
r22221: merge from samba4:
- libreplace unsetenv() and strptime() replacements
metze
Volker Lendecke [Sat, 14 Apr 2007 06:44:30 +0000 (06:44 +0000)]
r22214: Fix incompatible pointer type warnings. Simo, please check and merge to 3_0_25
if appropriate.
Volker
Volker Lendecke [Sat, 14 Apr 2007 06:40:47 +0000 (06:40 +0000)]
r22213: We can't use become_root() here, as it does DEBUG()
itself. become_root_uid_only did not :-)
Revert 21868, we need to find a better way.
Volker
Jeremy Allison [Sat, 14 Apr 2007 00:53:38 +0000 (00:53 +0000)]
r22212: Cope with signature errors on sessionsetupX logins
where the server just reflects our signature back
to us. Allow the upper layer to see the real error.
Jeremy.
Jeremy Allison [Fri, 13 Apr 2007 22:56:27 +0000 (22:56 +0000)]
r22211: Don't return a value from void functions !
Jeremy.
Jeremy Allison [Fri, 13 Apr 2007 22:42:21 +0000 (22:42 +0000)]
r22210: Fix typo in testing for non-centry entries.
Jeremy.
Jeremy Allison [Fri, 13 Apr 2007 22:29:50 +0000 (22:29 +0000)]
r22209: Fix the storage of time_t -> make it 64 bits (use the
same load/store function as NTTIME). Add a version number
string to the winbindd cache so we can tell if it needs
upgrading. THIS WILL DELETE ANY EXISTING winbindd_cache.tdb
on first startup regardless of offline auth status. Once
this is done we're in good shape though.
Jeremy.
Jeremy Allison [Fri, 13 Apr 2007 01:46:47 +0000 (01:46 +0000)]
r22207: Fill in the validation functions. Now to test...
Jeremy.
Jeremy Allison [Fri, 13 Apr 2007 01:00:44 +0000 (01:00 +0000)]
r22206: Added boilerplate to be filled in for other validation functions.
Jeremy.
Jeremy Allison [Fri, 13 Apr 2007 00:39:06 +0000 (00:39 +0000)]
r22205: Add some flesh to the bones of the cache validation code.
Jeremy
Simo Sorce [Thu, 12 Apr 2007 21:10:06 +0000 (21:10 +0000)]
r22204: Workaround to quickly close bug #4508
This hack makes thing work, but we will need to try again to
make the getpw* calls fully async, that's the real fix.
Jeremy Allison [Thu, 12 Apr 2007 19:16:29 +0000 (19:16 +0000)]
r22202: Volker is clever :-). Use TDB_NOMMAP to prevent any wild pointer
problems when validating the winbindd cache. Wish I'd have
thought of that.
Jeremy.
Jeremy Allison [Thu, 12 Apr 2007 01:09:19 +0000 (01:09 +0000)]
r22181: Fix for EISCON in open_any_socket_out from William Jojo
for bug #3632.
Jeremy.
Gerald Carter [Wed, 11 Apr 2007 12:54:00 +0000 (12:54 +0000)]
r22175: sync packaging changes from SAMBA_3_0_25
Gerald Carter [Wed, 11 Apr 2007 12:32:58 +0000 (12:32 +0000)]
r22173: BUG 4491, 4501: Additional fixes for protecting against
crashes in allocate_id().
BUG 4501: Fix segv in idmap_ad caused by resetting the
entry iterator when parsing search results.
Alexander Bokovoy [Wed, 11 Apr 2007 12:32:07 +0000 (12:32 +0000)]
r22172: FSCTL_RECALL_FILE is 0x90117 according to my traces. Record it here.
Jeremy Allison [Wed, 11 Apr 2007 05:27:00 +0000 (05:27 +0000)]
r22164: Fix missing lock count release in transaction cancel.
Found by Taj Khattra <taj.khattra@gmail.com>.
Jeremy.
Jeremy Allison [Wed, 11 Apr 2007 05:05:33 +0000 (05:05 +0000)]
r22163: Pure reformatting. I hate 4 space tabstops :-).
Jeremy.
Gerald Carter [Tue, 10 Apr 2007 22:59:42 +0000 (22:59 +0000)]
r22159: BUG 4501 (second half of fix): Just disable the
uid/gid allocation if no idmap alloca backend has been
defined and we are not using a 3.0.24 idmap backend
compatible configuration.
Gerald Carter [Tue, 10 Apr 2007 21:14:44 +0000 (21:14 +0000)]
r22158: BUG 4501 (partial): Fix a crash caused by not using the
nss_info_{rfc2307,sfu} plugin with idmap_ad.
Jeremy Allison [Tue, 10 Apr 2007 20:35:30 +0000 (20:35 +0000)]
r22157: Fix bug #3634 - stop nmbd segfaulting with bad interface line.
Jeremy.
Jeremy Allison [Tue, 10 Apr 2007 18:21:37 +0000 (18:21 +0000)]
r22155: Fixed warning #4498 from jason@ncac.gwu.edu.
Jeremy.
Jeremy Allison [Tue, 10 Apr 2007 18:12:25 +0000 (18:12 +0000)]
r22154: Make struct smbdb_ctx an opaque pointer so users of the API
don't need to have tdb.h.
Jeremy.
Stefan Metzmacher [Tue, 10 Apr 2007 16:04:22 +0000 (16:04 +0000)]
r22153: fix LDAP SASL "GSSAPI" bind against w2k3, this isn't critical
because we try "GSS-SPNEGO" first and all windows version support
that.
metze
Stefan Metzmacher [Tue, 10 Apr 2007 15:59:39 +0000 (15:59 +0000)]
r22151: remove netgr functions from libreplace they're not used
in samba4 currently and samba3 has explicit configure checks for them.
should fix bug #4496
metze
Gerald Carter [Tue, 10 Apr 2007 15:41:23 +0000 (15:41 +0000)]
r22149: BUG 4500: patch from Jorge Santos <jorge_a_santos@hotmail.com>
to fix compile bug ni quotas.c (typo calling unbecome_root()).
Jim McDonough [Tue, 10 Apr 2007 15:41:22 +0000 (15:41 +0000)]
r22148: Fix gpfs module on posix-acl test. Adds gpfsacl_sys_set_fd (calls
_file). Thanks to Gomati Mohanan.
Volker Lendecke [Tue, 10 Apr 2007 07:36:58 +0000 (07:36 +0000)]
r22147: Next try
Volker Lendecke [Tue, 10 Apr 2007 07:33:14 +0000 (07:33 +0000)]
r22146: Attempt to fix the build
Jeremy Allison [Mon, 9 Apr 2007 21:01:46 +0000 (21:01 +0000)]
r22145: Fix bug #4494 - reported by Kevin Jamieson <bugzilla@kevinjamieson.com>.
If returning a mapped UNIX error from sendfile, don't call chain_reply.
Jeremy.
Volker Lendecke [Mon, 9 Apr 2007 10:38:55 +0000 (10:38 +0000)]
r22135: Check in most of Michael Adam's net conf utility. A good share of this patch
is moving functions around to fix some linker dependencies for the registry.
Michael, I've renamed your auth_utils2.c to token_utils.c.
Thanks!
Volker
Jeremy Allison [Sun, 8 Apr 2007 19:41:47 +0000 (19:41 +0000)]
r22132: I hate inefficiency. Don't call conv_str_size()
on every pread/sendfile call, initialize these
variables in an allocated struct at connection
time and just refer to them directly.
Jeremy.
Derrell Lipman [Sun, 8 Apr 2007 16:41:24 +0000 (16:41 +0000)]
r22130: - Ensure that the libsmbclient example programs link with the libsmbclient
library that's part of the current tree, not with whatever happens to have
been previously installed.