metze/samba/wip.git
15 years agoI found lots of places where we assume error will be set when calling
Andrew Tridgell [Sun, 10 Aug 2008 00:43:36 +0000 (10:43 +1000)]
I found lots of places where we assume error will be set when calling
one of our virtualised functions, such as db_open(), but error is only
set when a system call fails, and it is not uncommon for us to fail a
function internally without ever making a system call. That led to us
passing back success when a function had in fact failed.

I found two places where we relied on map_nt_error_from_unix()
returning success when errno==0, but lots and lots of places where we
relied on the reverse, so I fixed those two places.

map_nt_error_from_unix() will now always return an error, returning
NT_STATUS_UNSUCCESSFUL if errno is 0
(cherry picked from commit 69d40ca4c1af925d4b0e59ddc69ef8c26e6501d1)

15 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Tue, 12 Aug 2008 21:10:52 +0000 (14:10 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test

15 years agoFix unix_convert() for "*" after changing map_nt_error_from_unix().
Michael Adam [Tue, 12 Aug 2008 12:59:59 +0000 (14:59 +0200)]
Fix unix_convert() for "*" after changing map_nt_error_from_unix().

map_nt_error_from_unix() now assumes that it is called in
an error path and returns an error even for a given errno == 0.
The original behaviour of unix_convert() used the mapping
of errno == 0 ==> NT_STATUS_OK to return success through
an error path.

I think this must have been an oversight, and unix_convert() worked
only by coincidence (or because explicitly using the knowledge
of the conceptually wrong working of map_nt_error_from_unix().

This patch puts this straight by not interpreting errno == 0
as an error condition and proceeding in that case.

Jeremy - please check!

Michael

15 years agoMake sure to always set errno on error path in OpenDir (and hence scan_directory).
Michael Adam [Tue, 12 Aug 2008 13:19:17 +0000 (15:19 +0200)]
Make sure to always set errno on error path in OpenDir (and hence scan_directory).

Michael

15 years agoMerge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into my32-test
Herb Lewis [Tue, 12 Aug 2008 20:55:50 +0000 (13:55 -0700)]
Merge branch 'v3-2-test' of ssh://git.samba.org/data/git/samba into my32-test

15 years agoprint correct test status
Herb Lewis [Tue, 12 Aug 2008 20:38:51 +0000 (13:38 -0700)]
print correct test status

15 years agoFix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Jeremy Allison [Tue, 12 Aug 2008 20:34:00 +0000 (13:34 -0700)]
Fix bug 5686 - libsmbclient segfaults with more than one SMBCCTX.
Here is a patch to allow many subsystems to be re-initialized. The only
functional change I made was to remove the null context tracking, as the memory
allocated here is designed to be left for the complete lifetime of the program.
Freeing this early (when all smb contexts are destroyed) could crash other
users of talloc.
Jeremy.

15 years agofix build warning.
Günther Deschner [Mon, 11 Aug 2008 09:20:38 +0000 (11:20 +0200)]
fix build warning.

Guenther

15 years agoWHATSNEW: Update changes since 3.2.1.
Karolin Seeger [Mon, 11 Aug 2008 14:46:15 +0000 (16:46 +0200)]
WHATSNEW: Update changes since 3.2.1.

Karolin

15 years agofix smb_len calculation for chained requests
Volker Lendecke [Sun, 10 Aug 2008 15:53:35 +0000 (17:53 +0200)]
fix smb_len calculation for chained requests

I think chain_reply() is one of the most tricky parts of Samba. This recursion
needs to go away, we need to sequentially walk the chain list.

15 years agoFix andx offset calculation for more than 2 chained requests
Volker Lendecke [Sun, 10 Aug 2008 15:37:08 +0000 (17:37 +0200)]
Fix andx offset calculation for more than 2 chained requests

Untested code is broken code.... Test follows later, it's quite an intrusive
change to libsmb/

15 years agoOne more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined before we...
Jeremy Allison [Fri, 8 Aug 2008 23:08:36 +0000 (16:08 -0700)]
One more build fix. Ensure we have KRB5_AUTH_CONTEXT_USE_SUBKEY defined before we compile the new code.
Jeremy.

15 years agoTry and fix the build for systems that don't have krb5_auth_con_set_req_cksumtype().
Jeremy Allison [Fri, 8 Aug 2008 22:16:04 +0000 (15:16 -0700)]
Try and fix the build for systems that don't have krb5_auth_con_set_req_cksumtype().
Jeremy.

15 years agoAdd Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
Jeremy Allison [Fri, 8 Aug 2008 21:33:00 +0000 (14:33 -0700)]
Add Derrick Schommer's <dschommer@F5.com> kerberos delegation patch. Some
work by me and advice by Love.
Jeremy.

15 years agousing NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutin...
Yannick Bergeron [Fri, 8 Aug 2008 17:32:15 +0000 (13:32 -0400)]
using NGROUPS_MAX instead of 32 for the max group value in rep_initgroups() subroutine in lib/replace/replace.c

15 years agoFix bug #5675 with a varient of Tim Waugh's patch,
Jeremy Allison [Fri, 8 Aug 2008 00:56:50 +0000 (17:56 -0700)]
Fix bug #5675 with a varient of Tim Waugh's patch,
as proposed by James Peach.
Jeremy.

15 years agoSolve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array...
Yannick Bergeron [Wed, 6 Aug 2008 17:23:00 +0000 (13:23 -0400)]
Solve an IBM XL C/C++ compiler error encountered in get_exit_code() auth_errors array initialization in client/smbspool.c

15 years agofixed permissions on ctdb databases
Andrew Tridgell [Wed, 6 Aug 2008 06:35:43 +0000 (16:35 +1000)]
fixed permissions on ctdb databases
(cherry picked from commit 123fc3980a83d956bffaa689f3af81bbf81ce1c1)

15 years agofixed a fd leak when trying to regain contact to a domain controller
Andrew Tridgell [Wed, 6 Aug 2008 04:02:45 +0000 (14:02 +1000)]
fixed a fd leak when trying to regain contact to a domain controller
in winbind

When a w2k3 DC is rebooted the 139/445 ports come up before the
udp/389 cldap port. During this brief period, winbind manages to
connect to 139/445 but not to udp 389. It then enters a tight loop
where it leaks one fd each time. In a couple of seconds it runs out of
file descriptors, and leaves winbind crippled after the DC does
finally come up
(cherry picked from commit 57187cafbcc053e75bb54750494df9feabe3a738)

15 years agodbwrap: add comment describing behaviour of dbwrap_change_int32_atomic().
Michael Adam [Tue, 5 Aug 2008 21:38:56 +0000 (23:38 +0200)]
dbwrap: add comment describing behaviour of dbwrap_change_int32_atomic().

Michael
(cherry picked from commit f8f21c8e3922806230e240cb54205fc2db7a3619)

15 years agosecrets: fix replacemend random seed generator (security issue).
Michael Adam [Tue, 5 Aug 2008 21:14:05 +0000 (23:14 +0200)]
secrets: fix replacemend random seed generator (security issue).

This is a regression introduced by the change to dbwrap.
The replacement dbwrap_change_int32_atomic() does not
correctly mimic the behaviour of tdb_change_int32_atomic():
The intended behaviour is to use *oldval  as an initial
value when the entry does not yet exist in the db and to
return the old value in *oldval.

The effect was that:
1. get_rand_seed() always returns sys_getpid() in *new_seed
   instead of the incremented seed from the secrets.tdb.
2. the seed stored in the tdb is always starting at 0 instead
   of sys_getpid() + 1 and incremented in subsequent calls.

In principle this is a security issue, but i think the danger is
low, since this is only used as a fallback when there is no useable
/dev/urandom, and this is at most called on startup or via
reinit_after_fork.

Michael
(cherry picked from commit bfc5d34a196f667276ce1e173821db478d01258b)

15 years agodbwrap: add comment describing behaviour of dbwrap_change_uint32_atomic().
Michael Adam [Tue, 5 Aug 2008 21:13:06 +0000 (23:13 +0200)]
dbwrap: add comment describing behaviour of dbwrap_change_uint32_atomic().

Michael
(cherry picked from commit 7edfb54c865ddcfd5cdcc8c2184b96aaac2d2ec0)

15 years agoidmap_tdb2: fix a race condition in idmap_tdb2_allocate_id().
Michael Adam [Tue, 5 Aug 2008 20:38:44 +0000 (22:38 +0200)]
idmap_tdb2: fix a race condition in idmap_tdb2_allocate_id().

The race is a regression introduced by the change to dbwrap.
It might have led to two concurrent processes returning the same id.

This fix is achieved by changing dbwrap_change_uint32_atomic() to
match the original behaviour of tdb_change_uint32_atomic(), which
is the following: *oldval is used as initial value when
the value does not yet exist and that the old value should be
returned in *oldval.

dbwrap_change_uint32_atomic() is used (only) in idmap_tdb2.c,
to get new ids.

Michael
(cherry picked from commit 72bd83fea7572a6202027b200d192c05023aa633)

15 years agoWithout stdlib.h we don't get a prototype for free().
Andrew Bartlett [Tue, 17 Jun 2008 12:45:29 +0000 (22:45 +1000)]
Without stdlib.h we don't get a prototype for free().

This test fails if GCC emits any warnings (presumably to detect the
function propertly), but unless we include this message then free()
fail.  Why we need to call free in a configure test is probably
something to blame on valgrind...

Andrew Bartlett
(cherry picked from commit d013f6fadc3e80fabb4a1784207dabc84f9b7dc2)

15 years agoWHATSNEW: Start WHATSNEW for 3.2.2.
Karolin Seeger [Tue, 5 Aug 2008 13:14:51 +0000 (15:14 +0200)]
WHATSNEW: Start WHATSNEW for 3.2.2.

Karolin

15 years agoVERSION: Raise version number up to 3.2.2.
Karolin Seeger [Tue, 5 Aug 2008 13:13:13 +0000 (15:13 +0200)]
VERSION: Raise version number up to 3.2.2.

Karolin

15 years agoman pages: Improve description of boolean values in smb.conf.5.
Karolin Seeger [Tue, 5 Aug 2008 12:20:32 +0000 (14:20 +0200)]
man pages: Improve description of boolean values in smb.conf.5.

This fixes bug #5378.
Thanks Morton K. Poulsen <morten+bugzilla.samba.org [at] afdelingp.dk>
for reporting!

Karolin
(cherry picked from commit 8195ca2132cbdba396dc35e9d04d4bdc3a8a666c)

15 years agoman pages: Add documentation about smbclient command "rename".
Karolin Seeger [Tue, 5 Aug 2008 12:10:11 +0000 (14:10 +0200)]
man pages: Add documentation about smbclient command "rename".

This fixes bug #5268.
Thanks to Alexander Franz <a.franz [at] gmx.net> for reporting!

Karolin
(cherry picked from commit 0a93fd2dedfa7fed1ad0b8a5e079bf7be72a4bd5)

15 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Tue, 5 Aug 2008 06:21:13 +0000 (08:21 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin

15 years agoCompile error on AIX 6.1
Yannick Bergeron [Mon, 4 Aug 2008 17:21:02 +0000 (13:21 -0400)]
Compile error on AIX 6.1

15 years agoSamba3 HowTo: Fix duplicate chapter id.
Karolin Seeger [Fri, 1 Aug 2008 12:10:28 +0000 (14:10 +0200)]
Samba3 HowTo: Fix duplicate chapter id.

Karolin
(cherry picked from commit f67b6fd97e177a527e896861f337c2e70541f697)

15 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Thu, 31 Jul 2008 07:39:58 +0000 (09:39 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin

15 years agoFix uninitialized variable.
Jeremy Allison [Wed, 30 Jul 2008 23:22:16 +0000 (16:22 -0700)]
Fix uninitialized variable.
Jeremy.

15 years agorpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.
Günther Deschner [Wed, 30 Jul 2008 17:03:13 +0000 (19:03 +0200)]
rpc_client: Bug 5616 - fix session keys also in rpccli_netr_LogonSamLogonEx wrapper.

Guenther
(cherry picked from commit fef58091408cce0d7870c86f28f78cf9400cf2b6)

15 years agowinbindd: handle trusted domains without sid.
Günther Deschner [Tue, 29 Jul 2008 10:08:47 +0000 (12:08 +0200)]
winbindd: handle trusted domains without sid.

Guenther
(cherry picked from commit 0c1efc6c89b1a51a94d10971bf0fc515416709b3)

15 years agolibwbclient: let wbcStringToSid handle the global NULL sid.
Günther Deschner [Wed, 30 Jul 2008 14:59:11 +0000 (16:59 +0200)]
libwbclient: let wbcStringToSid handle the global NULL sid.

Guenther
(cherry picked from commit 09fed085bea9dae5bb8aacd986deed3d458e3574)

15 years agoman pages: Fix typos in man smbclient.
Karolin Seeger [Tue, 29 Jul 2008 10:03:08 +0000 (12:03 +0200)]
man pages: Fix typos in man smbclient.

Karolin
(cherry picked from commit db843d2faafb3487e3c7df4a3a52d6c71f369e1d)

15 years agoAttempt to fix bug 5616
Volker Lendecke [Mon, 28 Jul 2008 15:52:35 +0000 (17:52 +0200)]
Attempt to fix bug 5616

We were calculating the session key but did not return it to the caller...

15 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Mon, 28 Jul 2008 13:26:19 +0000 (15:26 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin

15 years agoFix an incompatible pointer warning
Volker Lendecke [Fri, 25 Jul 2008 21:30:53 +0000 (23:30 +0200)]
Fix an incompatible pointer warning

15 years agoFix bug creating files using DOS clients with mixed
Jeremy Allison [Fri, 25 Jul 2008 20:14:57 +0000 (13:14 -0700)]
Fix bug creating files using DOS clients with mixed
case files. Reported by Daniel Johnson <Progman2000@usa.net>.
The smb_set_file_time() call to set the filetimes is failing
because it's using the unmodified name passed in by the
client, not the modified name (matching case on the
disk) that comes out from create_file().
Jeremy.

15 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Fri, 25 Jul 2008 14:31:27 +0000 (16:31 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin

15 years agoFix a race condition in winbind leading to a crash
Volker Lendecke [Fri, 25 Jul 2008 10:08:03 +0000 (12:08 +0200)]
Fix a race condition in winbind leading to a crash

When SIGCHLD handling is delayed for some reason, sending a request to a child
can fail early because the child has died already. In this case
async_main_request_sent() directly called the continuation function without
properly removing the malfunctioning child process and the requests in the
queue. The next request would then crash in the DLIST_ADD_END() in
async_request() because the request pending for the child had been
talloc_free()'ed and yet still was referenced in the list.

This one is *old*...

Volker

15 years agotalloc_string_sub2: Don't return NULL if src is empty.
Karolin Seeger [Wed, 23 Jul 2008 15:07:56 +0000 (17:07 +0200)]
talloc_string_sub2: Don't return NULL if src is empty.

This fixes BUG #5635.

Finished print jobs were not removed from the $PRINTER.tdb file if
"printing=cups".

In print_queue_update, talloc_string_sub2 is used to assemble the
"lprm command". In the case of using "printing=cups", the default
"lprm command" is an empty string. talloc_string_sub2 is called with
this empty string and returns NULL which leads to exiting
print_queue_update without doing the actual print queue update.

Signed-off by Michael Adam <obnox@samba.org>
(cherry picked from commit 03d66554d1bbd9d6c72a3dd5203e5305343c76b8)

15 years agoIf we're not allowing streams on this conn ptr,
Jeremy Allison [Fri, 25 Jul 2008 01:13:20 +0000 (18:13 -0700)]
If we're not allowing streams on this conn ptr,
then don't allow create_file() to call down to
create_file_unixpath() with a stream name.
Jeremy.

15 years agoRemove trailing withespace from wbinfo -m which breaks gdm auth.
Andreas Schneider [Mon, 21 Jul 2008 09:52:10 +0000 (11:52 +0200)]
Remove trailing withespace from wbinfo -m which breaks gdm auth.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
15 years agoRemove test changes added in error.
Jeremy Allison [Thu, 24 Jul 2008 19:00:01 +0000 (12:00 -0700)]
Remove test changes added in error.
Jeremy.

15 years agoUse sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy Allison [Thu, 24 Jul 2008 18:56:20 +0000 (11:56 -0700)]
Use sys_getgrnam not getgrnam. Pointed out by Herb.
Jeremy.

15 years agopdb_ldap: Raise level for debug message to avoid log file flooding.
John H Terpstra [Thu, 24 Jul 2008 07:45:02 +0000 (09:45 +0200)]
pdb_ldap: Raise level for debug message to avoid log file flooding.
(cherry picked from commit 9b863a10da8762f715c16f147d6cd1e79422d248)

15 years agoget rid of unused variable warnings when HAVE_IPV6 not defined
Herb Lewis [Wed, 23 Jul 2008 00:50:33 +0000 (17:50 -0700)]
get rid of unused variable warnings when HAVE_IPV6 not defined

15 years agoman pages: "printcap name" is a global parameter, not a share specific one.
Karolin Seeger [Tue, 22 Jul 2008 09:27:16 +0000 (11:27 +0200)]
man pages: "printcap name" is a global parameter, not a share specific one.

Karolin
(cherry picked from commit 9cde2525560536e16e2dbf991dbeb446260dd0df)

15 years agoUpdate Roadmap
Volker Lendecke [Mon, 21 Jul 2008 14:12:22 +0000 (16:12 +0200)]
Update Roadmap

15 years agotestsuite: fix expr error on Tru64, triggered by uninitialized failed variable.
Michael Adam [Mon, 21 Jul 2008 09:23:55 +0000 (11:23 +0200)]
testsuite: fix expr error on Tru64, triggered by uninitialized failed variable.

Michael
(cherry picked from commit 25cd227aaecf91dfa3114ae0fd2b47c783434aad)

15 years agotestsuite: fix another expr syntax error. in tests_all.sh.
Michael Adam [Mon, 21 Jul 2008 09:17:36 +0000 (11:17 +0200)]
testsuite: fix another expr syntax error. in tests_all.sh.

Michael
(cherry picked from commit 486b1bc5b5021565ec443fd463c8287c02c686b3)

15 years agotestsuite: fix expr syntax error in net registry test.
Michael Adam [Sun, 20 Jul 2008 21:49:40 +0000 (23:49 +0200)]
testsuite: fix expr syntax error in net registry test.

Pointed out by Björn Jacke <bj@sernet.de>.

Michael
(cherry picked from commit 63e7d9adb7a51b3790eb431615cb6e450391a894)

15 years agoFix link to Using Samba
Alexander Bokovoy [Sun, 20 Jul 2008 06:36:05 +0000 (10:36 +0400)]
Fix link to Using Samba

15 years agoFix the build of vfs_zfsacl.c
Volker Lendecke [Fri, 18 Jul 2008 08:01:39 +0000 (10:01 +0200)]
Fix the build of vfs_zfsacl.c

15 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Fri, 18 Jul 2008 14:13:04 +0000 (16:13 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin

15 years agoDocument the streams modules
Volker Lendecke [Fri, 18 Jul 2008 09:18:04 +0000 (11:18 +0200)]
Document the streams modules

15 years agoChange the directory parameter in streams_depot to become consistent
Volker Lendecke [Fri, 18 Jul 2008 09:17:33 +0000 (11:17 +0200)]
Change the directory parameter in streams_depot to become consistent

This is not built by default and not documented in 3.2.0, so I doubt this will
break any setups :-)

15 years agosmbldap: Fix typo in debug message.
Karolin Seeger [Fri, 18 Jul 2008 07:38:03 +0000 (09:38 +0200)]
smbldap: Fix typo in debug message.

Karolin
(cherry picked from commit 6e9e85b897431d7378396aada2c32ae470af0edd)

15 years agoFrom Jim McDonough
Jeremy Allison [Fri, 18 Jul 2008 03:01:13 +0000 (20:01 -0700)]
From Jim McDonough

In reloading the smb.conf, if a "log file" is specified in smb.conf,
winbind children will overwrite the logfile name to be the same as the
parent.

Jeremy.

15 years agogitignore: ignore the generated library symbol files
Michael Adam [Thu, 17 Jul 2008 19:05:11 +0000 (21:05 +0200)]
gitignore: ignore the generated library symbol files

Michael

15 years agoallow SID with 0 in subauthority to be converted properly
Herb Lewis [Thu, 17 Jul 2008 16:23:30 +0000 (09:23 -0700)]
allow SID with 0 in subauthority to be converted properly
from string representation.

15 years agoA brown paper bag bug fix for "net sam rights"
Volker Lendecke [Thu, 10 Jul 2008 09:11:53 +0000 (11:11 +0200)]
A brown paper bag bug fix for "net sam rights"
(cherry picked from commit 8a455b012827cfb917473a160c5710a90490451a)

15 years agoAllow %u parameters for print job username - use advanced sub
Bo Yang [Wed, 16 Jul 2008 15:11:55 +0000 (11:11 -0400)]
Allow %u parameters for print job username - use advanced sub

15 years agoman pages: Fix typos and add improvements.
Christoph Zauner [Fri, 11 Jul 2008 13:50:25 +0000 (15:50 +0200)]
man pages: Fix typos and add improvements.
(cherry picked from commit 060ff6d8d4e61f3ce89f980182413852cc5719be)

15 years agoWHATSNEW: Update changes since 3.2.0.
Karolin Seeger [Wed, 16 Jul 2008 07:48:46 +0000 (09:48 +0200)]
WHATSNEW: Update changes since 3.2.0.

Karolin

15 years agoRelease still reachable memory if the smbclient context is freed.
Andreas Schneider [Tue, 15 Jul 2008 12:57:32 +0000 (14:57 +0200)]
Release still reachable memory if the smbclient context is freed.

Signed-off-by: Andreas Schneider <anschneider@suse.de>
15 years agoFix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimes
Jeremy Allison [Tue, 15 Jul 2008 22:27:22 +0000 (15:27 -0700)]
Fix from Volodymyr Khomenko <Volodymyr.Khomenko@exanet.com>. Make ntimes
function more like POSIX and allow NULL arg. Help vfs developers.
Jeremy.

15 years agoFix swat. Bug #5613.
Jeremy Allison [Tue, 15 Jul 2008 21:38:19 +0000 (14:38 -0700)]
Fix swat. Bug #5613.
Jeremy

15 years agotestparm: refactor the per-share logic checks out into do_per_share_checks().
Michael Adam [Tue, 15 Jul 2008 11:01:54 +0000 (13:01 +0200)]
testparm: refactor the per-share logic checks out into do_per_share_checks().

Just to enhance clearness of the code.

Michael
(cherry picked from commit cd5d13dec0153c64d541e85bd13138b738cf50af)

15 years agotestparm: skip the per-share logic checks when --skip-logic-checks is specified.
Michael Adam [Tue, 15 Jul 2008 10:55:57 +0000 (12:55 +0200)]
testparm: skip the per-share logic checks when --skip-logic-checks is specified.

Michael
(cherry picked from commit 6cafee7e6ae02a32a9f2ddf313d2a20224fa22fe)

15 years agotestparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checks
Michael Adam [Tue, 15 Jul 2008 10:52:25 +0000 (12:52 +0200)]
testparm: rename -g|--skip-global-ckecks to -l|--skip-logic-checks

as suggested by Karolin.

That is what it really means. And per-share logic tests will be
disabled by the same switch, too...

Michael
(cherry picked from commit 5b8a4c33482917a1ef7071df224957ba831d853a)

15 years agotestsuite: fix bug #5594 by using the new --skip-global-ckecks switch
Michael Adam [Mon, 14 Jul 2008 22:27:01 +0000 (00:27 +0200)]
testsuite: fix bug #5594 by using the new --skip-global-ckecks switch

Michael
(cherry picked from commit 32f4b1443af12026c419684be45a7d8b96ccfaac)

15 years agotestparm: add a switch --skip-global-checks.
Michael Adam [Mon, 14 Jul 2008 22:17:58 +0000 (00:17 +0200)]
testparm: add a switch --skip-global-checks.

This allows for successfully calling testparm without the need
to "make install" before. Without this, testparm fails with
the message that the lock directory does not exist...

Michael
(cherry picked from commit eeb018fad65c19804a4e96ea949fc2c64883439e)

15 years agoAdd fix from Simo for bug #5540 - missing code to substitute
Jeremy Allison [Mon, 14 Jul 2008 19:38:28 +0000 (12:38 -0700)]
Add fix from Simo for bug #5540 - missing code to substitute
%u. Make this the same as other uses.
Jeremy.

15 years agobuild: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:58:24 +0000 (13:58 +0200)]
build: use $(PAM_WINBIND_EXTRA_LIBS) instead of @PAM_WINBIND_EXTRA_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:57:11 +0000 (13:57 +0200)]
build: use $(WINBIND_NSS_PTHREAD) instead of @WINBIND_NSS_PTHREAD@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:56:09 +0000 (13:56 +0200)]
build: use $(WINBIND_NSS_EXTRA_LIBS) instead of @WINBIND_NSS_EXTRA_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:50:11 +0000 (13:50 +0200)]
build: use $(LDAP_LIBS) instead of @LDAP_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:47:57 +0000 (13:47 +0200)]
build: use $(LIBNETAPI_LIBS) instead of @LIBNETAPI_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: link in $(WINBIND_LIBS) instead of @LIBWBCLIENT_SHARED@
Michael Adam [Mon, 14 Jul 2008 11:44:34 +0000 (13:44 +0200)]
build: link in $(WINBIND_LIBS) instead of @LIBWBCLIENT_SHARED@

This should fix some more picky makes when not building @LIBWBCLINET_SHARED@.
Moreover, we want to link against -lwbclient, not against bin/libwbclient.so,
anyways.

Michael

15 years agobuild: use $(LIBTDB_LIBS) instead of @LIBTDB_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:39:32 +0000 (13:39 +0200)]
build: use $(LIBTDB_LIBS) instead of @LIBTDB_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: use $(LIBTALLOC_LIBS) instead of @LIBTALLOC_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:37:41 +0000 (13:37 +0200)]
build: use $(LIBTALLOC_LIBS) instead of @LIBTALLOC_LIBS@ in rules.

