samba.git
16 years agoFirst part of fix for bug #4929 - worked out by jmcd.
Jeremy Allison [Thu, 24 Jan 2008 21:27:26 +0000 (13:27 -0800)]
First part of fix for bug #4929 - worked out by jmcd.
Cope with protected ACL set correctly.
Jeremy.

16 years agoMissed one flags change.
Jeremy Allison [Thu, 24 Jan 2008 00:27:30 +0000 (16:27 -0800)]
Missed one flags change.
Jeremy.

16 years agoAdded :
Jeremy Allison [Wed, 23 Jan 2008 23:24:57 +0000 (15:24 -0800)]
Added :

Author: Jeremy Allison <jra@samba.org>
Date:   Wed Jan 23 15:23:16 2008 -0800

    Don't leak memory in error path.
    Jeremy.

Author: Jeremy Allison <jra@samba.org>
Date:   Wed Jan 23 15:00:40 2008 -0800

    Use strchr_m in seaching for '.' in the hostname to make sure we're mb safe.
    Jeremy.

Author: Andreas Schneider <anschneider@suse.de>
Date:   Thu Jan 17 11:35:40 2008 +0100

    Fix Windows 2008 (Longhorn) join.

    During 'net ads join' the cli->desthost is a hostname (e.g.
    rupert.galaxy.site). Check if we have a hostname and use only the
    first part, the machine name, of the string.

Author: Andreas Schneider <anschneider@suse.de>
Date:   Thu Jan 17 10:11:11 2008 +0100

    Windows 2008 (Longhorn) auth2 flag fixes.

    Interop fixes for AD specific flags. Original patch from Todd Stetcher.

16 years agoVersion of Matt Geddes <musicalcarrion@gmail.com>
Jeremy Allison [Wed, 23 Jan 2008 21:55:13 +0000 (13:55 -0800)]
Version of Matt Geddes <musicalcarrion@gmail.com>
patch for adding acct_flags to rpccli_samr_create_dom_user().
Jerry please test.
Jeremy.

