ira/wip.git
16 years agor13286: changing target file in another branch
Gerald Carter [Wed, 1 Feb 2006 20:29:41 +0000 (20:29 +0000)]
r13286: changing target file in another branch
(This used to be commit 91384c703cadce9ae262503958dba42389b34321)

16 years agor13274: Fix for bug #3467. Not a show stopper.
Jeremy Allison [Wed, 1 Feb 2006 04:14:07 +0000 (04:14 +0000)]
r13274: Fix for bug #3467. Not a show stopper.
jason qian <jason@infrant.com> was a *fantastic*
help in tracking this down.
Jeremy.
(This used to be commit 9f4a9c70fa232047868e5d8a3f132a2dd6bfee82)

16 years agor13262: Arrgggg. Fix smbstatus and swat status to ignore
Jeremy Allison [Tue, 31 Jan 2006 21:54:24 +0000 (21:54 +0000)]
r13262: Arrgggg. Fix smbstatus and swat status to ignore
bloody placeholder share mode entries (I hate
these - I've had to add this filter code now to too
many places :-).
Jeremy.
(This used to be commit 815340e1a413f98c1c36aacc1c34041e9160d0e3)

16 years agor13260: Fix stupid bug Volker found for big-endian machines.
Jeremy Allison [Tue, 31 Jan 2006 18:34:51 +0000 (18:34 +0000)]
r13260: Fix stupid bug Volker found for big-endian machines.
Jeremy.
(This used to be commit 31903cf25d4075b8518e370b7618de41510f7995)

16 years agor13257: Fix python build with older python versions (e.g. 2.2.1) like in United ...
Lars Müller [Tue, 31 Jan 2006 10:39:45 +0000 (10:39 +0000)]
r13257: Fix python build with older python versions (e.g. 2.2.1) like in United         Linux 1 (UL) aka SuSE Linux Enterprise Server (SLES) 8.
(This used to be commit 4602cb5f53f05404f10c69b01dd8fd5ac492c5c5)

16 years agor13238: Fix from Qiao Yang <qyang@stbernard.com> to ensure we
Jeremy Allison [Mon, 30 Jan 2006 20:20:17 +0000 (20:20 +0000)]
r13238: Fix from Qiao Yang <qyang@stbernard.com> to ensure we
always update the failed time when we are adding a failed
connection.
Jeremy.
(This used to be commit 6f5af1dd413d07430ead9382422dda14acf3464d)

16 years agor13235: fixing RedHat 7.x packaging
Gerald Carter [Mon, 30 Jan 2006 19:23:32 +0000 (19:23 +0000)]
r13235: fixing RedHat 7.x packaging
(This used to be commit dcdae7f483f642605e158b405939178587971bec)

16 years agor13233: build fixes for smbmnt; remove unused variable; ready to ship 3.0.21b now
Gerald Carter [Mon, 30 Jan 2006 18:38:18 +0000 (18:38 +0000)]
r13233: build fixes for smbmnt; remove unused variable; ready to ship 3.0.21b now
(This used to be commit 51fe6bd845f33139654f641947cffeaaf8e88124)

16 years agor13232: defensive programming in an attempt to prevent crashes due to a PDC rebooting
Gerald Carter [Mon, 30 Jan 2006 17:47:24 +0000 (17:47 +0000)]
r13232: defensive programming in an attempt to prevent crashes due to a PDC rebooting
(This used to be commit 994794383361cfe5d58098ae494489fb0164e1df)

16 years agor13231: apparently strncat() is converted to strcat() on RH7.3 and similar systems...
Gerald Carter [Mon, 30 Jan 2006 17:42:42 +0000 (17:42 +0000)]
r13231: apparently strncat() is converted to strcat() on RH7.3 and similar systems.  Fix the build on those boxes
(This used to be commit 0b8ed8136b5c5b9b7bb5615dc8dc27eec7c49506)

16 years agor13229: * fix bad comparison caught by the AIX compiler in wbinfo code
Gerald Carter [Mon, 30 Jan 2006 13:32:41 +0000 (13:32 +0000)]
r13229: * fix bad comparison caught by the AIX compiler in wbinfo code
* update output from mkversion.sh to include the SAMBA_VENDOR_PATCH
(This used to be commit 485f0370942880a71095da5096e414b28193b150)

16 years agor13224: better to cast the return too
Simo Sorce [Sun, 29 Jan 2006 18:43:52 +0000 (18:43 +0000)]
r13224: better to cast the return too
(This used to be commit c068df483f44a23ad813acd10d583be863128382)

16 years agor13222: Never assume mode_t is of type int.
Simo Sorce [Sun, 29 Jan 2006 18:22:39 +0000 (18:22 +0000)]
r13222: Never assume mode_t is of type int.
We were trashing the stack on machines that define mode_t as uint16_t
(This used to be commit 6c15af31bcee1e82578b61cae10423b37c285f10)

16 years agor13216: r12422@cabra: derrell | 2006-01-28 23:57:35 -0500
Derrell Lipman [Sun, 29 Jan 2006 04:57:42 +0000 (04:57 +0000)]
r13216:  r12422@cabra:  derrell | 2006-01-28 23:57:35 -0500
 Fix cli_setpathinfo() to actually do what it's supposed to.

 Also, get rid of some apparently drug-induced code to deal with create time
 which isn't being manipulated anyway.