Eliminate more potential traps for picky makes.

Michael

15 years agobuild: use $(POPT_LIBS) instad of @POPT_LIBS@ in rules.
Michael Adam [Mon, 14 Jul 2008 11:35:24 +0000 (13:35 +0200)]
build: use $(POPT_LIBS) instad of @POPT_LIBS@ in rules.

Make picky makes happier.

Michael

15 years agobuild: fix build on systems with picky make and without shared libwbclient
Michael Adam [Mon, 14 Jul 2008 11:32:19 +0000 (13:32 +0200)]
build: fix build on systems with picky make and without shared libwbclient

This produces empty lines in Makefile rules.
Replacing @WINBIND_LIBS@ by $(WINBIND_LIBS) where
WINBIND_LIBS=@WINBIND_LIBS@ should fix that.

Michael

15 years agoFix typo.
Karolin Seeger [Mon, 14 Jul 2008 14:40:36 +0000 (16:40 +0200)]
Fix typo.

retieve -> retrieve

Karolin
(cherry picked from commit 37c64130701ab13b6f34998ac17fec2d128c2e08)

15 years agoFix regression introduced with 4086ef15b395f1a536fb669af2103a33ecc14de4
Simo Sorce [Sun, 13 Jul 2008 01:28:18 +0000 (21:28 -0400)]
Fix regression introduced with 4086ef15b395f1a536fb669af2103a33ecc14de4
We must not return an error here just because we are offline.
We must instead fix the mappings to the best of our knowledge
(ie mark as mapped, expired ones, and as unmapped, unknown ones)