16 years agoFix get_trust_creds() to return always an upper-cased krb5 principal (this
Günther Deschner [Wed, 23 Jan 2008 11:03:51 +0000 (12:03 +0100)]
Fix get_trust_creds() to return always an upper-cased krb5 principal (this
fixes winbind krb5 session at least with heimdal).

Guenther

16 years agoCopy the 3.2 version of string_replace to 3.0
Volker Lendecke [Tue, 22 Jan 2008 10:54:31 +0000 (11:54 +0100)]
Copy the 3.2 version of string_replace to 3.0

There are several callers in 3.0 that don't give a pstring to string_replace,
thus it will end up in segfaults like the one reported by Sergio Pires
<suporte@grupovdl.com.br> on samba@samba.org. The 3.2 version of string_replace
does not have the pstring assumption anymore.

Jeremy, Jerry, please check!

Thanks,

Volker

16 years agoFix build warning.
Günther Deschner [Mon, 21 Jan 2008 15:33:40 +0000 (16:33 +0100)]
Fix build warning.

Guenther

16 years agoActually test vl's new code and make it work to fix the build farm :-).
Jeremy Allison [Sat, 19 Jan 2008 02:39:29 +0000 (18:39 -0800)]
Actually test vl's new code and make it work to fix the build farm :-).
Jeremy.

16 years agoBack port vl's fix for nlink counts.
Jeremy Allison [Sat, 19 Jan 2008 01:57:31 +0000 (17:57 -0800)]
Back port vl's fix for nlink counts.
Jeremy.

16 years agoFix two uninitialized variables in vfs_hpuxacl.c
Volker Lendecke [Thu, 17 Jan 2008 16:17:52 +0000 (17:17 +0100)]
Fix two uninitialized variables in vfs_hpuxacl.c

Thanks to David Leonard <David.Leonard@quest.com>, this fixes bug 5208.

Volker

16 years agolibsmb: Do not upper-case target name on NTLMv2 hash generation
Kai Blin [Tue, 15 Jan 2008 18:28:23 +0000 (19:28 +0100)]
libsmb: Do not upper-case target name on NTLMv2 hash generation

This makes our NTLMv2 hash generation compatible to the Davenport example
and fixes a bug when ntlm_auth is called with a non-upper-case --domain
parameter and client ntlmv2 auth = yes

Jerry, please consider for 3.0.28a

16 years agoFix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>.
Michael Adam [Mon, 14 Jan 2008 14:45:46 +0000 (15:45 +0100)]
Fix bug #5171 (perl syntax error) found by Jason Filley <jason@snakelegs.org>.

Michael

16 years agoEnable building the notify_fam module.
Michael Adam [Wed, 9 Jan 2008 23:47:10 +0000 (00:47 +0100)]
Enable building the notify_fam module.

Found by Timur I. Bakeyev <timur@com.bat.ru>.

Michael

16 years agoCorrect comment. Default debug level of smbclient is 1, not 0.
Karolin Seeger [Tue, 8 Jan 2008 18:21:26 +0000 (19:21 +0100)]
Correct comment. Default debug level of smbclient is 1, not 0.

16 years agoensure uni_name.buffer is initialised
Volker Lendecke [Wed, 9 Jan 2008 06:59:12 +0000 (07:59 +0100)]
ensure uni_name.buffer is initialised

merge from http://samba.org/~tridge/3_0-ctdb

16 years agoFix coverity resource leak on error.
Jeremy Allison [Wed, 9 Jan 2008 02:47:29 +0000 (18:47 -0800)]
Fix coverity resource leak on error.
Jeremy.

16 years agoFix resource leak on error found by coverity.
Jeremy Allison [Wed, 9 Jan 2008 02:43:48 +0000 (18:43 -0800)]
Fix resource leak on error found by coverity.
Jeremy.

16 years agoMerge branch 'v3-0-test' of ssh://jra@git.samba.org/data/git/samba into v3-0-test
Jeremy Allison [Wed, 9 Jan 2008 01:59:46 +0000 (17:59 -0800)]
Merge branch 'v3-0-test' of ssh://jra@git.samba.org/data/git/samba into v3-0-test

16 years agoAdd missing quote. Fix bug 5172. Thanks to Jason Filley <jason@snakelegs.org> for...
Karolin Seeger [Tue, 8 Jan 2008 11:23:25 +0000 (12:23 +0100)]
Add missing quote. Fix bug 5172. Thanks to Jason Filley <jason@snakelegs.org> for reporting!

Karolin

16 years agoUsing a bool with a logical operation. IBM checker caught.
Jeremy Allison [Sat, 5 Jan 2008 07:18:42 +0000 (23:18 -0800)]
Using a bool with a logical operation. IBM checker caught.
Jeremy.

16 years agoMerge branch 'v3-0-test' of ssh://jra@git.samba.org/data/git/samba into v3-0-test
Jeremy Allison [Sat, 5 Jan 2008 01:15:50 +0000 (17:15 -0800)]
Merge branch 'v3-0-test' of ssh://jra@git.samba.org/data/git/samba into v3-0-test

16 years agoAdd missing patch to allow smbcacls to do krb5 auth, bug #5175
Jeremy Allison [Sat, 5 Jan 2008 01:15:06 +0000 (17:15 -0800)]
Add missing patch to allow smbcacls to do krb5 auth, bug #5175
from Tom Maher <tmaher@watson.org>.
Jeremy.

16 years agoRevert "no-atime-on-mtime"
Stefan Metzmacher [Thu, 3 Jan 2008 19:55:42 +0000 (20:55 +0100)]
Revert "no-atime-on-mtime"

This reverts commit 54adb86890eb22b6bcf0bc1163662c3f9c075777.

Sorry I didn't want to push that...

metze

16 years agoHappy new year !
Günther Deschner [Wed, 2 Jan 2008 11:55:53 +0000 (12:55 +0100)]
Happy new year !

Guenther
(cherry picked from commit 9a58cd57953d6aead14789daa47a3badef19496d)

16 years agoMerge remote branch 'origin/v3-0-test' of /home/People/metze/devel/samba/samba-bare...
Stefan Metzmacher [Thu, 3 Jan 2008 19:49:06 +0000 (20:49 +0100)]
Merge remote branch 'origin/v3-0-test' of /home/People/metze/devel/samba/samba-bare into v3-0-test

16 years agoFix for bug #5163 from Laurent Pinchart <pinchart@skynet.be>
Jeremy Allison [Thu, 3 Jan 2008 02:20:25 +0000 (18:20 -0800)]
Fix for bug #5163 from Laurent Pinchart <pinchart@skynet.be>
Failure to change password in ldap is mapped to NT_STATUS_UNSUCCESSFUL unconditionally.
Jeremy.

16 years agoAttempt to fix bug #3617. Mix of patches from Volker and
Jeremy Allison [Wed, 2 Jan 2008 19:57:37 +0000 (11:57 -0800)]
Attempt to fix bug #3617. Mix of patches from Volker and
myself. Use standard dlinklist macros.
Jeremy.

16 years agoMake send_getdc_request match 3.2.x codebase.
Jeremy Allison [Sat, 29 Dec 2007 22:48:20 +0000 (14:48 -0800)]
Make send_getdc_request match 3.2.x codebase.
Jeremy.

16 years agoPort 2135dfe91bf1ae114a18c15286b535662200677d from 3.2.
Jeremy Allison [Fri, 28 Dec 2007 23:38:42 +0000 (15:38 -0800)]
Port 2135dfe91bf1ae114a18c15286b535662200677d from 3.2.
From Volker :

    Fix setting the initial permission bits

    This fixes a make test failure on Solaris. When creating a new file,
    file_set_dosmode() called from open_file_ntcreate calculates a new permission
    mask, very likely different from what had been calculated in
    open_file_ntcreate. Further down we overwrote the newly calculated value with
    SMB_FCHMOD_ACL, ignoring what file_set_dosmode had calculated.

    Why did Linux not see this? fchmod_acl on a newly created file without acls
    would not retrieve an acl at all, whereas under Solaris acl(2) returns
    something even for files with just posix permissions returns something.

    Jeremy, given that we have very similar code in 3.0.28 this might also explain
    some of the bug reports that people have concerning ACLs on new files.

    Volker

    P.S: This one took a while to find...

16 years agofix dump printout when byte >= 0x80
Herb Lewis [Thu, 20 Dec 2007 23:55:44 +0000 (15:55 -0800)]
fix dump printout when byte >= 0x80

16 years agoOnly retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD is set.
Michael Adam [Wed, 19 Dec 2007 17:18:30 +0000 (18:18 +0100)]
Only retrieve password policies in pam_auth when WBFLAG_PAM_GET_PWD is set.

This essentially re-establishes r14496 (2155bb0535656f294bd054d6a0a7d16a9a71c31b)
which was undone in r17723 (43bd8c00abb38eb23a1497a255d194fb1bbffffb) for
reasons that are unclear to me. Maybe I am being too naive.

Now we do again only retrieve the password policy when called from
the pam_winbind module. This fixes logons delegated to AD trusted
domain controllers: We need to connect to the sam to retrieve the
password policy. But auhtenticated session setup is not possible
when contacting the trusted domain dc and afterwards, SamrConnect
also fails with whatever credentials and method used.

Michael

16 years agoFix a debug message: add missing space.
Michael Adam [Tue, 18 Dec 2007 06:58:38 +0000 (07:58 +0100)]
Fix a debug message: add missing space.

Michael

16 years agoFix logic error in cm_connect_sam().
Michael Adam [Tue, 18 Dec 2007 00:55:32 +0000 (01:55 +0100)]
Fix logic error in cm_connect_sam().

Don't fall back to schannel when trust creds could be obtained.
This is still not complete, but I am getting closer.

Michael

16 years agoFix another segfault.
Michael Adam [Tue, 18 Dec 2007 00:32:02 +0000 (01:32 +0100)]
Fix another segfault.

Michael

16 years agoFix a segv in winbindd caused by trying to free an fstring. Make a copy of the machin...
Gerald (Jerry) Carter [Mon, 17 Dec 2007 23:33:48 +0000 (17:33 -0600)]
Fix a segv in winbindd caused by trying to free an fstring. Make a copy of the machine_password and machine_account strings in all conditional paths so that SAFE_FREE() will always be valid.

16 years agoMake cm_connect_sam() try harder to connect autheticated.
Michael Adam [Mon, 17 Dec 2007 22:26:48 +0000 (23:26 +0100)]
Make cm_connect_sam() try harder to connect autheticated.

Even if the session setup was anonymous, try and collect
trust creds with get_trust_creds() and use these before
falling back to schannel.

This is the first attempt to fix interdomain trusts.
(get password policy and stuff)

Michael

16 years agoRefactor out assembling of trust creds (pw, account name, principal).
Michael Adam [Mon, 17 Dec 2007 22:24:36 +0000 (23:24 +0100)]
Refactor out assembling of trust creds (pw, account name, principal).

Michael

16 years agoStreamline and fix logic of cm_prepare_connection().
Michael Adam [Mon, 17 Dec 2007 22:22:28 +0000 (23:22 +0100)]
Streamline and fix logic of cm_prepare_connection().

Do not attempt to do a session setup when in a trusted domain
situation (this gives STATUS_NOLOGON_TRUSTED_DOMAIN_ACCOUNT).

Use get_trust_pw_clear to get machine trust account.
Only call this when the results is really used.
Use the proper domain and account name for session setup.

Michael

16 years agoRefactor out get_schannel_session_key logic.
Michael Adam [Mon, 17 Dec 2007 22:11:31 +0000 (23:11 +0100)]
Refactor out get_schannel_session_key logic.

Refactor the actual retrieval of the session key through the
established netlogon pipe out of get_schannel_session_key()
and get_schannel_session_key_auth_ntlmssp() into a new
function get_schannel_session_key_common().
(To avoid code duplication.)

Michael

16 years agoPass NULL instead of unneeded &sid: secrets_fetch_trusted_domain_password() checks.
Michael Adam [Mon, 17 Dec 2007 21:37:29 +0000 (22:37 +0100)]
Pass NULL instead of unneeded &sid: secrets_fetch_trusted_domain_password() checks.

Michael

16 years agoRename get_trust_pw() to get_trust_pw_hash().
Michael Adam [Mon, 17 Dec 2007 21:29:54 +0000 (22:29 +0100)]
Rename get_trust_pw() to get_trust_pw_hash().

Michael

16 years agoExport logic of get_trust_pw() to new function get_trust_pw_clear().
Michael Adam [Mon, 17 Dec 2007 21:26:52 +0000 (22:26 +0100)]
Export logic of get_trust_pw() to new function get_trust_pw_clear().

get_trust_pw() just now computes the md4 hash of the result of
get_trust_pw_clear() if that was successful. As a last resort,
in the non-trusted-domain-situation, get_trust_pw() now tries to
directly obtain the hashed version of the password out of secrets.tdb.

Michael

16 years agoRefactor the lagacy part of secrets_fetch_trust_account_password() out
Michael Adam [Mon, 17 Dec 2007 16:49:13 +0000 (17:49 +0100)]
Refactor the lagacy part of secrets_fetch_trust_account_password() out

into a new function secrets_fetch_trust_account_password_legacy() that
does only try to obtain the hashed version of the machine password directly
from secrets.tdb.

Michael

16 years agoLet get_trust_pw() determine the machine_account_name to use.
Michael Adam [Mon, 17 Dec 2007 16:42:05 +0000 (17:42 +0100)]
Let get_trust_pw() determine the machine_account_name to use.

Up to now each caller used its own logic.

This eliminates code paths where there was a special treatment
of the following situation: the domain given is not our workgroup
(i.e. our own domain) and we are not a DC (i.e. it is not a typical
trusted domain situation). In situation the given domain name was
previously used as the machine account name, resulting in an account
name of DOMAIN\\DOMAIN$, which does not seem very reasonable to me.
get_trust_pw would not have obtained a password in this situation
anyways.

I hope I have not missed an important point here!

Michael

16 years agoRemove silly amounts of trailing white spaces.
Michael Adam [Mon, 17 Dec 2007 16:38:06 +0000 (17:38 +0100)]
Remove silly amounts of trailing white spaces.

Michael

16 years agoStreamline logic in cm_connect_netlogon()
Michael Adam [Tue, 11 Dec 2007 11:47:28 +0000 (12:47 +0100)]
Streamline logic in cm_connect_netlogon()

by retrieving trust password only, when it will be used.

Michael

16 years agor25086: Fix interdomain trusts (this povides the fix expected in r22709):
Michael Adam [Tue, 11 Sep 2007 16:15:36 +0000 (16:15 +0000)]
r25086: Fix interdomain trusts (this povides the fix expected in r22709):

Fix winbindd on a Samba DC talking to a trusted domain DC by
making it use the trusted domain password...

Michael

I hope this does not brake any other setup.

16 years agor22709: we can only use tschannel when commectcing to our primary (might need some...
Gerald Carter [Sun, 6 May 2007 19:48:13 +0000 (19:48 +0000)]
r22709: we can only use tschannel when commectcing to our primary (might need some fixing here for a Samba DC)

16 years agoIn cm_prepare_connection(), only get auth user creds if we need to.
Michael Adam [Tue, 11 Dec 2007 07:52:20 +0000 (08:52 +0100)]
In cm_prepare_connection(), only get auth user creds if we need to.

Michael

16 years agoRemove two unneeded functions.
Michael Adam [Mon, 17 Dec 2007 14:19:38 +0000 (15:19 +0100)]
Remove two unneeded functions.

secrets_store_trust_account_password() and trust_password_delete()
are the write access functions to the SECRETS/$MACHINE.ACC/domain keys
in secrets.tdb, the md4 hashed machine passwords. These are not used
any more: Current code always writes the clear text password.

Michael

16 years agopacket_struct is used in several places as raw memory
Volker Lendecke [Wed, 19 Dec 2007 16:05:26 +0000 (17:05 +0100)]
packet_struct is used in several places as raw memory

-> Fix more uninitialized variable warnings

16 years agoSome paranoia checks
Volker Lendecke [Wed, 19 Dec 2007 15:48:18 +0000 (16:48 +0100)]
Some paranoia checks

16 years agoZero the tdb key, there might be padding
Volker Lendecke [Wed, 19 Dec 2007 15:48:04 +0000 (16:48 +0100)]
Zero the tdb key, there might be padding

This leads to uninitialized variable warnings if nmbd is run under valgrind.

16 years agoEnsure we can't pass -1 to smb_fn_name(). Fixes bug #4612.
Jeremy Allison [Wed, 19 Dec 2007 02:08:18 +0000 (18:08 -0800)]
Ensure we can't pass -1 to smb_fn_name(). Fixes bug #4612.
This is not used in 3.2 code.
Jeremy.

16 years agoFix socket_wrapper build for 3.0.x.
Jeremy Allison [Mon, 17 Dec 2007 23:09:59 +0000 (15:09 -0800)]
Fix socket_wrapper build for 3.0.x.
Jeremy.

16 years agoWhile 'data' is usually 0 terminated, nothing in the spec requires that.
Simo Sorce [Mon, 17 Dec 2007 20:21:38 +0000 (15:21 -0500)]
While 'data' is usually 0 terminated, nothing in the spec requires that.
The correct way is to copy only 'length' bytes.

Simo.

16 years agoFix bug #5121 (unix passwd sync bnot working on a streams based
Jeremy Allison [Mon, 17 Dec 2007 18:44:01 +0000 (10:44 -0800)]
Fix bug #5121 (unix passwd sync bnot working on a streams based
system).
Jeremy.

16 years agoResolve conflict of merging in J.Layton patch
Simo Sorce [Mon, 17 Dec 2007 14:40:10 +0000 (09:40 -0500)]
Resolve conflict of merging in J.Layton patch

Merge branch 'v3-0-test' of ssh://git.samba.org/data/git/samba into v3-0-simo

Conflicts:

source/client/mount.cifs.c

16 years agomount.cifs: fix several problems when mounting subdirectories of shares
Jeff Layton [Tue, 13 Nov 2007 14:04:33 +0000 (09:04 -0500)]
mount.cifs: fix several problems when mounting subdirectories of shares

This is essentially the same patch as I posted yesterday. The only
difference is that I added the replace_char helper function and now
have the code call it instead of doing the conversion internally.

Thoughts?

-------[snip]-------

CIFS has a few problems when mounting subdirectories of shares:

a) mount.cifs assumes that the prefixpath will always begin with a
forward slash. If it begins with a backslash, then it fails to parse out
the prefixpath and leaves it appended to the sharename. This causes the
mount to fail.

