tprouty/samba.git
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 release-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).

16 years agoRemove trailing slashes from service name
Andreas Schneider [Thu, 6 Dec 2007 11:29:52 +0000 (12:29 +0100)]
Remove trailing slashes from service name

16 years agoFix signing bug found by Volker. That one was *subtle*.
Jeremy Allison [Tue, 4 Dec 2007 21:30:29 +0000 (13:30 -0800)]
Fix signing bug found by Volker. That one was *subtle*.
Jeremy

16 years agoCorrectly invalidate intermediate vuids
Volker Lendecke [Tue, 4 Dec 2007 12:16:37 +0000 (13:16 +0100)]
Correctly invalidate intermediate vuids

Because of the "&& usp->server_info" test in get_valid_user_struct,
invalidate_vuid() called for an intermediate vuid would never do what it was
supposed to do. There is no server_info in the intermediate vuids.

This fixes a memleak, it was found for a client that does silly sequences of
sesssionsetup/ulogoff for every operation.

16 years agoWhen allocating a new vuid, also avoid partial ones
Volker Lendecke [Tue, 4 Dec 2007 12:13:45 +0000 (13:13 +0100)]
When allocating a new vuid, also avoid partial ones

16 years agoadd SESSSETUP_BENCH
Volker Lendecke [Tue, 4 Dec 2007 10:38:57 +0000 (11:38 +0100)]
add SESSSETUP_BENCH

16 years agoPrevent net getdomainsid from panicing when called as non-root.
Michael Adam [Fri, 30 Nov 2007 15:10:32 +0000 (16:10 +0100)]
Prevent net getdomainsid from panicing when called as non-root.

(Unable to open secrets.tdb.)

Michael

16 years agoFix old cut-and-paste bug where the wrong field was being written to.
Jeremy Allison [Wed, 28 Nov 2007 01:42:46 +0000 (17:42 -0800)]
Fix old cut-and-paste bug where the wrong field was being written to.
Jerry please check.
Jeremy.

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 agoprinting: fix default printing subsystem detection
Stefan Metzmacher [Fri, 23 Nov 2007 10:51:33 +0000 (11:51 +0100)]
printing: fix default printing subsystem detection

"system/printing.h" includes an outdated copy of
the stuff in samba3's includes.h, so we should not use it.

metze
(cherry picked from commit 0a7338abfabaf31c2cbd81fb4ac8f1ce45735bed)

16 years agoMerge commit 'origin/v3-0-stable' into v3-0-test
Stefan Metzmacher [Wed, 21 Nov 2007 14:47:21 +0000 (15:47 +0100)]
Merge commit 'origin/v3-0-stable' into v3-0-test

16 years agoMerge commit 'release-3-0-27a' into v3-0-stable
Gerald (Jerry) Carter [Wed, 21 Nov 2007 13:38:19 +0000 (07:38 -0600)]
Merge commit 'release-3-0-27a' into v3-0-stable

Resolved Conflicts:

source/VERSION

16 years agoSet version to 3.0.27b-GIT-XXXX-test
Gerald (Jerry) Carter [Wed, 21 Nov 2007 13:13:14 +0000 (07:13 -0600)]
Set version to 3.0.27b-GIT-XXXX-test

16 years agoSet version to 3.0.27a-GIT-XXXX-stable
Gerald (Jerry) Carter [Wed, 21 Nov 2007 13:12:08 +0000 (07:12 -0600)]
Set version to 3.0.27a-GIT-XXXX-stable

16 years agoUpdate release notes for the 3.0.27a release.
Gerald (Jerry) Carter [Wed, 21 Nov 2007 03:55:27 +0000 (21:55 -0600)]
Update release notes for the 3.0.27a release.
(cherry picked from commit 7fe4b24fcebe231843149fd8f7dbe5676812367d)

16 years agoCopy the full release notes from the 3.0.27 tag.
Gerald (Jerry) Carter [Wed, 21 Nov 2007 00:19:32 +0000 (18:19 -0600)]
Copy the full release notes from the 3.0.27 tag.

Some parts were somehow different.
(cherry picked from commit d6c3df20e8f6656da40b1baba4618d0220c1a4c1)

16 years agoUpdate release notes for the 3.0.27a release. release-3-0-27a
Gerald (Jerry) Carter [Wed, 21 Nov 2007 03:55:27 +0000 (21:55 -0600)]
Update release notes for the 3.0.27a release.