15 years agobuild: fix build of libaddns shared lib : it needs socket_wrapper.
Michael Adam [Fri, 11 Jul 2008 13:35:24 +0000 (15:35 +0200)]
build: fix build of libaddns shared lib : it needs socket_wrapper.

Michael
(cherry picked from commit 58bc04b31b15c36505c5ecb2d8373e9033972390)

15 years agobuild: fix build of libaddns shared lib. symbols file was missing.
Michael Adam [Fri, 11 Jul 2008 12:38:22 +0000 (14:38 +0200)]
build: fix build of libaddns shared lib. symbols file was missing.

This symbols file is checked because mksyms script currently does
not support headers without exportet symbols...

Michael
(cherry picked from commit 1fa57b47e8f8da33a5713096c187bafb3a6c5b79)

15 years agocleanup some dup code by passing the password to the wbinfo_auth*
Herb Lewis [Fri, 11 Jul 2008 04:05:30 +0000 (21:05 -0700)]
cleanup some dup code by passing the password to the wbinfo_auth*
functions

15 years agoMerge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test
Jeremy Allison [Thu, 10 Jul 2008 22:25:37 +0000 (15:25 -0700)]
Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into v3-2-test

15 years agoFix realpath() check so that it doesn't generate a core() when it fails.
Zach Loafman [Thu, 10 Jul 2008 18:45:48 +0000 (18:45 +0000)]
Fix realpath() check so that it doesn't generate a core() when it fails.

