ira/wip.git
16 years agor12794: BUG 3340: patch from William JoJo <jojowil@hvcc.edu> to fix automatic inclusi...
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

16 years agor12788: Since we have agreed on the case of winbindd names, we can store a
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

16 years agor12787: Revert last commit that removed our logic of memorizing negative
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

16 years agor12781: Support the level parameter for lsa_lookupsids.
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

16 years agor12771: Apply patch from bug 3374, attempt to fix build on tru64.
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

16 years agor12760: Fix bug 3384
Volker Lendecke [Sat, 7 Jan 2006 22:11:30 +0000 (22:11 +0000)]
r12760: Fix bug 3384

16 years agor12759: r12128@cabra: derrell | 2006-01-07 15:34:01 -0500
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!

16 years agor12758: r12127@cabra: derrell | 2006-01-03 15:22:18 -0500
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

16 years agor12757: r12126@cabra: derrell | 2006-01-03 15:21:36 -0500
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

16 years agor12742: Don't write null sid mappings into the winbindd_cache.tdb.
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

16 years agor12735: After talking to Tridge and Jeremy... This needs to be made more generic
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

16 years agor12721: GPFS 2.4 on Linux will contain some windows semantics, ie share modes and
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

16 years agor12714: Fix segfault in pdb_nds.c.
Günther Deschner [Wed, 4 Jan 2006 13:04:43 +0000 (13:04 +0000)]
r12714: Fix segfault in pdb_nds.c.

Guenther

16 years agor12713: Remove use of uint8_t -> uint8.
Jeremy Allison [Wed, 4 Jan 2006 12:48:54 +0000 (12:48 +0000)]
r12713: Remove use of uint8_t -> uint8.
Jeremy.

16 years agor12678: One more
Volker Lendecke [Mon, 2 Jan 2006 18:23:49 +0000 (18:23 +0000)]
r12678: One more

16 years agor12663: Fix a memleak
Volker Lendecke [Sun, 1 Jan 2006 18:30:44 +0000 (18:30 +0000)]
r12663: Fix a memleak

16 years agor12660: Happy New Year!
Stefan Metzmacher [Sun, 1 Jan 2006 18:02:50 +0000 (18:02 +0000)]
r12660: Happy New Year!

metze

16 years agor12653: Patch from SATOH Fumiyasu <fumiyas@miraclelinux.com>
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.

16 years agor12645: Fix some memleaks. This will also be in the trunk checkin that comes next.
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

16 years agor12603: NO, I'm not claiming maintainership of this.
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

16 years agor12593: packaging fixes missed from the 3.0.21 build
Gerald Carter [Thu, 29 Dec 2005 23:47:58 +0000 (23:47 +0000)]
r12593: packaging fixes missed from the 3.0.21 build

16 years agor12581: And another one :-)
Volker Lendecke [Thu, 29 Dec 2005 19:30:06 +0000 (19:30 +0000)]
r12581: And another one :-)

16 years agor12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500
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

16 years agor12576: r12115@cabra: derrell | 2005-12-29 11:16:03 -0500
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

16 years agor12570: r12084@cabra: derrell | 2005-12-29 10:05:16 -0500
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

16 years agor12569: r12083@cabra: derrell | 2005-12-29 09:39:45 -0500
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

16 years agor12564: Ensure load_case_tables is always done first.
Jeremy Allison [Thu, 29 Dec 2005 13:10:33 +0000 (13:10 +0000)]
r12564: Ensure load_case_tables is always done first.
Jeremy.

16 years agor12555: Fix more load_case_table swegfaults. Arggg.
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.

16 years agor12544: Fix segfaults in winbind, smbpasswd and net
Volker Lendecke [Wed, 28 Dec 2005 21:10:11 +0000 (21:10 +0000)]
r12544: Fix segfaults in winbind, smbpasswd and net

16 years agor12541: patch from Oliver Schulze L. <oliver@samera.com.py> to check for rpm v4...
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)

16 years agor12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")
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.

16 years agor12497: add a simplex option
Simo Sorce [Mon, 26 Dec 2005 17:36:33 +0000 (17:36 +0000)]
r12497: add a simplex option
better usage message

16 years agor12495: Crackcheck utility enhancement based on patch sent by Tom Geissler
Simo Sorce [Mon, 26 Dec 2005 17:22:46 +0000 (17:22 +0000)]
r12495: Crackcheck utility enhancement based on patch sent by Tom Geissler