(This used to be commit aa25dc1248b15e8e1b39cf8a98496e5aba475c4a)

16 years agor13214: r12420@cabra: derrell | 2006-01-28 19:10:58 -0500
Derrell Lipman [Sun, 29 Jan 2006 00:11:34 +0000 (00:11 +0000)]
r13214:  r12420@cabra:  derrell | 2006-01-28 19:10:58 -0500
 This should fix bug #3446.

 - The authentication domain provided an an SMB URL was being ignored.  This
   patch fixes that.

 - There were a number of places where string copies were not being confirmed to
   be properly null-terminated.  Now, all string copies in libsmbclient.c are
   properly null-terminated.
(This used to be commit 5fbc2fbb461f02ad6c889de2ce9929c605a44e24)

16 years agor13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500
Derrell Lipman [Sat, 28 Jan 2006 22:53:04 +0000 (22:53 +0000)]
r13212:  r12414@cabra:  derrell | 2006-01-28 17:52:17 -0500
 lp_load() could not be called multiple times to modify parameter settings based
 on reading from multiple configuration settings.  Each time, it initialized all
 of the settings back to their defaults before reading the specified
 configuration file.

 This patch adds a parameter to lp_load() specifying whether the settings should
 be initialized.  It does, however, still force the settings to be initialized
 the first time, even if the request was to not initialize them.  (Not doing so
 could wreak havoc due to uninitialized values.)
(This used to be commit f2a24de769d1b2266e576597c57a8e3b1e2a2b51)

16 years agor13211: Fix remote password changing if password must change is set
Volker Lendecke [Sat, 28 Jan 2006 22:49:25 +0000 (22:49 +0000)]
r13211: Fix remote password changing if password must change is set

The problem was that the ntlmssp bind silently failed in that case, we have to
do it anonymously. Or does anybody have a better idea?

Give a better error message if something else is wrong with the account.

Volker
(This used to be commit 0e24c701ce3755d71de7fdccb9f4564b381bf996)

16 years agor13209: Make smbpasswd -a work again if passdb did not exist.
Volker Lendecke [Sat, 28 Jan 2006 17:08:24 +0000 (17:08 +0000)]
r13209: Make smbpasswd -a work again if passdb did not exist.

Volker
(This used to be commit e747ea7250b3ff19aee49072a2cf95840ff50b85)

16 years agor13202: Fix the build for --with-aio-support. Sorry.
Volker Lendecke [Sat, 28 Jan 2006 11:30:43 +0000 (11:30 +0000)]
r13202: Fix the build for --with-aio-support. Sorry.

Jeremy, configure.in decides whether aio support works quite early in the
sequence of checks. Wouldn't it be better to only use aio support if really
all necessary functions actually are around?

Volker
(This used to be commit 246b5b43566f15732091ec9a775b864399f9418d)

16 years agor13198: Fix issues exposed by Jerry's testing on 64-bit Solaris
Jeremy Allison [Fri, 27 Jan 2006 23:30:30 +0000 (23:30 +0000)]
r13198: Fix issues exposed by Jerry's testing on 64-bit Solaris
(I hope). Separate 3.0.21b patch sent to Jerry.
Jeremy.
(This used to be commit 837e7ea7e40cedc6b01e023445feb4a90c4bf8b9)

16 years agor13197: Add -k switch to dump the data of a single key.
Lars Müller [Fri, 27 Jan 2006 21:49:01 +0000 (21:49 +0000)]
r13197: Add -k switch to dump the data of a single key.
(This used to be commit 23503ff45f2a377728bc5ebb1e6db2755bb5ca2b)

16 years agor13194: Don't do extra memcpy's unless we're asked to.
Jeremy Allison [Fri, 27 Jan 2006 19:59:48 +0000 (19:59 +0000)]
r13194: Don't do extra memcpy's unless we're asked to.
Jeremy.
(This used to be commit f93e1e75563679dc07958168b283dfc0eb2de5b0)

16 years agor13192: Fix up alignment issues when printing share mode
Jeremy Allison [Fri, 27 Jan 2006 19:54:39 +0000 (19:54 +0000)]
r13192: Fix up alignment issues when printing share mode
entries. Add paranioa to debug so we know when an
entry is unused.
Jeremy.
(This used to be commit fa5fab313e3728ff49c00ca1097242039506f83e)

16 years agor13190: Fix #3458 from Andriy Gapon <avg@icyb.net.ua>. Don't
Jeremy Allison [Fri, 27 Jan 2006 19:24:37 +0000 (19:24 +0000)]
r13190: Fix #3458 from Andriy Gapon <avg@icyb.net.ua>. Don't
access free'd memory.
Jerry please pick up for 3.0.21b !
Jeremy.
(This used to be commit c0ba64297a00d75cd537693425c6b544e70578c1)

