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.
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
Jeremy Allison [Wed, 18 Jan 2006 20:45:44 +0000 (20:45 +0000)]
r13015: Make logic much clearer. From jpeach.
Jeremy.
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.
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>
Volker Lendecke [Wed, 18 Jan 2006 10:05:55 +0000 (10:05 +0000)]
r12993: Ouch...
Gerald Carter [Wed, 18 Jan 2006 04:56:28 +0000 (04:56 +0000)]
r12991: some fixes for BUG 3331 - solaris packaging
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'
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.
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>
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.
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.
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.
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.
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
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.
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.
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.
Jeremy Allison [Fri, 13 Jan 2006 23:54:12 +0000 (23:54 +0000)]
r12922: Fix typo.
Jeremy.
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.
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
Gerald Carter [Fri, 13 Jan 2006 20:26:59 +0000 (20:26 +0000)]
r12915: protect against changing the SCM security descriptor
Gerald Carter [Fri, 13 Jan 2006 20:24:50 +0000 (20:24 +0000)]
r12914: adding query/set ops for security descriptors on services.
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
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
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
Günther Deschner [Fri, 13 Jan 2006 11:19:59 +0000 (11:19 +0000)]
r12901: Fix netfileenum returning WERR_BUF_TOO_SMALL.
Guenther
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
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
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.
James Peach [Fri, 13 Jan 2006 00:07:54 +0000 (00:07 +0000)]
r12878: Don't use non-static array initialisers.
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.
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.
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
Jeremy Allison [Wed, 11 Jan 2006 20:23:02 +0000 (20:23 +0000)]
r12855: Remove erroneous commenting out of valgrind fix.
Jeremy.
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
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
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
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
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
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.
Gerald Carter [Mon, 9 Jan 2006 15:54:16 +0000 (15:54 +0000)]
r12794: BUG 3340: patch from William JoJo <jojowil@hvcc.edu> to fix automatic inclusion of aio support on AIX
Günther Deschner [Mon, 9 Jan 2006 12:59:41 +0000 (12:59 +0000)]
r12788: Since we have agreed on the case of winbindd names, we can store a
sid_to_name lookup result already after doing a sucessfull name_to_sid
lookup.
Guenther
Günther Deschner [Mon, 9 Jan 2006 12:51:57 +0000 (12:51 +0000)]
r12787: Revert last commit that removed our logic of memorizing negative
name_to_sid lookups in the cache.
Guenther
Volker Lendecke [Sun, 8 Jan 2006 22:00:01 +0000 (22:00 +0000)]
r12781: Support the level parameter for lsa_lookupsids.
Simplify the interfaces to domain trusts a bit: Nothing outside secrets.c
needs to know we're storing stuff in ucs2.
Volker
Volker Lendecke [Sun, 8 Jan 2006 15:31:25 +0000 (15:31 +0000)]
r12771: Apply patch from bug 3374, attempt to fix build on tru64.
Thanks to "The Written Word" -- whoever that is :-)
Volker
Volker Lendecke [Sat, 7 Jan 2006 22:11:30 +0000 (22:11 +0000)]
r12760: Fix bug 3384
Derrell Lipman [Sat, 7 Jan 2006 20:43:36 +0000 (20:43 +0000)]
r12759: r12128@cabra: derrell | 2006-01-07 15:34:01 -0500
Incorporate a number of changes suggested by David Collier-Brown Thanks, David!
Derrell Lipman [Sat, 7 Jan 2006 20:43:31 +0000 (20:43 +0000)]
r12758: r12127@cabra: derrell | 2006-01-03 15:22:18 -0500
remove old superfluous comment and ifdef
Derrell Lipman [Sat, 7 Jan 2006 20:43:28 +0000 (20:43 +0000)]
r12757: r12126@cabra: derrell | 2006-01-03 15:21:36 -0500
added flag to not request authentication information
Günther Deschner [Fri, 6 Jan 2006 14:55:26 +0000 (14:55 +0000)]
r12742: Don't write null sid mappings into the winbindd_cache.tdb.
Guenther
Volker Lendecke [Fri, 6 Jan 2006 10:27:12 +0000 (10:27 +0000)]
r12735: After talking to Tridge and Jeremy... This needs to be made more generic
before it goes in.
Volker
Volker Lendecke [Thu, 5 Jan 2006 11:35:29 +0000 (11:35 +0000)]
r12721: GPFS 2.4 on Linux will contain some windows semantics, ie share modes and
oplocks across the cluster. Adapt Samba to it.
The gpfs API is called via libgpfs.so. This code is written with dlopen(), so
that you can compile on a system with gpfs installed and later on run on
systems without gpfs available.
So to actually make Samba call gpfs share mode calls you need to compile with
gpfs.h and libgpfs.so around and set 'gpfs share = yes' on the shares you
export from GPFS.
Volker
Günther Deschner [Wed, 4 Jan 2006 13:04:43 +0000 (13:04 +0000)]
r12714: Fix segfault in pdb_nds.c.
Guenther
Jeremy Allison [Wed, 4 Jan 2006 12:48:54 +0000 (12:48 +0000)]
r12713: Remove use of uint8_t -> uint8.
Jeremy.
Volker Lendecke [Mon, 2 Jan 2006 18:23:49 +0000 (18:23 +0000)]
r12678: One more
Volker Lendecke [Sun, 1 Jan 2006 18:30:44 +0000 (18:30 +0000)]
r12663: Fix a memleak
Stefan Metzmacher [Sun, 1 Jan 2006 18:02:50 +0000 (18:02 +0000)]
r12660: Happy New Year!
metze
Jeremy Allison [Sun, 1 Jan 2006 15:59:22 +0000 (15:59 +0000)]
r12653: Patch from SATOH Fumiyasu <fumiyas@miraclelinux.com>
for bug #3348. Don't assume owning sticky bit
directory means write access allowed.
Jeremy.
Volker Lendecke [Sat, 31 Dec 2005 10:57:43 +0000 (10:57 +0000)]
r12645: Fix some memleaks. This will also be in the trunk checkin that comes next.
Volker
Volker Lendecke [Fri, 30 Dec 2005 11:01:29 +0000 (11:01 +0000)]
r12603: NO, I'm not claiming maintainership of this.
Fix bug 3351.
Volker
Gerald Carter [Thu, 29 Dec 2005 23:47:58 +0000 (23:47 +0000)]
r12593: packaging fixes missed from the 3.0.21 build
Volker Lendecke [Thu, 29 Dec 2005 19:30:06 +0000 (19:30 +0000)]
r12581: And another one :-)
Derrell Lipman [Thu, 29 Dec 2005 17:03:39 +0000 (17:03 +0000)]
r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500
allow for arbitrary option value types
Derrell Lipman [Thu, 29 Dec 2005 16:26:06 +0000 (16:26 +0000)]
r12576: r12115@cabra: derrell | 2005-12-29 11:16:03 -0500
bug (enhancement) #2651: add option to log debug messages to stderr instead of stdout
Derrell Lipman [Thu, 29 Dec 2005 15:06:59 +0000 (15:06 +0000)]
r12570: r12084@cabra: derrell | 2005-12-29 10:05:16 -0500
do not open connection when only looking for cached connection; also, fix crash caused by missing initialization following recent locale changes
Derrell Lipman [Thu, 29 Dec 2005 15:06:53 +0000 (15:06 +0000)]
r12569: r12083@cabra: derrell | 2005-12-29 09:39:45 -0500
fix line length and make formatting/indentation more consistent
Jeremy Allison [Thu, 29 Dec 2005 13:10:33 +0000 (13:10 +0000)]
r12564: Ensure load_case_tables is always done first.
Jeremy.
Jeremy Allison [Wed, 28 Dec 2005 22:48:54 +0000 (22:48 +0000)]
r12555: Fix more load_case_table swegfaults. Arggg.
What I'd give for a global constructor...
Jeremy.
Volker Lendecke [Wed, 28 Dec 2005 21:10:11 +0000 (21:10 +0000)]
r12544: Fix segfaults in winbind, smbpasswd and net
Gerald Carter [Wed, 28 Dec 2005 14:19:03 +0000 (14:19 +0000)]
r12541: patch from Oliver Schulze L. <oliver@samera.com.py> to check for rpm v4.3 (CentOS)
Jeremy Allison [Tue, 27 Dec 2005 20:52:36 +0000 (20:52 +0000)]
r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
and replace calls to isupper/islower/toupper/tolower with
ASCII equivalents (mapping into _w variants).
Jeremy.
Simo Sorce [Mon, 26 Dec 2005 17:36:33 +0000 (17:36 +0000)]
r12497: add a simplex option
better usage message
Simo Sorce [Mon, 26 Dec 2005 17:22:46 +0000 (17:22 +0000)]
r12495: Crackcheck utility enhancement based on patch sent by Tom Geissler
Jeremy Allison [Mon, 26 Dec 2005 11:44:15 +0000 (11:44 +0000)]
r12491: End profile fixes from SATOH Fumiyasu <fumiya@samba.gr.jp>.
Jeremy.
Derrell Lipman [Sun, 25 Dec 2005 21:46:58 +0000 (21:46 +0000)]
r12485: r12044@cabra: derrell | 2005-12-25 16:46:47 -0500
When enumerating what could be a server name or a workgroup name, first
check for an existing server structure. If none exists, then go through
the previous determination of whether it's a serrver or a workgroup. This
should avoid doing a NetBIOS name query each time, if we've already
connected to the specified server. (While we're at it, clean up indenting
and line length in this area of code.)
Volker Lendecke [Sun, 25 Dec 2005 10:41:34 +0000 (10:41 +0000)]
r12477: Remove a gcc -O6 warning
Volker Lendecke [Sun, 25 Dec 2005 10:27:45 +0000 (10:27 +0000)]
r12476: Apply some const
Volker Lendecke [Sun, 25 Dec 2005 10:06:05 +0000 (10:06 +0000)]
r12475: Actually configure with profile support this time ...
Volker Lendecke [Sun, 25 Dec 2005 09:49:10 +0000 (09:49 +0000)]
r12474: Fix a warning
Derrell Lipman [Sun, 25 Dec 2005 04:26:59 +0000 (04:26 +0000)]
r12472: r12040@cabra: derrell | 2005-12-24 23:26:55 -0500
revert immediately previous change and fix problem correctly. Interfaces were being loaded before all configuration files had been read. *This* should fix byg 3336.
Derrell Lipman [Sun, 25 Dec 2005 04:17:32 +0000 (04:17 +0000)]
r12471: r12038@cabra: derrell | 2005-12-24 23:17:16 -0500
libsmbclient was not loading the global configuration file. This should fix 3336.
Derrell Lipman [Sun, 25 Dec 2005 02:03:51 +0000 (02:03 +0000)]
r12468: r12033@cabra: derrell | 2005-12-24 21:03:45 -0500
actually add the new test program
Derrell Lipman [Sun, 25 Dec 2005 02:00:35 +0000 (02:00 +0000)]
r12467: r12029@cabra: derrell | 2005-12-24 20:25:59 -0500
add another libsmbclient test program
Derrell Lipman [Sun, 25 Dec 2005 02:00:21 +0000 (02:00 +0000)]
r12466: r12028@cabra: derrell | 2005-12-24 20:25:38 -0500
parse dates correctly. w_time and m_time were reversed.
Volker Lendecke [Sat, 24 Dec 2005 21:06:41 +0000 (21:06 +0000)]
r12460: Fixes for bug 3349
Günther Deschner [Fri, 23 Dec 2005 14:45:56 +0000 (14:45 +0000)]
r12452: Fix Bug #3053 to allow esp. older eDirectory releases to load our LDAP
schema.
Maybe "Base64 encoded user parameter string" is not much clearer then
"munged dial" - anyone got a better description ?
Guenther
Günther Deschner [Thu, 22 Dec 2005 22:15:52 +0000 (22:15 +0000)]
r12441: Fix python build.
Guenther
Volker Lendecke [Thu, 22 Dec 2005 20:57:47 +0000 (20:57 +0000)]
r12438: Remove an unused function
Günther Deschner [Wed, 21 Dec 2005 23:26:23 +0000 (23:26 +0000)]
r12415: Forgot newlines.
Guenther
Günther Deschner [Wed, 21 Dec 2005 23:15:57 +0000 (23:15 +0000)]
r12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
translation elsewhere.
Guenther
Günther Deschner [Wed, 21 Dec 2005 12:52:04 +0000 (12:52 +0000)]
r12407: Fix returning wrong error codes and better sort out errors and stdout
messages.
Guenther
Günther Deschner [Wed, 21 Dec 2005 10:05:39 +0000 (10:05 +0000)]
r12406: Since w2k3 sp1 we fail to create user accounts using e.g. "net ads user
add" with "Server is unwilling to perform". Seems we have to put in the
same userAccountControl bits the server would pick when we wouldn't send
them at all.
Guenther
Deryck Hodge [Wed, 21 Dec 2005 04:47:57 +0000 (04:47 +0000)]
r12403: Update url on the docs directory README.
deryck
Gerald Carter [Tue, 20 Dec 2005 18:20:39 +0000 (18:20 +0000)]
r12400: one line patch for Sun LDAP libs pointed out by Nicholas Brealey <nick@brealey.org>
Gerald Carter [Tue, 20 Dec 2005 15:10:41 +0000 (15:10 +0000)]
r12398: adding Guenther's account policy migration fix
Gerald Carter [Tue, 20 Dec 2005 02:23:51 +0000 (02:23 +0000)]
r12393: cleaning up swat bugs. *no one* tests swat it seems. This has been broken since r10656
Jeremy Allison [Tue, 20 Dec 2005 00:16:18 +0000 (00:16 +0000)]
r12387: Make string_to_sid a little more silent.
Jeremy.
Jeremy Allison [Mon, 19 Dec 2005 23:07:25 +0000 (23:07 +0000)]
r12376: Second patch from Martin Koeppe <mkoeppe@gmx.de>
for #3287.
Jeremy.
Günther Deschner [Mon, 19 Dec 2005 03:02:56 +0000 (03:02 +0000)]
r12341: add DEBUG statement.
Guenther