b) if the prefixpath uses '/' as a delimiter, it doesn't convert that to
a "native" prefixpath ('\\' delimiter). The kernel will blindly stuff
this prefix into the beginning of a path when it builds one from a dentry,
and this confuses windows servers (samba doesn't seem to care).

c) When you mount a subdir of a share, mount.cifs munges the device string
so that you can't tell what the prefixpath is. So if I mount:

//server/share/p1/p2/p3

..then /proc/mounts and mtab will show only:

//server/share

d) If the client has to retry the mount with an uppercase sharename, it
doesn't also uppercase the prefixpath (not sure if that's a real issue,
but it seems inconsistent).

The following patch fixes all of these problems. It separates the
"share_name" from the "device_name", and passes the share_name as the
unc= string, and the device_name as the first arg to mount(), and to
setmntent().

It also changes mount.cifs to use '\\' exclusively as a delimiter for
the unc= and prefixpath= options, and to use '/' exclusively as a
delimiter in the device string (seemingly necessary since the kernel
doesn't deal well with backslashes in the device string).

Signed-off-by: Jeff Layton <jlayton@redhat.com>
16 years agoFix flags in all callers of lookup_name() in net_sam.c.
Michael Adam [Mon, 17 Dec 2007 11:15:21 +0000 (12:15 +0100)]
Fix flags in all callers of lookup_name() in net_sam.c.

Michael

16 years agoFix flags in call of lookup_name() in srv_samr_nt.c:can_create().
Michael Adam [Mon, 17 Dec 2007 11:14:28 +0000 (12:14 +0100)]
Fix flags in call of lookup_name() in srv_samr_nt.c:can_create().

Use LOOKUP_NAME_LOCAL instead of LOOKUP_NAME_ISOLATED.

Michael

16 years agoFix flags in call of lookup_name() in pdb_default_create_alias().
Michael Adam [Mon, 17 Dec 2007 11:14:01 +0000 (12:14 +0100)]
Fix flags in call of lookup_name() in pdb_default_create_alias().

Use new flag LOOKUP_NAME_LOCAL.

Michael

16 years agoAdd combined flag LOOKUP_NAME_LOCAL.
Michael Adam [Mon, 17 Dec 2007 11:11:41 +0000 (12:11 +0100)]
Add combined flag LOOKUP_NAME_LOCAL.

Presence of LOOKUP_NAME_ISOLATED as the only flag is not the sign
for doing local lookups only but the sign for allowing lookups
of unqualified names. The correct sign is absence of the flag
LOOKUP_NAME_REMOTE.

Michael

16 years agoFix flags in caller of lookup_name() in create_builtin_administrators().
Michael Adam [Mon, 17 Dec 2007 11:10:46 +0000 (12:10 +0100)]
Fix flags in caller of lookup_name() in create_builtin_administrators().

Michael

16 years agoDoh, fix typo in error exit.
Jeremy Allison [Sun, 16 Dec 2007 07:32:22 +0000 (23:32 -0800)]
Doh, fix typo in error exit.
Jeremy.

16 years agoAdded patch originally by Andreas Schneider <anschneider@suse.de>
Jeremy Allison [Sun, 16 Dec 2007 07:22:17 +0000 (23:22 -0800)]
Added patch originally by Andreas Schneider <anschneider@suse.de>
to cause us to behave like Vista when looking for remote
machine principal. Modified by me.
Jeremy.

16 years agoCope with valgrind > 3.2.x.
Jeremy Allison [Sun, 16 Dec 2007 07:05:37 +0000 (23:05 -0800)]
Cope with valgrind > 3.2.x.
Jeremy.

16 years agoMore work on bug #5082, use LC_ALL as this takes
Jeremy Allison [Sun, 16 Dec 2007 06:28:46 +0000 (22:28 -0800)]
More work on bug #5082, use LC_ALL as this takes
precedence.
Jeremy.

16 years agoFix for bug #5082 from Mathias Gug <mathiaz@ubuntu.com>, Steve Langasek <vorlon@debia...
Jeremy Allison [Sat, 15 Dec 2007 01:03:04 +0000 (17:03 -0800)]
Fix for bug #5082 from Mathias Gug <mathiaz@ubuntu.com>, Steve Langasek <vorlon@debian.org>.
Recent versions of Linux-PAM support localization of user prompts,
so Samba must use the C locale when invoking PAM (directly or via
/usr/bin/passwd) to ensure that password chat values match the prompts in a
locale-invariant fashion.
Jeremy.

16 years agoFix bug #5141, patch from Hans Mayer <hans.mayer@ages.at>.
Jeremy Allison [Sat, 15 Dec 2007 00:32:44 +0000 (16:32 -0800)]
Fix bug #5141, patch from Hans Mayer <hans.mayer@ages.at>.
Already fixed in 3.2 code.
Jeremy.

16 years agoMerge remote branch 'origin/v3-0-test' of /home/People/metze/devel/samba/samba-bare...
Stefan Metzmacher [Fri, 14 Dec 2007 10:42:00 +0000 (11:42 +0100)]
Merge remote branch 'origin/v3-0-test' of /home/People/metze/devel/samba/samba-bare into v3-0-test

16 years agoWe don't need to call endpwent if we never call getpwent.
Jeremy Allison [Fri, 14 Dec 2007 01:25:28 +0000 (17:25 -0800)]
We don't need to call endpwent if we never call getpwent.
Jeremy.

16 years agoAdd a varient of Steve Langasek <vorlon@debian.org> patch
Jeremy Allison [Fri, 14 Dec 2007 01:18:44 +0000 (17:18 -0800)]
Add a varient of Steve Langasek <vorlon@debian.org> patch
for bug #4780. Cause user mounts to inherit uid= and gid= from the
calling user when called as non-root, except when overridden on the
commandline.
Jeremy.

16 years agoMissed one strcpy call.
Jeremy Allison [Thu, 13 Dec 2007 03:12:24 +0000 (19:12 -0800)]
Missed one strcpy call.
Jeremy.

16 years agoAdd a portable version of strlcpy and strlcat and convert
Jeremy Allison [Thu, 13 Dec 2007 03:11:26 +0000 (19:11 -0800)]
Add a portable version of strlcpy and strlcat and convert
all strncpy/strcat calls to them.
Convert all sprintf calls to snprintf. Safety first !
Jeremy.

16 years agoFix bug #4784. Patch from Steve Langasek <vorlon@debian.org>.
Jeremy Allison [Thu, 13 Dec 2007 02:45:20 +0000 (18:45 -0800)]
Fix bug #4784. Patch from Steve Langasek <vorlon@debian.org>.
Jeremy.

16 years agoMerge debian patch for distclean.
Jeremy Allison [Thu, 13 Dec 2007 02:23:17 +0000 (18:23 -0800)]
Merge debian patch for distclean.
Jeremy.

16 years agoMerge debian fix for smbstatus locking error message.
Jeremy Allison [Thu, 13 Dec 2007 02:17:34 +0000 (18:17 -0800)]
Merge debian fix for smbstatus locking error message.
Already fixed differently for 3.2.
Jeremy.

16 years agoOnly add the non-root escape on !developer.
Jeremy Allison [Thu, 13 Dec 2007 02:07:04 +0000 (18:07 -0800)]
Only add the non-root escape on !developer.
Jeremy.

16 years agoFix bug #3727 with patch from Steve Langasek <vorlon@debian.org>
Jeremy Allison [Thu, 13 Dec 2007 01:26:45 +0000 (17:26 -0800)]
Fix bug #3727 with patch from Steve Langasek <vorlon@debian.org>
Jeremy.

16 years agoMake sure this is fixed for both MIT and Heimdal.
Jeremy Allison [Wed, 12 Dec 2007 21:00:41 +0000 (13:00 -0800)]
Make sure this is fixed for both MIT and Heimdal.
Jeremy.

16 years agoMerge branch 'v3-0-test' of ssh://jra@git.samba.org/data/git/samba into v3-0-test
Jeremy Allison [Wed, 12 Dec 2007 17:49:26 +0000 (09:49 -0800)]
Merge branch 'v3-0-test' of ssh://jra@git.samba.org/data/git/samba into v3-0-test

16 years agoVista SP1-rc1 appears to break against Samba-3.0.27a
Guenther Deschner [Wed, 12 Dec 2007 12:38:28 +0000 (13:38 +0100)]
Vista SP1-rc1 appears to break against Samba-3.0.27a

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Jason,

Jason Haar wrote:
> Patched 3.0.28, compiled, installed and here's the log file.
>
> Hope it helps. BTW I don't think it matters, but this is on 32bit
> CentOS4.5 systems.

yes, it helps. Thanks for that.

Very interesting, there are two auth data structures where the first one
is a PAC and the second something unknown (yet).

Can you please try the attached fix ? It should make it work again.

Guenther
- --
Günther Deschner                    GPG-ID: 8EE11688
Red Hat                         gdeschner@redhat.com
Samba Team                              gd@samba.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHX9ZESOk3aI7hFogRAivSAJ9bMcD+PcsIzjYYLtAUoLNfVVEl1QCfV/Qd
MPsZW4G31VOVu64SPjgnJiI=
=Co+H
-----END PGP SIGNATURE-----

16 years agoFix for bug #4801: Correctly implement lsa lookup levels for lookupnames.
Michael Adam [Fri, 30 Nov 2007 15:11:43 +0000 (16:11 +0100)]
Fix for bug #4801: Correctly implement lsa lookup levels for lookupnames.

This is a first patch aimed at fixing bug #4801.
It is still incomplete in that winbindd does not walk
the the trusted domains to lookup unqualified names here.
Apart from that this fix should be pretty much complete.

Michael

16 years agoAdd flags for correctly implementing lsa_lookup_name levels.
Michael Adam [Fri, 30 Nov 2007 15:11:43 +0000 (16:11 +0100)]
Add flags for correctly implementing lsa_lookup_name levels.

This is in preparation of the upcoming fix for bug #4801
(correct implementation of lsa lookup name levels.)

Michael

16 years agoAdd patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic...
Jeremy Allison [Tue, 11 Dec 2007 20:12:48 +0000 (12:12 -0800)]
Add patches for bug #4866 from jiri sasek - Sun Microsystems - Prague Czech Republic <Jiri.Sasek@Sun.COM>
to allow Solaris to get passwords > 8 chars.
Jeremy.

16 years agoMerge branch 'v3-0-stable' into v3-0-test
Gerald (Jerry) Carter [Mon, 10 Dec 2007 15:59:46 +0000 (09:59 -0600)]
Merge branch 'v3-0-stable' into v3-0-test

16 years agoCorrect typos in the name of the CVE-2007-6015 references samba-3.0.28
Gerald (Jerry) Carter [Mon, 10 Dec 2007 15:59:27 +0000 (09:59 -0600)]
Correct typos in the name of the CVE-2007-6015 references

16 years agoMerge branch 'v3-0-stable' into v3-0-test
Gerald (Jerry) Carter [Mon, 10 Dec 2007 15:30:23 +0000 (09:30 -0600)]
Merge branch 'v3-0-stable' into v3-0-test

16 years agoAdditional fixes for SAMBA_VERSION_VENDOR_PATCH in lib/version.c
Gerald (Jerry) Carter [Mon, 10 Dec 2007 14:59:39 +0000 (08:59 -0600)]
Additional fixes for SAMBA_VERSION_VENDOR_PATCH in lib/version.c

16 years agoAdapt VERSION to use SAMBA_VERSION_VENDOR_PATCH instead of
Michael Adam [Fri, 23 Nov 2007 15:52:45 +0000 (16:52 +0100)]
Adapt VERSION to use SAMBA_VERSION_VENDOR_PATCH instead of
SAMBA_VENDOR_PATCH as expected by mkversion.sh.

Thanks to Thomas Bork for noticing this.

Michael

16 years agoMerge branch 'v3-0-stable' into v3-0-test
Gerald (Jerry) Carter [Mon, 10 Dec 2007 14:34:15 +0000 (08:34 -0600)]
Merge branch 'v3-0-stable' into v3-0-test

Resolved conflicts in source/VERSION.

16 years agoRemove "-stable" vendor suffix from release
Gerald (Jerry) Carter [Mon, 10 Dec 2007 14:31:50 +0000 (08:31 -0600)]
Remove "-stable" vendor suffix from release

16 years agoUpdate release notes for 3.0.28
Gerald (Jerry) Carter [Mon, 10 Dec 2007 13:53:41 +0000 (07:53 -0600)]
Update release notes for 3.0.28

16 years agoCorrectly unbecome_root() on error
Volker Lendecke [Mon, 10 Dec 2007 10:47:17 +0000 (11:47 +0100)]
Correctly unbecome_root() on error

16 years agoCorrectly unbecome_root() on error
Volker Lendecke [Mon, 10 Dec 2007 10:47:17 +0000 (11:47 +0100)]
Correctly unbecome_root() on error

16 years agoFix a debug message (add a newline).
Michael Adam [Thu, 6 Dec 2007 00:13:07 +0000 (01:13 +0100)]
Fix a debug message (add a newline).

Michael

16 years agoSet release version to 3.0.28.
Gerald (Jerry) Carter [Thu, 6 Dec 2007 20:46:18 +0000 (14:46 -0600)]
Set release version to 3.0.28.

16 years agoFix from Jeremy for CVE-2007-6015 (send_mailslot() buffer overrun).
Gerald (Jerry) Carter [Thu, 6 Dec 2007 20:46:06 +0000 (14:46 -0600)]
Fix from Jeremy for CVE-2007-6015 (send_mailslot() buffer overrun).

This one fixes cli_send_mailslot() which could be called from the
nmbd server code.

16 years agoFix from Volker for CVE-2007-6015 (send_mailslot() buffer overrun).
Gerald (Jerry) Carter [Thu, 6 Dec 2007 20:45:13 +0000 (14:45 -0600)]
Fix from Volker for CVE-2007-6015 (send_mailslot() buffer overrun).