16 years agoCopy the full release notes from the 3.0.27 tag.
Gerald (Jerry) Carter [Wed, 21 Nov 2007 00:19:32 +0000 (18:19 -0600)]
Copy the full release notes from the 3.0.27 tag.

Some parts were somehow different.

16 years agoSetting release version to 3.0.27a
Gerald (Jerry) Carter [Tue, 20 Nov 2007 23:44:25 +0000 (17:44 -0600)]
Setting release version to 3.0.27a

16 years ago32/64 bit compatibility fix
Simo Sorce [Tue, 20 Nov 2007 23:19:54 +0000 (18:19 -0500)]
32/64 bit compatibility fix
this patch fixes platform where 32 and 64 bit apps can run at the same time
fixed in and tested in Fedora: https://bugzilla.redhat.com/show_bug.cgi?id=253036

16 years agoDon't overrun directory listings by incorrectly calculating
Jeremy Allison [Tue, 20 Nov 2007 22:06:50 +0000 (14:06 -0800)]
Don't overrun directory listings by incorrectly calculating
end-of-data. Syncs up with 3.2.0. Jerry - this should fix the
profile bug.
Jeremy.

16 years agoPrevent segv in winbindd running on a DC using the "idmap backend" syntax.
Gerald (Jerry) Carter [Tue, 20 Nov 2007 19:24:03 +0000 (13:24 -0600)]
Prevent segv in winbindd running on a DC using the "idmap backend" syntax.

The number of domains should be counted as they are added and not assumed
to match the loop counter.

16 years agoEnsure every use of push_ascii checks for error -1 condition.
Jeremy Allison [Mon, 19 Nov 2007 23:27:11 +0000 (15:27 -0800)]
Ensure every use of push_ascii checks for error -1 condition.
Ensure that is zero termination is requested that it is
applied if there's space.
Jeremy.

16 years agoBack-port fix for bug found by kukks - Samba adding
Jeremy Allison [Mon, 19 Nov 2007 20:02:11 +0000 (12:02 -0800)]
Back-port fix for bug found by kukks - Samba adding
non-initialized name to IP mapping.
Jeremy.

16 years agoFix remaining calls to srvstr_push -1 - noticed
Jeremy Allison [Sun, 18 Nov 2007 23:06:53 +0000 (15:06 -0800)]
Fix remaining calls to srvstr_push -1 - noticed
by Simo (thanks !)
Jeremy.

16 years agoFix for Bug #5023 (separate access check from posix_acls code)
Michael Adam [Sat, 20 Oct 2007 00:17:07 +0000 (02:17 +0200)]
Fix for Bug #5023 (separate access check from posix_acls code)

The three can_* access check functions in smbd/posix_acls.c that are used in
smbd/open.c and smbd/nttrans.c explicitly called check_posix_acl_group_access()

This lead to errors with nfsv4 acls (e.g. ZFS and GPFS).

This changes the can_* functions to get the nt_acl via VFS layer and call
se_access_check on that. It also removes check_posix_acl_group_access()
which has no more callers.

Michael

Note: This merges the original fix 6f961a23de745aba5dcd4585b731e651b8cbeef4
from branch v3-2-test along with some subsequent improvements:

c61b4222d30288add216fac4da3cfaa537f5cd01 - no double fast pathing
cd62122916defbfb57468c3b82a60b766fc4652e - cosmetic fix
f4f700cf0c1657c36e801fab20fe7b1a4efcb714 - prevent orphaned open files

16 years agoFix for bug 4393 smbclient does not store files with zero filesize in tar-archives
Jeremy Allison [Fri, 16 Nov 2007 22:15:56 +0000 (14:15 -0800)]
Fix for bug 4393 smbclient does not store files with zero filesize in tar-archives
from Tomasz Ostrowski <tometzky@batory.org.pl>
Jeremy.

16 years agoFix for bug #4781: allow cleaning of /etc/mtab by canonicalizing mountpoint.
Michael Adam [Fri, 16 Nov 2007 21:26:26 +0000 (22:26 +0100)]
Fix for bug #4781: allow cleaning of /etc/mtab by canonicalizing mountpoint.

Canonicalize mountpoint by trimming trailing slashes before unmounting.
This allows for correct cleanup of /etc/mtab after unmounting.