16 years agor13187: IBM Tivoli Directory Server schema updates from John Janosik
Jim McDonough [Fri, 27 Jan 2006 15:14:55 +0000 (15:14 +0000)]
r13187: IBM Tivoli Directory Server schema updates from John Janosik
<jpjanosi@us.ibm.com>
(This used to be commit d45cc5e4f38bd1aa69d5c3ae8d19e2ea98976fac)

16 years agor13176: Fix show-stopper bug for 3.0.21b where 4 leg NTLMSSP SPNEGO
Jeremy Allison [Fri, 27 Jan 2006 02:35:08 +0000 (02:35 +0000)]
r13176: Fix show-stopper bug for 3.0.21b where 4 leg NTLMSSP SPNEGO
auth was not generating the correct auth header on the 4th
packet. This may fix a lot of Windows client complaints and
is essential for release.
Jeremy.
(This used to be commit 48dd8c732b890e3fd3d8e80ace765487601cfb26)

16 years agor13175: Actually make adding a new user into an empty pdbtdb
Jeremy Allison [Fri, 27 Jan 2006 00:09:03 +0000 (00:09 +0000)]
r13175: Actually make adding a new user into an empty pdbtdb
file create the file.
Jeremy.
(This used to be commit 31b3201f537220ec82d6fecbb4c457bfe3dbb9c9)

16 years agor13172: Fix incorrect error message when new tdb not created correctly.
Jeremy Allison [Thu, 26 Jan 2006 23:55:26 +0000 (23:55 +0000)]
r13172: Fix incorrect error message when new tdb not created correctly.
Jeremy.
(This used to be commit e5f19ad5ac1b728de4ca5a6c37c0d79b0752f536)

16 years agor13162: Allow to set the flags for a ds_enum_domain_trusts query in rpcclient.
Günther Deschner [Thu, 26 Jan 2006 12:04:43 +0000 (12:04 +0000)]
r13162: Allow to set the flags for a ds_enum_domain_trusts query in rpcclient.

Guenther
(This used to be commit e52b77b0a4e29387d2333a340868e839683df729)

16 years agor13148: Fix bug: #3413
Simo Sorce [Thu, 26 Jan 2006 00:14:25 +0000 (00:14 +0000)]
r13148: Fix bug: #3413
Check that ldap admin dn is defined in smb.conf before
setting the ldap password in secrets.tdb

Based on patch by William Jojo <jojowil@hvcc.edu>

Simo.
(This used to be commit c2c004a620ecbd895786dc6f16fb6a616f354a0a)

16 years agor13147: Raise creds_server_step fail log messages to debug level 2.
Jeremy Allison [Wed, 25 Jan 2006 23:00:07 +0000 (23:00 +0000)]
r13147: Raise creds_server_step fail log messages to debug level 2.
These can happen in normal operation (I think - not 100%
sure) and don't want to alarm admins. Jerry please add this
to 3.0.21b.
Jeremy.
(This used to be commit 47178b1b5ad06905f345a0f6b6267701d8aefddb)

16 years agor13140: Fix swat - make sure it can list running services (ensure loopback_ip)
Jeremy Allison [Wed, 25 Jan 2006 21:58:06 +0000 (21:58 +0000)]
r13140: Fix swat - make sure it can list running services (ensure loopback_ip)
is defined. Jerry - this needs to be in 3.0.21b.
Jeremy.
(This used to be commit 417ef5bffaefee698cbea4b06aff691f01ac56d1)

16 years agor13138: old fix I forgot to commit
Simo Sorce [Wed, 25 Jan 2006 21:29:36 +0000 (21:29 +0000)]
r13138: old fix I forgot to commit
need to access info when using the ldap backend
(This used to be commit 80c0625667f28253e9b6f1ac1a5c88aa8261f9b0)

16 years agor13137: make cleare where long ifdefs ends
Simo Sorce [Wed, 25 Jan 2006 21:25:25 +0000 (21:25 +0000)]
r13137: make cleare where long ifdefs ends
(This used to be commit 58e48fef450f71ac15219f73897801c5a66a2c44)

16 years agor13136: Fix handling user sid and user gid
Simo Sorce [Wed, 25 Jan 2006 21:24:51 +0000 (21:24 +0000)]
r13136: Fix handling user sid and user gid
(This used to be commit 65d5abda68fa0cacbff489ea1e4bfeffd58c83cb)

16 years agor13133: patch from Makr Proehl <m.proehl@science-computing.de> for dumping server...
Gerald Carter [Wed, 25 Jan 2006 15:43:15 +0000 (15:43 +0000)]
r13133: patch from Makr Proehl <m.proehl@science-computing.de> for dumping server role when calling 'testparm -s' (BUG 1336)
(This used to be commit a4c6eceaaeeeaa6f0af2ae0689631710d36dbd59)

16 years agor13132: Old fix from Lars
Simo Sorce [Wed, 25 Jan 2006 15:12:18 +0000 (15:12 +0000)]
r13132: Old fix from Lars
tx
(This used to be commit 4488e1debb00f6e3b53c71826a91bae001250902)

16 years agor13127: more spec file fixes for RHEL
Gerald Carter [Wed, 25 Jan 2006 05:27:23 +0000 (05:27 +0000)]
r13127: more spec file fixes for RHEL
(This used to be commit 8217809d86567fb4f8eb57a4d634b21c3a4c67e5)