16 years agor12491: End profile fixes from SATOH Fumiyasu <fumiya@samba.gr.jp>.
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.

16 years agor12485: r12044@cabra: derrell | 2005-12-25 16:46:47 -0500
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.)

16 years agor12477: Remove a gcc -O6 warning
Volker Lendecke [Sun, 25 Dec 2005 10:41:34 +0000 (10:41 +0000)]
r12477: Remove a gcc -O6 warning

16 years agor12476: Apply some const
Volker Lendecke [Sun, 25 Dec 2005 10:27:45 +0000 (10:27 +0000)]
r12476: Apply some const

16 years agor12475: Actually configure with profile support this time ...
Volker Lendecke [Sun, 25 Dec 2005 10:06:05 +0000 (10:06 +0000)]
r12475: Actually configure with profile support this time ...

16 years agor12474: Fix a warning
Volker Lendecke [Sun, 25 Dec 2005 09:49:10 +0000 (09:49 +0000)]
r12474: Fix a warning

16 years agor12472: r12040@cabra: derrell | 2005-12-24 23:26:55 -0500
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.

16 years agor12471: r12038@cabra: derrell | 2005-12-24 23:17:16 -0500
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.

16 years agor12468: r12033@cabra: derrell | 2005-12-24 21:03:45 -0500
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

16 years agor12467: r12029@cabra: derrell | 2005-12-24 20:25:59 -0500
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

16 years agor12466: r12028@cabra: derrell | 2005-12-24 20:25:38 -0500
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.

16 years agor12460: Fixes for bug 3349
Volker Lendecke [Sat, 24 Dec 2005 21:06:41 +0000 (21:06 +0000)]
r12460: Fixes for bug 3349

16 years agor12452: Fix Bug #3053 to allow esp. older eDirectory releases to load our LDAP
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

16 years agor12441: Fix python build.
Günther Deschner [Thu, 22 Dec 2005 22:15:52 +0000 (22:15 +0000)]
r12441: Fix python build.

Guenther

16 years agor12438: Remove an unused function
Volker Lendecke [Thu, 22 Dec 2005 20:57:47 +0000 (20:57 +0000)]
r12438: Remove an unused function

16 years agor12415: Forgot newlines.
Günther Deschner [Wed, 21 Dec 2005 23:26:23 +0000 (23:26 +0000)]
r12415: Forgot newlines.

Guenther

16 years agor12414: Remove the unnecessary SMB_STRDUP in server_role_str() + reuse the role
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

16 years agor12407: Fix returning wrong error codes and better sort out errors and stdout
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

16 years agor12406: Since w2k3 sp1 we fail to create user accounts using e.g. "net ads user
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

16 years agor12403: Update url on the docs directory README.
Deryck Hodge [Wed, 21 Dec 2005 04:47:57 +0000 (04:47 +0000)]
r12403: Update url on the docs directory README.

deryck

16 years agor12400: one line patch for Sun LDAP libs pointed out by Nicholas Brealey <nick@breale...
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>

16 years agor12398: adding Guenther's account policy migration fix
Gerald Carter [Tue, 20 Dec 2005 15:10:41 +0000 (15:10 +0000)]
r12398: adding Guenther's account policy migration fix

16 years agor12393: cleaning up swat bugs. *no one* tests swat it seems. This has been broken...
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

16 years agor12387: Make string_to_sid a little more silent.
Jeremy Allison [Tue, 20 Dec 2005 00:16:18 +0000 (00:16 +0000)]
r12387: Make string_to_sid a little more silent.
Jeremy.

16 years agor12376: Second patch from Martin Koeppe <mkoeppe@gmx.de>
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.

16 years agor12341: add DEBUG statement.
Günther Deschner [Mon, 19 Dec 2005 03:02:56 +0000 (03:02 +0000)]
r12341: add DEBUG statement.

Guenther

16 years agor12338: add ifdef DEBUG_PASSWORD before printing clear text password.
Günther Deschner [Mon, 19 Dec 2005 02:22:13 +0000 (02:22 +0000)]
r12338: add ifdef DEBUG_PASSWORD before printing clear text password.

Guenther