Thanks to Steve Langasek <vorlon@debian.org>.

Michael

16 years agoFix smbfs to not trigger our paranoid checker.
Jeremy Allison [Fri, 16 Nov 2007 21:12:51 +0000 (13:12 -0800)]
Fix smbfs to not trigger our paranoid checker.
Jeremy.

16 years agoSet release to 3.0.27a in development branch
Gerald (Jerry) Carter [Thu, 15 Nov 2007 16:51:37 +0000 (10:51 -0600)]
Set release to 3.0.27a in development branch

16 years agoPull in release notes from 3.0.27 to the v3-0 development branch
Gerald (Jerry) Carter [Thu, 15 Nov 2007 16:51:23 +0000 (10:51 -0600)]
Pull in release notes from 3.0.27 to the v3-0 development branch

16 years agoSet version to 3.0.27a
Gerald (Jerry) Carter [Thu, 15 Nov 2007 16:48:13 +0000 (10:48 -0600)]
Set version to 3.0.27a

16 years agoFix for CVE-2007-4572
Gerald (Jerry) Carter [Thu, 15 Nov 2007 02:54:44 +0000 (20:54 -0600)]
Fix for CVE-2007-4572

== Subject:     Stack buffer overflow in nmbd's logon
==              request processing.
==
== CVE ID#:     CVE-2007-4572
==
== Versions:    Samba 3.0.0 - 3.0.26a (inclusive)

...
Samba developers have discovered what is believed to be
a non-exploitable buffer over in nmbd during the processing
of GETDC logon server requests.  This code is only used
when the Samba server is configured as a Primary or Backup
Domain Controller.

16 years agoFix for CVE-2007-5398.
Gerald (Jerry) Carter [Thu, 15 Nov 2007 02:51:14 +0000 (20:51 -0600)]
Fix for CVE-2007-5398.

== Subject:     Remote code execution in Samba's WINS
==              server daemon (nmbd) when processing name
==              registration followed name query requests.
==
== CVE ID#:     CVE-2007-5398
==
== Versions:    Samba 3.0.0 - 3.0.26a (inclusive)
...
Secunia Research reported a vulnerability that allows for
the execution of arbitrary code in nmbd.  This defect may
only be exploited when the "wins support" parameter has
been enabled in smb.conf.

16 years agoFix bug #5083 (and duplicate bug #5084).
Michael Adam [Thu, 15 Nov 2007 10:08:53 +0000 (11:08 +0100)]
Fix bug #5083 (and duplicate bug #5084).

Make solarisacl_sys_acl_get_fd() return a result
when there is one (thereby fixing a memleak).

Thanks to Markus Zell for reporting this.

Michael

16 years agoFix bug where tdb lock call interrupted with
Jeremy Allison [Wed, 7 Nov 2007 05:48:01 +0000 (21:48 -0800)]
Fix bug where tdb lock call interrupted with
an alarm sig would not terminate and could lead
to runaway smbd processes.
Thanks to Dave Daugherty @ Centrify for pointing
this out to us.
Jeremy.

16 years agoMerge branch 'v3-0-test' of git://git.samba.org/samba into v3-0-test
Gerald (Jerry) Carter [Wed, 31 Oct 2007 02:22:43 +0000 (22:22 -0400)]
Merge branch 'v3-0-test' of git://git.samba.org/samba into v3-0-test

16 years agoEnsure we catch an error in the query_user() reply in the receive function.
Gerald (Jerry) Carter [Wed, 31 Oct 2007 02:21:49 +0000 (22:21 -0400)]
Ensure we catch an error in the query_user() reply in the receive function.
backport of v3-2-test patch from Dmitry Butskoy <buc@odusz.so-cdu.ru>.

16 years ago[crash fix] don't use already free'ed memory
Stefan Metzmacher [Wed, 24 Oct 2007 12:29:06 +0000 (14:29 +0200)]
[crash fix] don't use already free'ed memory

(found by "make valgrindtest" and my "start winbindd on make test" patch)

metze
(cherry picked from commit fe21e48489852720a05b305b251e4f5cbb200f7a)

16 years agofix crash bug in pidl generated client code, this
Stefan Metzmacher [Wed, 17 Oct 2007 08:59:24 +0000 (10:59 +0200)]
fix crash bug in pidl generated client code, this
could have happend with [in,out,unique] pointers
when the clients sends a valid pointer, but the server
reponse with a NULL pointer (as samba-3.0.26a do for some calls).