16 years agor13125: Very well spotted crash bug fix for #3343 from
Jeremy Allison [Wed, 25 Jan 2006 05:04:08 +0000 (05:04 +0000)]
r13125: Very well spotted crash bug fix for #3343 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>
Jerry please pick this up for 3.0.21b.
Jeremy.
(This used to be commit 3f5860b8fb37e854ccf5d9a80848ef759154f88c)

16 years agor13124: working on RHEL/Fedora packaging for 64-bit platforms and general cleanup
Gerald Carter [Wed, 25 Jan 2006 04:56:32 +0000 (04:56 +0000)]
r13124: working on RHEL/Fedora packaging for 64-bit platforms and general cleanup
(This used to be commit 4a8e457846a49647c751ae09365539acb5c02ce2)

16 years agor13119: Fix for #1779 from William Jojo <jojowil@hvcc.edu>
Jeremy Allison [Tue, 24 Jan 2006 20:15:08 +0000 (20:15 +0000)]
r13119: Fix for #1779 from William Jojo <jojowil@hvcc.edu>
Jeremy.
(This used to be commit 103cac7dd314117b15e27fd263a64beeb36ed6e6)

16 years agor13110: remove an invalid debug message about call get_share_mode_lock() with a NULL...
Gerald Carter [Tue, 24 Jan 2006 17:27:30 +0000 (17:27 +0000)]
r13110: remove an invalid debug message about call get_share_mode_lock() with a NULL service path and fname (we do it all the time internally)
(This used to be commit e1f75ea63780f4a1661f19554d18bbd73b069c1b)

16 years agor13095: Fix warnings assigning int to a size_t.
Jeremy Allison [Mon, 23 Jan 2006 23:19:31 +0000 (23:19 +0000)]
r13095: Fix warnings assigning int to a size_t.
Jeremy.
(This used to be commit 1ca4abffd04bcc46b61acdc12444f3e2aad0afed)

16 years agor13093: adding vendor patch level string as announced on samba-technical ml
Gerald Carter [Mon, 23 Jan 2006 22:02:52 +0000 (22:02 +0000)]
r13093: adding vendor patch level string as announced on samba-technical ml
(This used to be commit d40f06018b9197c35a10cc9ab284dd596244f47b)

16 years agor13091: Fix gcc warning about using '0' with %s.
Jeremy Allison [Mon, 23 Jan 2006 21:57:58 +0000 (21:57 +0000)]
r13091: Fix gcc warning about using '0' with %s.
Jeremy.
(This used to be commit 5f5f87584fec7fdeefeb54de0cb72ae5b1ac9dd4)

16 years agor13089: quick fix to work around building ilbnss_winbind.so on SOlaris when --enable...
Gerald Carter [Mon, 23 Jan 2006 21:57:36 +0000 (21:57 +0000)]
r13089: quick fix to work around building ilbnss_winbind.so on SOlaris when --enable-developer is specified
(This used to be commit 1c7787e4a11c530cec93fa210c97fbe4b38f333a)