16 years agor12336: A couple of fixes and enhancements for adssearch.pl (espc. to debug
Günther Deschner [Mon, 19 Dec 2005 02:15:13 +0000 (02:15 +0000)]
r12336: A couple of fixes and enhancements for adssearch.pl (espc. to debug
GPOs).

sid2string fix from Michael James <michael@james.st>.

Guenther

16 years agor12313: Introduce yet another copy of the string_sub function:
Volker Lendecke [Sun, 18 Dec 2005 18:06:15 +0000 (18:06 +0000)]
r12313: Introduce yet another copy of the string_sub function:
talloc_string_sub. Someone with time on his hands could convert all the
callers of all_string_sub to this.

realloc_string_sub is *only* called from within substitute.c, it could be
moved there I think.

Volker

16 years agor12312: Reformatting and a trivial change: is_share_read_only_for_user only uses
Volker Lendecke [Sun, 18 Dec 2005 14:23:23 +0000 (14:23 +0000)]
r12312: Reformatting and a trivial change: is_share_read_only_for_user only uses
conn->service, so there's no point in passing down the whole conn struct.

Volker

16 years agor12311: Reformatting
Volker Lendecke [Sun, 18 Dec 2005 13:54:53 +0000 (13:54 +0000)]
r12311: Reformatting

16 years agor12308: Reformatting
Volker Lendecke [Sat, 17 Dec 2005 17:19:21 +0000 (17:19 +0000)]
r12308: Reformatting

16 years agor12307: Reformatting plus a trivial if/else simplification. There's no point in doing
Volker Lendecke [Sat, 17 Dec 2005 17:13:45 +0000 (17:13 +0000)]
r12307: Reformatting plus a trivial if/else simplification. There's no point in doing
an else branch that only returns NULL.

Volker

16 years agor12306: Reformatting
Volker Lendecke [Sat, 17 Dec 2005 16:56:24 +0000 (16:56 +0000)]
r12306: Reformatting

16 years agor12305: Reformatting
Volker Lendecke [Sat, 17 Dec 2005 16:31:04 +0000 (16:31 +0000)]
r12305: Reformatting

16 years agor12303: Move split_domain_and_name to util_getent.c and make it static there.
Volker Lendecke [Sat, 17 Dec 2005 15:38:41 +0000 (15:38 +0000)]
r12303: Move split_domain_and_name to util_getent.c and make it static there.

Volker

16 years agor12291: Make getgroups_user static.
Volker Lendecke [Fri, 16 Dec 2005 16:16:52 +0000 (16:16 +0000)]
r12291: Make getgroups_user static.

Jeremy, there's a #ifdef'ed 0 call to this in your usershare code. We need to
talk about what exactly what you intend to do here and in what scenarios.

Volker

16 years agor12290: Typo
Volker Lendecke [Fri, 16 Dec 2005 15:58:31 +0000 (15:58 +0000)]
r12290: Typo

16 years agor12281: adding a note about WINS and NetLogon not being remotely manageable
Gerald Carter [Fri, 16 Dec 2005 01:41:25 +0000 (01:41 +0000)]
r12281: adding a note about WINS and NetLogon not being remotely manageable

16 years agor12279: unix_mask_match has been broken for *ever*... (How).
Jeremy Allison [Fri, 16 Dec 2005 01:41:12 +0000 (01:41 +0000)]
r12279: unix_mask_match has been broken for *ever*... (How).
Ensure it returns a BOOL.
Jerry (and anyone else) please check this, I think
all uses are now correct but could do with another
set of eyes. Essential for 3.0.21 release.
Jeremy.

16 years agor12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>
Jeremy Allison [Fri, 16 Dec 2005 00:10:59 +0000 (00:10 +0000)]
r12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>
and followed up by derrell@samba.org.
Jeremy.

16 years agor12273: Fix copy paste error.
Günther Deschner [Fri, 16 Dec 2005 00:01:15 +0000 (00:01 +0000)]
r12273: Fix copy paste error.

Guenther

16 years agor12262: * patch from Brian Moran to fix segv in eventlogadm when not eventlogs
Gerald Carter [Thu, 15 Dec 2005 18:39:28 +0000 (18:39 +0000)]
r12262: * patch from Brian Moran to fix segv in eventlogadm when not eventlogs
  are listed in smb.conf
* initialize the local group description in set_alias_info()

16 years agor12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287
Jeremy Allison [Wed, 14 Dec 2005 23:52:58 +0000 (23:52 +0000)]
r12250: Patch from Martin Koeppe <mkoeppe@gmx.de> for #3287
to make the dev/inode numbers match what SFU expects.
If we're using 8 byte inodes we'll lose the top 4 bytes
and replace them with a dev_t instead, but this seem
reasonable to ensure uniqueness.
Jeremy.

16 years agor12245: eDirectory returns LDAP_UNWILLING_TO_PERFORM if the
Jeremy Allison [Wed, 14 Dec 2005 20:39:42 +0000 (20:39 +0000)]
r12245: eDirectory returns LDAP_UNWILLING_TO_PERFORM if the
account is disabled. If we get this we can't check
the password so have to tell the client the account
was disabled.
Jeremy.

16 years agor12236: r11740@cabra: derrell | 2005-12-14 13:16:58 -0500
Derrell Lipman [Wed, 14 Dec 2005 18:17:05 +0000 (18:17 +0000)]
r12236:  r11740@cabra:  derrell | 2005-12-14 13:16:58 -0500
 check in the DEBUG message referenced in the previous commit

16 years agor12235: r11738@cabra: derrell | 2005-12-14 13:15:14 -0500
Derrell Lipman [Wed, 14 Dec 2005 18:15:54 +0000 (18:15 +0000)]
r12235:  r11738@cabra:  derrell | 2005-12-14 13:15:14 -0500
 Ensure that when libsmbclient copies a cli, it prevents the cli from later
 being freed, by turning off the 'allocated' flag.

 Change a DEBUG message in pipe_open code from level 0 to level 1 since
 libsmbclient is now regularly attempting to open a pipe for share enumeration,
 and falling back to RAP if RPC is unavailable (e.g. win98).  We don't want
 the debug message to display when the pipe open fails, under these normal
 circumstances.

16 years agor12234: Reduce the race condition for renames by holding the lock
Jeremy Allison [Wed, 14 Dec 2005 17:46:29 +0000 (17:46 +0000)]
r12234: Reduce the race condition for renames by holding the lock
longer. Instigated by complaints on the fix for #3303 from
SATOH Fumiyasu <fumiyas@miraclelinux.com>.
Jeremy.

16 years agor12225: r11729@cabra: derrell | 2005-12-13 22:59:45 -0500
Derrell Lipman [Wed, 14 Dec 2005 04:00:58 +0000 (04:00 +0000)]
r12225:  r11729@cabra:  derrell | 2005-12-13 22:59:45 -0500
 1. Fix a crash bug which should have reared its ugly head ages ago, but for
    some reason, remained dormant until recently.  The bug pertained to
    libsmbclient doing a structure assignment of a cli after having opened a
    pipe.  The pipe open code makes a copy of the cli pointer that was passed
    to it.  If the cli is later copied (and that cli pointer that was saved
    is no longer valid), the pipe code will cause a crash during shutdown or
    when the copied cli is closed.

 2. The 'type' field in enumerated shares was not being set correctly with
    the new RPC-based mechanism for enumerating shares.

16 years agor12224: adding more characters to the invalid share name string
Gerald Carter [Wed, 14 Dec 2005 01:09:46 +0000 (01:09 +0000)]
r12224: adding more characters to the invalid share name string

16 years agor12221: Fix error code paths that can potentially leave a dangling lock.
Jeremy Allison [Wed, 14 Dec 2005 00:42:40 +0000 (00:42 +0000)]
r12221: Fix error code paths that can potentially leave a dangling lock.
Jeremy.

16 years agor12214: Fix compile if SYNC_DNS is set.
Jeremy Allison [Tue, 13 Dec 2005 19:37:05 +0000 (19:37 +0000)]
r12214: Fix compile if SYNC_DNS is set.
Jeremy.

16 years agor12213: Final fix for #3303 - send rename messages to smbd's
Jeremy Allison [Tue, 13 Dec 2005 18:11:50 +0000 (18:11 +0000)]
r12213: Final fix for #3303 - send rename messages to smbd's
that have open file handles to allow them to correctly
implement delete on close. There is a further correctness
fix I'm intending to add to this to cope with different share
paths, but not right now...
Jeremy.

16 years agor12203: Add the share path into the sharemode db. This involves
Jeremy Allison [Mon, 12 Dec 2005 22:07:36 +0000 (22:07 +0000)]
r12203: Add the share path into the sharemode db. This involves
revving the minor version number for libsmbsharemodes (we
now have a new _ex interface that takes the share path
as well as the filename). Needed for #3303. Some code written
by SATOH Fumiyasu <fumiya@samba.gr.jp> included in the changes
to locking/locking.c. The smbstatus output is a bit of a mess
and needs overhauling...
Jeremy.

16 years agor12196: patch from Krishna Ganugapati <krishnag@centeris.com>
Gerald Carter [Mon, 12 Dec 2005 18:55:54 +0000 (18:55 +0000)]
r12196: patch from Krishna Ganugapati <krishnag@centeris.com>

Use the subtree delete ldap control when running 'net ads leave'
to ensure that the machine account is actually deleted.

16 years agor12194: Ensure that when we set a connection path we've canonicalized
Jeremy Allison [Mon, 12 Dec 2005 18:21:59 +0000 (18:21 +0000)]
r12194: Ensure that when we set a connection path we've canonicalized
the name (must be abolute - start with /, must not end in /,
must have ./ and ../ removed). Of course for realpath resolved
paths this won't be the case but for others we need this name
to be canonicalized. This name is going into the sharemode db
for #3303 so needs to be in a normalized format.
Jeremy.

16 years agor12193: Fix some typos.
Günther Deschner [Mon, 12 Dec 2005 14:08:42 +0000 (14:08 +0000)]
r12193: Fix some typos.

Guenther

16 years agor12185: Cosmetic cleanup
Volker Lendecke [Sun, 11 Dec 2005 21:59:58 +0000 (21:59 +0000)]
r12185: Cosmetic cleanup

16 years agor12182: Cosmetic cleanup
Volker Lendecke [Sun, 11 Dec 2005 16:55:28 +0000 (16:55 +0000)]
r12182: Cosmetic cleanup

16 years agor12177: last of outstanding patches in my queue to deal with MMC.
Gerald Carter [Sun, 11 Dec 2005 05:06:35 +0000 (05:06 +0000)]
r12177: last of outstanding patches in my queue to deal with MMC.
Validate the share name and fail when trying to creating
a share with bad characters.

16 years agor12176: fix type mismatch after rpc structure change in rpc_svcctl.h
Gerald Carter [Sun, 11 Dec 2005 04:41:54 +0000 (04:41 +0000)]
r12176: fix type mismatch after rpc structure change in rpc_svcctl.h

16 years agor12174: Simple patch to work around the current lack of BUILTIN
Gerald Carter [Sun, 11 Dec 2005 04:39:33 +0000 (04:39 +0000)]
r12174: Simple patch to work around the current lack of BUILTIN
nested group support.  Always add the BUILTIN\Administrators
SID to a Domain Admins token.

This solves the extra steps of establishing a group map for
the local Administrators SID in order to control services.
Windows also tends to expect the Administrators group to be
usable when setting up security permissions on shares.

Volker's work will probably fix this long term, but this
gets us past some of the setup hurdles for 3.0.21.

16 years agor12173: doing some service control work
Gerald Carter [Sun, 11 Dec 2005 04:21:34 +0000 (04:21 +0000)]
r12173: doing some service control work

* Add a few new error codes for disabled services
* dump some more details about service status in 'net rpc service'
* disable the WINS and NetLogon services if not configured in smb.conf

Still trying to figure out how to disable the start button
on the NetLogon and WINS services.

16 years agor12170: Fix a segfault -- this is post-3.0.21 code
Volker Lendecke [Sat, 10 Dec 2005 23:56:42 +0000 (23:56 +0000)]
r12170: Fix a segfault -- this is post-3.0.21 code

16 years agor12169: Remove an unused function
Volker Lendecke [Sat, 10 Dec 2005 23:29:39 +0000 (23:29 +0000)]
r12169: Remove an unused function

16 years agor12163: Change lookup_sid and lookup_name to return const char * instead of char *,
Volker Lendecke [Sat, 10 Dec 2005 11:22:01 +0000 (11:22 +0000)]
r12163: Change lookup_sid and lookup_name to return const char * instead of char *,
use a temporary talloc_ctx for clarity.

Volker

16 years agor12160: The filename parameter to get_share_mode_lock is going
Jeremy Allison [Sat, 10 Dec 2005 01:33:58 +0000 (01:33 +0000)]
r12160: The filename parameter to get_share_mode_lock is going
to become very important as we fix #3303, so make sure
we don't accidently set it here.
Jeremy.