I've tested with midl to see how windows handles this situation
and also the reverse case where the client sends NULL and
the server reposnse with non-NULL.

It appears that midl generated code just ignores this
and only copies the result if both pointers are non-NULL.

Note: this is just cosmetic for the 3.0.x tree, as
rpccli_wkssvc_NetWkstaEnumUsers and rpccli_wkssvc_NetWkstaTransportEnum
are not used.

metze

16 years agoSAMBA_VERSION_VENDOR_SUFFIX="test"
Stefan Metzmacher [Wed, 17 Oct 2007 08:03:22 +0000 (10:03 +0200)]
SAMBA_VERSION_VENDOR_SUFFIX="test"

metze

16 years agoFix warning messages for unused variables.
Jeremy Allison [Mon, 15 Oct 2007 22:52:30 +0000 (15:52 -0700)]
Fix warning messages for unused variables.
Jeremy.
(cherry picked from commit 406737cd9a34ac498e5823b380e1768d41e16c1b)

16 years agoprepare the mkversion.sh infrastructure for git branches in the build-farm
Stefan Metzmacher [Thu, 11 Oct 2007 10:27:38 +0000 (12:27 +0200)]
prepare the mkversion.sh infrastructure for git branches in the build-farm

metze

16 years agoFix dimap for trusted domains only case
Simo Sorce [Tue, 16 Oct 2007 18:06:33 +0000 (14:06 -0400)]
Fix dimap for trusted domains only case

16 years agocleanup and extent .gitignore
Stefan Metzmacher [Fri, 12 Oct 2007 14:46:24 +0000 (16:46 +0200)]
cleanup and extent .gitignore

metze
(cherry picked from commit 9475993dae06fa023f2eb63d04d5f7b07b0b4d93)

16 years agoAdd .gitignore file from v3-2-test.
Michael Adam [Fri, 12 Oct 2007 14:35:46 +0000 (16:35 +0200)]
Add .gitignore file from v3-2-test.

Michael

16 years agoAdd become_root/unbecome_root around one call of getsampwsid()
Michael Adam [Fri, 12 Oct 2007 11:34:09 +0000 (13:34 +0200)]
Add become_root/unbecome_root around one call of getsampwsid()
in create_token_from_username(). This caused set_nt_acl to
partially fail in certain circumstances.

This is expected to bring an improvement to bug #4308.

Michael

16 years agoFix default domains support using compat syntax.
Simo Sorce [Thu, 11 Oct 2007 18:35:34 +0000 (14:35 -0400)]
Fix default domains support using compat syntax.
Without this fix idmap_rid can't be used with the compatible syntax.