16 years agor13086: hooking max connections into 'add share' as well (although the WinXP UI doesn...
Gerald Carter [Mon, 23 Jan 2006 14:47:55 +0000 (14:47 +0000)]
r13086: hooking max connections into 'add share' as well (although the WinXP UI doesn't give you a way to set the value on add
(This used to be commit e6afdf1df568921c82ce85fdce9456674c3a9a75)

16 years agor13085: hook the max connections spin box in the share properties MMC plugin
Gerald Carter [Mon, 23 Jan 2006 14:34:26 +0000 (14:34 +0000)]
r13085: hook the max connections spin box in the share properties MMC plugin
dialog to the 'max connections' smb.conf parameter.  Also added the max
uses int from the SHARE_INFO_2 structure to the 'modify share command'
(This used to be commit af68748baae6d2e5ef850c16622d5424fd303ee7)

16 years agor13083: patch suggested by Adam Nielsen for better smbstatus formatting
Gerald Carter [Mon, 23 Jan 2006 14:26:48 +0000 (14:26 +0000)]
r13083: patch suggested by Adam Nielsen for better smbstatus formatting
(This used to be commit ef69cf96145516ddca44fdb4faddfead26591345)

16 years agor13082: revert an accidentally commited patch (still in progress)
Gerald Carter [Mon, 23 Jan 2006 14:04:40 +0000 (14:04 +0000)]
r13082: revert an accidentally commited patch (still in progress)
(This used to be commit e43775fb3156bf29e4e412f01ad2d731aa866323)

16 years agor13081: correct fix for the segv in nmbd caused by a double free on namerec.
Gerald Carter [Mon, 23 Jan 2006 14:02:17 +0000 (14:02 +0000)]
r13081: correct fix for the segv in nmbd caused by a double free on namerec.
(This used to be commit c908dbc4b260bac72cbc6d25f4728359a6ec8259)

16 years agor13072: Fix segfault in vfstest and smbtorture.
Deryck Hodge [Mon, 23 Jan 2006 00:19:45 +0000 (00:19 +0000)]
r13072: Fix segfault in vfstest and smbtorture.

deryck
(This used to be commit 0fdb062f35b4c4b19bf4122d48a0b4edacfe74ca)

16 years agor13058: Add %w macro for the winbind seperator which allows us for example
Lars Müller [Fri, 20 Jan 2006 20:22:23 +0000 (20:22 +0000)]
r13058: Add %w macro for the winbind seperator which allows us for example
        valid users = %S, %D%w%S
(This used to be commit 6ff25eb8402ed006ac5e081f64bd9e074fe22295)

16 years agor13048: trying to fix the confusion over packaging platforms
Gerald Carter [Fri, 20 Jan 2006 01:11:26 +0000 (01:11 +0000)]
r13048: trying to fix the confusion over packaging platforms
(This used to be commit b99ef469d1057a8e856f3818f5fd0f25db70d4ee)

16 years agor13047: specfile updates from John T.
Gerald Carter [Fri, 20 Jan 2006 01:09:44 +0000 (01:09 +0000)]
r13047: specfile updates from John T.
(This used to be commit bec01ad3d689766df499ee489d4f4c2f8ba57fdd)

16 years agor13042: Fix for bug #3248 Stefan Burkei <stefan@burkei.de>.
Jeremy Allison [Thu, 19 Jan 2006 22:26:26 +0000 (22:26 +0000)]
r13042: Fix for bug #3248 Stefan Burkei <stefan@burkei.de>.
When doing auth_crap authentication use the client
given workstation name not our own.
Jeremy.
(This used to be commit a2bb2e3e819c56b710885fc8206632e22a6ec0ce)

16 years agor13028: Fix for #3419 - vfs_full_audit *never* worked
Jeremy Allison [Thu, 19 Jan 2006 00:34:48 +0000 (00:34 +0000)]
r13028: Fix for #3419 - vfs_full_audit *never* worked
correctly. Static variables were used !
Jeremy.
(This used to be commit 2ab5aeca895476869f0b50e513a77c9f2558fc56)

16 years agor13027: Support file change notifications from FAM.
James Peach [Thu, 19 Jan 2006 00:30:16 +0000 (00:30 +0000)]
r13027: Support file change notifications from FAM.
(This used to be commit 652b511ff24ce41c7745a0e00363e619e5027828)

16 years agor13024: Add is_null_sid.
Günther Deschner [Thu, 19 Jan 2006 00:03:07 +0000 (00:03 +0000)]
r13024: Add is_null_sid.

GUenther
(This used to be commit 3a6e41a0cb2872a656ea79c8d4fc4b8bce436492)

16 years agor13023: Ensure we notice if we exit due to guest user setup fail.
Jeremy Allison [Wed, 18 Jan 2006 23:42:29 +0000 (23:42 +0000)]
r13023: Ensure we notice if we exit due to guest user setup fail.
Jeremy.
(This used to be commit f8d09d111ccd8c2805245662e01cd99dba1d9292)

16 years agor13020: Prevent cli_krb5_get_ticket of getting into an infite loop. This whole
Günther Deschner [Wed, 18 Jan 2006 22:40:00 +0000 (22:40 +0000)]
r13020: Prevent cli_krb5_get_ticket of getting into an infite loop. This whole
area of code needs to be reworked later on.

Guenther
(This used to be commit 088abfcdd1d6b28409d4b2917bc2aeb5d371f675)

16 years agor13015: Make logic much clearer. From jpeach.
Jeremy Allison [Wed, 18 Jan 2006 20:45:44 +0000 (20:45 +0000)]
r13015: Make logic much clearer. From jpeach.
Jeremy.
(This used to be commit d9b6bdd84a16c8af44049748a0fc47844f597919)

16 years agor13012: Fix #3421 - it turns out krb5_kt_get_entry() on MIT
Jeremy Allison [Wed, 18 Jan 2006 19:25:18 +0000 (19:25 +0000)]
r13012: Fix #3421 - it turns out krb5_kt_get_entry() on MIT
does an implicit open/read/close and blows away an
open keytab handle - so make sure we use a new
handle.
Wonderful analysis from Luke <ldeller@xplantechnology.com>
helped fix this.
Jeremy.
(This used to be commit 9d2f2385ad68cbe11bdfb82b5f2d016626f6e679)

16 years agor12994: Fix cut&paste error, thanks to Björn Jachke <bj@sernet.de>
Volker Lendecke [Wed, 18 Jan 2006 10:25:04 +0000 (10:25 +0000)]
r12994: Fix cut&paste error, thanks to Björn Jachke <bj@sernet.de>
(This used to be commit 8176f5a2821e897d8ff0b127450c918a2d82b70a)

16 years agor12993: Ouch...
Volker Lendecke [Wed, 18 Jan 2006 10:05:55 +0000 (10:05 +0000)]
r12993: Ouch...
(This used to be commit de0347cd706c36a593dba9e46c9106b8215fe656)

16 years agor12991: some fixes for BUG 3331 - solaris packaging
Gerald Carter [Wed, 18 Jan 2006 04:56:28 +0000 (04:56 +0000)]
r12991: some fixes for BUG 3331 - solaris packaging
(This used to be commit b334052108f58cc71898ec0b4b745da1f9d53bec)

16 years agor12990: BUG 3329: patch from David May <mayd@cygnus.uwa.edu.au> for Solaris shell...
Gerald Carter [Wed, 18 Jan 2006 04:44:59 +0000 (04:44 +0000)]
r12990: BUG 3329: patch from David May <mayd@cygnus.uwa.edu.au> for Solaris shell script portability issues in 'make test'
(This used to be commit 19339a9510467b4b2cf3889bc6a08563cdc940f4)

16 years agor12986: Use d_fprintf(stderr, ...) for any error message in net.
Lars Müller [Tue, 17 Jan 2006 21:22:00 +0000 (21:22 +0000)]
r12986: Use d_fprintf(stderr, ...) for any error message in net.

All 'usage' messages are still printed to stdout.

Fix some compiler warnings for system() calls where we didn't used the
return code.  Add appropriate error messages and return with the error
code we got from system() or NT_STATUS_UNSUCCESSFUL.
(This used to be commit f650e3bdafc4c6bcd7eb4bcf8b6b885b979919eb)

16 years agor12967: BUG 1061: don't corrupt the file name when reading an lmhosts file (-H) in...
Gerald Carter [Mon, 16 Jan 2006 18:03:56 +0000 (18:03 +0000)]
r12967: BUG 1061: don't corrupt the file name when reading an lmhosts file (-H) in nmbd.  Patch from    Andrew Esh <Andrew_Esh@adaptec.com>
(This used to be commit 14160c496112e06e4ea0d0a5aa5bad2b58e90601)

16 years agor12964: Rewind rem_backend in the case we have to workaround the idmap_ prefix.
Lars Müller [Mon, 16 Jan 2006 17:21:47 +0000 (17:21 +0000)]
r12964: Rewind rem_backend in the case we have to workaround the idmap_ prefix.
Else SAFE_FREE seg faults.  Thanks to Günther for pointing me at this.

I've implemented in in this was as we should announce to remove the
idmap_ strip stuff after some time at all.
(This used to be commit 6a5bf399a59b4f07a1560d534629cb14e20b5d3f)

16 years agor12956: Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>
Jeremy Allison [Mon, 16 Jan 2006 05:47:39 +0000 (05:47 +0000)]
r12956: Fix for bug #3035 from SATOH Fumiyasu <fumiyas@miraclelinux.com>

On a Windows share, a file with read-only dosmode can be opened with
DELETE_ACCESS. But on a Samba share (delete readonly = no), it
fails with NT_STATUS_CANNOT_DELETE error.

This semantic causes a problem that a user can not
rename a file with read-only dosmode on a Samba share
from a Windows command prompt (i.e. cmd.exe, but can rename
from Windows Explorer).

Jeremy.
(This used to be commit dd185c7aa8de156dab58b065bf73905b2a29f40d)

16 years agor12953: Support the TCP_FASTACK socket option if it is available. Note that this...
James Peach [Sun, 15 Jan 2006 23:13:47 +0000 (23:13 +0000)]
r12953: Support the TCP_FASTACK socket option if it is available. Note that this will
not acutally help, but it is good to be complete.
(This used to be commit 2163e4b6b453ebf1fefc64e74890300108bbf8f6)

16 years agor12951: Tell the MIPSPro compiler to push DEBUG calls out of line.
James Peach [Sun, 15 Jan 2006 23:09:17 +0000 (23:09 +0000)]
r12951: Tell the MIPSPro compiler to push DEBUG calls out of line.
(This used to be commit a346059912c05d2b4a27892571d6e89f44907d5c)

16 years agor12946: fix a segfault in nmbd when 'wins support = yes' caused by double free
Gerald Carter [Sun, 15 Jan 2006 12:30:36 +0000 (12:30 +0000)]
r12946: fix a segfault in nmbd when 'wins support = yes' caused by double free
(This used to be commit c11372f4ec49634e2ae2e6b9ddf4d2b72976f9c5)

16 years agor12938: Fix for #3408 (change password fails) from William Jojo <jojowil@hvcc.edu>.
Jeremy Allison [Sat, 14 Jan 2006 20:25:51 +0000 (20:25 +0000)]
r12938: Fix for #3408 (change password fails) from William Jojo <jojowil@hvcc.edu>.
Jeremy.
(This used to be commit 5fc0ef80876a666c285585f8b55e1909e8f2e0bf)

16 years agor12936: Fix bug #3264.
Lars Müller [Sat, 14 Jan 2006 15:25:33 +0000 (15:25 +0000)]
r12936: Fix bug #3264.

If we detect a leading 'idmap_' for the idmap backend setting we strip
this and inform about the deprecated config with DEBUG 0.

I'm not sure if we should set a TTL of one year or five additional
releases from now for this code.

This is required for the changes Günther made as the first step to solve
bug #3264.  With this fix we can even run with an old config.  This is
very important as we else will break existing configurations with an
update.
(This used to be commit 34c7d8c0694369760340843318f873e26546cb2e)

16 years agor12935: After discussion with Volker fix bug #3397 using a variant of the patch by...
Alexander Bokovoy [Sat, 14 Jan 2006 12:37:25 +0000 (12:37 +0000)]
r12935: After discussion with Volker fix bug #3397 using a variant of the patch by Alex Deiter (tiamat@komi.mts.ru).
Introduces level 9 of getuserinfo and allows to successfully install MS SMS2003
on a member of a Samba domain. Also added support for this level in rpcclient.

The code for infolevel 9 is modelled upon Samba-TNG by Alex Deiter.

Jerry, we need this in 3.0.21b.
(This used to be commit 93461646ce2ad6e2f8b11d40ce98722d56a83b43)

16 years agor12922: Fix typo.
Jeremy Allison [Fri, 13 Jan 2006 23:54:12 +0000 (23:54 +0000)]
r12922: Fix typo.
Jeremy.
(This used to be commit 1c32b352da270370e65d25939fdc56c2a415190f)

16 years agor12920: Fix for #3401 from Andrew Bartlett. Original fix from
Jeremy Allison [Fri, 13 Jan 2006 23:23:09 +0000 (23:23 +0000)]
r12920: Fix for #3401 from Andrew Bartlett. Original fix from
Yau Lam Yiu <yiuext@cs.ust.hk>.
Jeremy.
(This used to be commit 4776101107923e425a153fe0457dbf61f4c99935)

16 years agor12916: use rpcstr_pull() instead of unistr_to_ascii() when validating share names
Gerald Carter [Fri, 13 Jan 2006 21:22:25 +0000 (21:22 +0000)]
r12916: use rpcstr_pull() instead of unistr_to_ascii() when validating share names
(This used to be commit c08bc30698eac2f3f5dd8257b4fd7c3e23e6de39)

16 years agor12915: protect against changing the SCM security descriptor
Gerald Carter [Fri, 13 Jan 2006 20:26:59 +0000 (20:26 +0000)]
r12915: protect against changing the SCM security descriptor
(This used to be commit 5842da99681c15437c11e9925dec24c8c0e3708a)

16 years agor12914: adding query/set ops for security descriptors on services.
Gerald Carter [Fri, 13 Jan 2006 20:24:50 +0000 (20:24 +0000)]
r12914: adding query/set ops for security descriptors on services.
(This used to be commit cefd2d7cb6140b068d66e2383e9acfa4c3c4b4c7)

16 years agor12913: missed merge to fix BUG 3391; ensure we can lookup account policies
Gerald Carter [Fri, 13 Jan 2006 19:38:09 +0000 (19:38 +0000)]
r12913: missed merge to fix BUG 3391; ensure we can lookup account policies
(This used to be commit 77575c64e4e961f37ccf5b2dd17e41c74678ea45)

16 years agor12912: patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access...
Gerald Carter [Fri, 13 Jan 2006 18:45:30 +0000 (18:45 +0000)]
r12912: patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix bad access to gencache.tdb after fork() in smbmount
(This used to be commit 68399ce04ca4509d51950d2d7b1ed817e82bf17c)

16 years agor12904: Fix #3264, allow to load idmap_ad with "idmap backend = ad".
Günther Deschner [Fri, 13 Jan 2006 14:55:08 +0000 (14:55 +0000)]
r12904: Fix #3264, allow to load idmap_ad with "idmap backend = ad".

Finally cleanup the way idmap modules are build and loaded, idmap_rid
now will have to be loaded without prefix, just "rid".

Guenther
(This used to be commit a77e02177dcefaaccf863aa8d237ea35a2ec52d1)

16 years agor12901: Fix netfileenum returning WERR_BUF_TOO_SMALL.
Günther Deschner [Fri, 13 Jan 2006 11:19:59 +0000 (11:19 +0000)]
r12901: Fix netfileenum returning WERR_BUF_TOO_SMALL.

Guenther
(This used to be commit b8ff07b04afe82bdce5d1f69513ce67ecde5b030)

16 years agor12900: Merge from trunk:
Günther Deschner [Fri, 13 Jan 2006 11:11:23 +0000 (11:11 +0000)]
r12900: Merge from trunk:

Correctly handle the case where users logon with an expired password.

In that case pam_sm_authenticate has to return PAM_SUCESS instead of
PAM_NEW_AUTHTOK_REQD or PAM_AUTHTOK_EXPIRED and pam_sm_acct_mgmt has to
take care of requesting an immediate password change. (see the Linux PAM
documentation).

Fixes Bugzilla #1524, #3205. Tested with login, sshd, kdm and gdm on
Linux.

Thanks to Scott Barker <Scott_Barker@mtechIT.com>.

Guenther
(This used to be commit 4cb662ffd76dbe30003c618c94ccf6ebd4afb48c)

16 years agor12889: BUG 3380: fix crash when changing printer drivers caused by accessing a previ...
Gerald Carter [Fri, 13 Jan 2006 03:10:50 +0000 (03:10 +0000)]
r12889: BUG 3380: fix crash when changing printer drivers caused by accessing a previously freed pointer
(This used to be commit bcce3b69f83f52deb308d8c2f5165000468bd552)

16 years agor12885: Oops. Missed last part of correct patch for #3348.
Jeremy Allison [Fri, 13 Jan 2006 02:54:46 +0000 (02:54 +0000)]
r12885: Oops. Missed last part of correct patch for #3348.
Caught by Samba4 oplock torture tester.
Jeremy.
(This used to be commit c2476b2f75f6521700107a46028f54110083aa52)

16 years agor12878: Don't use non-static array initialisers.
James Peach [Fri, 13 Jan 2006 00:07:54 +0000 (00:07 +0000)]
r12878: Don't use non-static array initialisers.
(This used to be commit 95b231f0285c65bcdc62cd453cea634f9f5e7f91)

16 years agor12877: Stop passing structs around in smb messages, instead
Jeremy Allison [Thu, 12 Jan 2006 22:17:54 +0000 (22:17 +0000)]
r12877: Stop passing structs around in smb messages, instead
always linearize into little-endian. Should fix all
Solaris issues with this, plus provide a cleaner base
moving forward for cluster-aware Samba where smbd's
can communicate across different compilers/architectures
(eventually these message will have to go cross-machine).
Jeremy.
(This used to be commit d01824b78576a034428e1cef73868d1169057991)

16 years agor12871: Merge Volkers rev 12667 from trunk as his analysis hit the nail on the
Lars Müller [Thu, 12 Jan 2006 18:06:05 +0000 (18:06 +0000)]
r12871: Merge Volkers rev 12667 from trunk as his analysis hit the nail on the
head.

Volker: Thanks for poking me last week.
(This used to be commit 9a8e1c8b4c302a8e8a4a39b8ec8df2536acfebe2)

16 years agor12870: fixing net rpc registry enumerate from overwritnig the open subkey handle
Gerald Carter [Thu, 12 Jan 2006 17:37:25 +0000 (17:37 +0000)]
r12870: fixing net rpc registry enumerate from overwritnig the open subkey handle
(This used to be commit cc2e7052bd05a15f43268ce87dc29506bb5bb5bf)

16 years agor12855: Remove erroneous commenting out of valgrind fix.
Jeremy Allison [Wed, 11 Jan 2006 20:23:02 +0000 (20:23 +0000)]
r12855: Remove erroneous commenting out of valgrind fix.
Jeremy.
(This used to be commit b76c7b613282dc89c54faf3e7cef98f7651c5a9d)

16 years agor12853: Fix segfault in "net rpc vampire|samdump" (Bugzilla #3390).
Günther Deschner [Wed, 11 Jan 2006 19:18:40 +0000 (19:18 +0000)]
r12853: Fix segfault in "net rpc vampire|samdump" (Bugzilla #3390).

The session key, after beeing set, was zeroed later on by the prs_init
in the CLI_DO_RPC macro.

Guenther
(This used to be commit eaaeaa767e86151886964dcdd9f3186f0b31ed53)

16 years agor12852: r12150@cabra: derrell | 2006-01-11 13:21:14 -0500
Derrell Lipman [Wed, 11 Jan 2006 18:22:06 +0000 (18:22 +0000)]
r12852:  r12150@cabra:  derrell | 2006-01-11 13:21:14 -0500
 Although RTLD_NEXT was not working properly a number of years ago, it seems to be now.  Replace dlopen(/lib/libc...) with direct use of RTLD_NEXT
(This used to be commit 2b4866500640891fcb1ca7b24997df17f1b077cc)

16 years agor12840: Add -W to smbpasswd. Thanks to William Jojo <jojowil@hvcc.edu>.
Volker Lendecke [Wed, 11 Jan 2006 12:09:30 +0000 (12:09 +0000)]
r12840: Add -W to smbpasswd. Thanks to William Jojo <jojowil@hvcc.edu>.

Volker
(This used to be commit 2942f3594ba39748dca0238f1e1a5c744a7afffb)

16 years agor12839: - apply changes from svn r4963 also for VFS configure - KRB5_CONFIG should not
Volker Lendecke [Wed, 11 Jan 2006 12:00:59 +0000 (12:00 +0000)]
r12839: - apply changes from svn r4963 also for VFS configure - KRB5_CONFIG should not
  be used - rename it to KRB5CONFIG

Thanks to Björn Jacke <bj@sernet.de>

Volker
(This used to be commit 9c44fef5bec76d383d25b73ecc01dc1fc25b3f20)

16 years agor12837: - configure check for Tru64 EA functions (not yet implemented)
Volker Lendecke [Wed, 11 Jan 2006 10:21:23 +0000 (10:21 +0000)]
r12837: - configure check for Tru64 EA functions (not yet implemented)
- find Tru64 AIO lib in configure

Thanks to Björn Jacke <bj@sernet.de>

Volker
(This used to be commit 044dc331739d4a1678bbf6347df9725f709f5be3)

16 years agor12802: Fix for bugzilla #3389 from William Jojo. This fixes failures on AIX in
Tim Potter [Mon, 9 Jan 2006 21:58:40 +0000 (21:58 +0000)]
r12802: Fix for bugzilla #3389 from William Jojo.  This fixes failures on AIX in
linking smbd when the symbol table for ld exceeds 65536 bytes.
(This used to be commit 679fc459357d3ddfac1786726e4d2ccdada0b05f)