15 years agodocs: fix the specified default of "password server" - it is *, not "".
Michael Adam [Thu, 10 Jul 2008 21:49:58 +0000 (23:49 +0200)]
docs: fix the specified default of "password server" - it is *, not "".

Michael
(cherry picked from commit d7f759d302612ef9eb0bba022f3b3e1dd433f843)

15 years agoAlways set "registry shares = yes" for "include = registry"
Volker Lendecke [Tue, 3 Jun 2008 18:51:42 +0000 (20:51 +0200)]
Always set "registry shares = yes" for "include = registry"

This fixes the case where "include = registry" is set in the smb.conf text file
and *only* shares (no [global] settings) are present in the registry.

Michael, please check!

Thanks,

Volker
(cherry picked from commit 6c80362e291d8c5e748b987a583e8e32acc36354)

15 years agoloadparm: fix process_registry_shares() when there is only [global] in registry.
Michael Adam [Tue, 27 May 2008 08:59:11 +0000 (10:59 +0200)]
loadparm: fix process_registry_shares() when there is only [global] in registry.

This fixes testparm printing "Error loading services." when there is only
the global section in registry and no other service definition.

Michael
(cherry picked from commit 28d197220038b9a47af177b88a8587f865e45de5)

15 years agoloadarm: fix testparm with "config backend = registry".
Michael Adam [Mon, 26 May 2008 09:58:11 +0000 (11:58 +0200)]
loadarm: fix testparm with "config backend = registry".

Set the iServiceIndex to "-1" for starup with either config
backend (originally only for text backend). Otherwise,
process_registry_shares() will fail.

Currently, the only user of lp_load_with_registry_shares() is testparm.

Michael
(cherry picked from commit 5e2b925367241c41793b2eb7a628e9fc9f3ac8ff)

15 years agotestparm: list registry shares with testparm.
Michael Adam [Thu, 15 May 2008 00:41:05 +0000 (02:41 +0200)]
testparm: list registry shares with testparm.

I.e., use lp_load_with_registry_shares() instead of lp_load().

Michael
(cherry picked from commit 95339c0c1ecc49049f1fc176f72a1dcac639e06d)

15 years agoloadparm: add funcion lp_load_with_registry_shares().
Michael Adam [Thu, 15 May 2008 00:39:45 +0000 (02:39 +0200)]
loadparm: add funcion lp_load_with_registry_shares().

This is like lp_load(), except that it will load the
registry shares into the services aarray when registry
shares are activated.

Michael
(cherry picked from commit b387c614ba8d1d3960f6917f03f0fd433cf2b2ee)