16 years ago[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch. initial-v3-0-test
Gerald (Jerry) Carter [Wed, 10 Oct 2007 20:28:53 +0000 (15:28 -0500)]
[GLUE] Rsync SAMBA_3_0 SVN r25598 in order to create the v3-0-test branch.

16 years agor25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on the initial-v3-0-unstable
Günther Deschner [Mon, 10 Sep 2007 23:12:27 +0000 (23:12 +0000)]
r25068: Older samba3 DCs will return DCERPC_FAULT_OP_RNG_ERROR for every opcode on the
LSARPC_DS pipe, continue with no_lsarpc_ds mode here as well to get
domain->initialized set to True. This avoids permanent scanning of Samba3 DCs
in winbindd. Thanks Michael, for pointing this out.

Guenther

16 years agor24770: Use infolevel 25 to set the machine account's password (just like winxp).
Rafal Szczesniak [Wed, 29 Aug 2007 10:42:53 +0000 (10:42 +0000)]
r24770: Use infolevel 25 to set the machine account's password (just like winxp).
This correctly updates pwdLastSet field on win2k3 server.

rafal

16 years agor24344: Make libreplace provide offsetof.
Jelmer Vernooij [Sun, 12 Aug 2007 02:30:25 +0000 (02:30 +0000)]
r24344: Make libreplace provide offsetof.

16 years agor24343: Use standard data type uint32_t rather than tdb-specific u32.
Jelmer Vernooij [Sun, 12 Aug 2007 02:28:15 +0000 (02:28 +0000)]
r24343: Use standard data type uint32_t rather than tdb-specific u32.

16 years agor24055: Remove a reference to the outdated samba-docs mailing list. This entire
Gerald Carter [Thu, 26 Jul 2007 12:08:13 +0000 (12:08 +0000)]
r24055: Remove a reference to the outdated samba-docs mailing list.  This entire
README really needs to be overhauled at some point.

16 years agor23773: One pstring a day...
Volker Lendecke [Mon, 9 Jul 2007 16:27:13 +0000 (16:27 +0000)]
r23773: One pstring a day...

16 years agor23772: Add ads_find_samaccount() helper function.
Günther Deschner [Mon, 9 Jul 2007 16:03:00 +0000 (16:03 +0000)]
r23772: Add ads_find_samaccount() helper function.

Guenther

16 years agor23771: Merge useful W_ERROR_NOT_OK_RETURN macro from samba4.
Günther Deschner [Mon, 9 Jul 2007 15:53:08 +0000 (15:53 +0000)]
r23771: Merge useful W_ERROR_NOT_OK_RETURN macro from samba4.

Guenther

16 years agor23770: Some minor cleanups in libgpo
Günther Deschner [Mon, 9 Jul 2007 15:48:17 +0000 (15:48 +0000)]
r23770: Some minor cleanups in libgpo
(including some valgrind errors, uninitialized vars, etc.)

Guenther

16 years agor23769: Move removal of the tdb from the generic tdb_validate function
Michael Adam [Mon, 9 Jul 2007 15:34:46 +0000 (15:34 +0000)]
r23769: Move removal of the tdb from the generic tdb_validate function
to the caller (winbindd_validate_cache in this case).
Next, there will be a backup handling for the tdb files.

Michael

16 years agor23768: Get rid of the three global variables for the case semantics. I think
Volker Lendecke [Mon, 9 Jul 2007 14:43:36 +0000 (14:43 +0000)]
r23768: Get rid of the three global variables for the case semantics. I think
this is really not worth globals.

Jeremy, please check for 3.0.26.

16 years agor23767: Add GTYPE_SECURITY_UNIVERSAL_GROUP to adsearch.pl as well.
Günther Deschner [Mon, 9 Jul 2007 13:31:32 +0000 (13:31 +0000)]
r23767: Add GTYPE_SECURITY_UNIVERSAL_GROUP to adsearch.pl as well.

Guenther

16 years agor23766: Add GTYPE_SECURITY_UNIVERSAL_GROUP define.
Günther Deschner [Mon, 9 Jul 2007 13:28:46 +0000 (13:28 +0000)]
r23766: Add GTYPE_SECURITY_UNIVERSAL_GROUP define.

Guenther

16 years agor23765: Another error-path restore_case_semantics().
Volker Lendecke [Mon, 9 Jul 2007 13:24:31 +0000 (13:24 +0000)]
r23765: Another error-path restore_case_semantics().

16 years agor23764: Do restore_case_semantics in an error path. Jeremy, please check!
Volker Lendecke [Mon, 9 Jul 2007 13:04:44 +0000 (13:04 +0000)]
r23764: Do restore_case_semantics in an error path. Jeremy, please check!

16 years agor23763: Fix a typo in DEBUG message.
Michael Adam [Mon, 9 Jul 2007 12:59:17 +0000 (12:59 +0000)]
r23763: Fix a typo in DEBUG message.
Thanks to Karolin Seeger (ks@sernet.de)

16 years agor23761: Rename reduce_name to check_reduced_name
Volker Lendecke [Mon, 9 Jul 2007 09:43:41 +0000 (09:43 +0000)]
r23761: Rename reduce_name to check_reduced_name

The function name reduce_name is misleading, making the user believe it
changes an argument.

16 years agor23760: Untangle use of strrchr_m and strequal and add some checks
Michael Adam [Mon, 9 Jul 2007 09:35:03 +0000 (09:35 +0000)]
r23760: Untangle use of strrchr_m and strequal and add some checks
for the validity of the given registry key name.

Michael

16 years agor23759: Fix make test -- sorry
Volker Lendecke [Mon, 9 Jul 2007 08:45:14 +0000 (08:45 +0000)]
r23759: Fix make test -- sorry

16 years agor23758: Fix Coverity id 385
Volker Lendecke [Mon, 9 Jul 2007 08:04:43 +0000 (08:04 +0000)]
r23758: Fix Coverity id 385

16 years agor23757: Fix Coverity id 386
Volker Lendecke [Mon, 9 Jul 2007 08:00:50 +0000 (08:00 +0000)]
r23757: Fix Coverity id 386

16 years agor23756: Fix Coverity id 388
Volker Lendecke [Mon, 9 Jul 2007 07:55:09 +0000 (07:55 +0000)]
r23756: Fix Coverity id 388

16 years agor23755: Fix Coverity id 384
Volker Lendecke [Mon, 9 Jul 2007 07:51:39 +0000 (07:51 +0000)]
r23755: Fix Coverity id 384

16 years agor23752: Fix bug introduced by checkin 22920, allow large
Jeremy Allison [Mon, 9 Jul 2007 00:48:07 +0000 (00:48 +0000)]
r23752: Fix bug introduced by checkin 22920, allow large
readX. Fix from Dmitry Shatrov <dhsatrov@linux.vnet.ibm.com>.

"In send_file_readX(), if startpos > sbuf.st_size, then smb_maxcnt is set
to an invalid large value due to integer overflow.
As for me, this resulted in MS Word hanging while trying to save
a 1.5Mb document."

This isn't in shipping code.

Jeremy.

16 years agor23751: Call tdb_close even when validation was not successful.
Michael Adam [Sun, 8 Jul 2007 22:01:43 +0000 (22:01 +0000)]
r23751: Call tdb_close even when validation was not successful.

Michael

16 years agor23750: Change the behaviour of net conf import when there is a global section
Michael Adam [Sat, 7 Jul 2007 23:57:25 +0000 (23:57 +0000)]
r23750: Change the behaviour of net conf import when there is a global section
in the current registry and there is no global section in the input
file (or only global options with default values):
In that case the existing global section is now not touched. Before, it
would have been deleted and recreated empty. The new behaviour is how
other shares are treated too.

Note that since the input file is parsed by lp_load, there is currently
no way to distinguish between a section with only default parameters
and a non-existing section in net conf import.

Michael

PS: A couple of trailing white-spaces have been eliminated
and a line was broken to be not longer than 80 chars, too.

16 years agor23749: Simplify prototype of reg_setvalue_internal:
Michael Adam [Sat, 7 Jul 2007 22:33:45 +0000 (22:33 +0000)]
r23749: Simplify prototype of reg_setvalue_internal:
eliminate "type" parameter since we store only REG_SZ.

Michael

16 years agor23748: Clean use of talloc in import_process_service:
Michael Adam [Sat, 7 Jul 2007 22:29:34 +0000 (22:29 +0000)]
r23748: Clean use of talloc in import_process_service:
create a temporary talloc ctx for the function.

Michael

16 years agor23747: Move formatting of a parameter's value into a value string
Michael Adam [Sat, 7 Jul 2007 22:18:54 +0000 (22:18 +0000)]
r23747: Move formatting of a parameter's value into a value string
to a function of its own. (for storing it in registry),
Eliminate the valtype variable : store everything as "sz".
Eliminate some trailing white spaces on the way.

Michael

16 years agor23746: Fix missing assignments to target string of asprintf in import function.
Michael Adam [Sat, 7 Jul 2007 21:41:59 +0000 (21:41 +0000)]
r23746: Fix missing assignments to target string of asprintf in import function.

Michael

16 years agor23745: Fix: Check whether top subkeyname instead of whole registry key name
Michael Adam [Sat, 7 Jul 2007 21:33:48 +0000 (21:33 +0000)]
r23745: Fix: Check whether top subkeyname instead of whole registry key name
is equal to GLOBAL_NAME.

Michael

16 years agor23744: Remove TODO-comment. lp_load returns False if opening
Michael Adam [Sat, 7 Jul 2007 20:40:59 +0000 (20:40 +0000)]
r23744: Remove TODO-comment. lp_load returns False if opening
of the config file fails. That's enough of checking for
existence and readbility to my taste.

Michael

16 years agor23743: Simplify stat_cache_lookup() logic. For the history of this, see
Volker Lendecke [Sat, 7 Jul 2007 09:57:27 +0000 (09:57 +0000)]
r23743: Simplify stat_cache_lookup() logic. For the history of this, see
http://article.gmane.org/gmane.network.samba.internals/32486.