Commit Graph

1877 Commits

Author SHA1 Message Date
Jeffrey Altman
1269df5ffa unmap-debugging-20040308
Add more debug info to DoUnmapShare
2004-03-09 03:07:27 +00:00
Jeffrey Altman
91dac9e5b5 afscreds-unmap-command-line-option-20040308
Add -z option to afscreds.exe which is called from the installer
to unmap the drive shares when uninstalling OpenAFS.
2004-03-09 03:06:32 +00:00
Jeffrey Altman
5af850b9ee event-object-naming-20040308
Restore event object naming to the pthread objects.  Be sure to identify
the objects by PID this time to avoid conflicts.
2004-03-09 02:02:38 +00:00
Jeffrey Altman
1e97e0dcab kfw-not-installed-bug-20040308
* Remove attempt to free a krb5_context when KFW is not installed.
2004-03-09 02:00:18 +00:00
Jeffrey Altman
946b2218e2 add-path-to-log-20040308
Discovered after wasting a huge quantity of time that it is possible
for OpenAFS to be installed on machines already containing the IBM/Transarc
AFS.  Add the PATH environment variable to the log to allow this situation
to be detected.
2004-03-09 01:57:34 +00:00
Jeffrey Altman
4c29d90830 long-lifetimes-20040308
Add long kerberos 4 ticket lifetime support
2004-03-08 14:02:50 +00:00
Jeffrey Altman
e0461bfb37 kfw-changes-20040307
* Increase debugging of the KFW code;

* Remove the krb5_cc_remove_creds
2004-03-08 02:23:34 +00:00
Jeffrey Altman
28fe0be851 fs-admin-privs-20040307
Add a requirement for Administrator privileges to the "fs setserverprefs"
command.
2004-03-08 02:05:44 +00:00
Jeffrey Altman
2ad3f0377c netbiosName-cellname-20040306
Add support for a new form of automatic share name generation

        \\netbiosName\cellname

which means that on systems with the loopback adapter you can
now refer to the athena.mit.edu afs cell as \\afs\athena.mit.edu\

This is implemented within cm_FindShare().  If the share name is not
one of the special ones and cannot be found in the Submounts table,
check to see if it is a known cell name,  If so, create a path to
the share of /afs/sharename with the "sharename" being lower cased.
(I hope there are no cell names in mixed or upper case.  This won't
work.)
2004-03-06 21:38:48 +00:00
Jeffrey Altman
4ec7d4f8c2 NTMakefile-dependencies-20040306
Update dependencies on various libraries to enforce consistency checks
2004-03-06 15:25:47 +00:00
Jeffrey Altman
c34c5822cd corrections-to-MIT-merge-20040306
* Corrections to MIT merge caught by Asanka.
2004-03-06 13:27:48 +00:00
Jeffrey Altman
30ad9faeb2 lanahelper-20040305
Minor updates.  Fix AFS Root UNC path string; add debugging code (off by default)
2004-03-06 08:09:13 +00:00
Jim Rees
9be2bdb79d inaddr-any-20040305
use INADDR_ANY instead of ADDR_ANY.
2004-03-06 02:42:53 +00:00
Jeffrey Altman
01059dcb66 drivemap-fix-take2-20040305
* See I knew it wouldn't work.  Revert to loop used in revision 1.14
2004-03-05 23:27:07 +00:00
Jeffrey Altman
52d6f09206 drivemap-fix-20040305
* an attempt at a cheap fix which probably won't work.
2004-03-05 23:19:33 +00:00
Jeffrey Altman
13c71ca0d3 lanahelper-library-20040305
* at my request Asanka Hearth of MIT ripped out all of the code used
  the compute the Netbios Name of the SMB Server and the mountRoot
  and constructed one commonly used library called lanahelper.lib.
  This library is now constructed in the WINNT/afsd directory and
  used throughout the tree.  At least we now have consistency if
  nothing else.
2004-03-05 23:09:18 +00:00
Jim Rees
93bb47640c no-cdev-fsync-20040303
don't try to fsync() a character special dev
reported and fix suggested by Helmut Jarausch
2004-03-03 22:41:05 +00:00
Jeffrey Altman
ce9f211c09 smbname-consistency-20040302
These changes are an attempt to provide a bit more consistency when
it comes to the establishment of SMB drive mappings.  Whenever mappings
are created, the same name is used when a name can be found.  This is
supposed to mirror what is performed in the integrated logon DLL.
2004-03-03 03:32:42 +00:00
Jeffrey Altman
c5689df286 fix-service-start-permissions-20040302
When merging the Skyrope changes I forgot to specify the SERVICE_START
privilege necessary to allow the -N option to work.
2004-03-02 15:41:43 +00:00
Jeffrey Altman
2617395f90 security-class-object-leak-20040301
Incorrect reference count management results in a leak of rx_securityClass
objects.
2004-03-02 07:23:41 +00:00
Jeffrey Altman
b37097c6b7 name-event-objects-20040301
When naming event objects allocated in a library, make sure the
names are unique by including the process id.
2004-03-02 04:14:43 +00:00
Jeffrey Altman
6152f1e0f2 openafs-nsi-20040301
Add two new registry keys:
	RxMaxMTU (DWORD) = 1200 (decimal)
	NoFindLanaByName (DWORD) = 1 (decimal)  DEBUG builds only
2004-03-02 04:12:07 +00:00
Jeffrey Altman
403e46be7d afsi_log-buffer-20040301
Increase the size of the final buffer to be large enough
to hold all of the data which is being written to it.
2004-03-02 04:09:32 +00:00
Jeffrey Altman
65b2c45287 smb_fid_t-leak-20040229
There was a significant leak of smb_fid_t objects produced when copying
files from an AFS volume.  This is clearly part of the problem reported
by UNCC.  However, there is still an unexplained memory leak associated
with reading and writing files even if the data is only being read from
the cache.

I am noticing reports of memory allocation overruns from the Debug CRT
when freeing SCache objects.  This could be a side effect of whatever is
causing the memory leak.  This will require more research.
2004-02-29 22:22:19 +00:00
Jeffrey Altman
85caa4d1de win32-name-event-objects-20040228
This is a very bad leak of Event Objects.  Name all of our event objects
in an attempt to identify the source of the leak.  Apparently, the leak
is not coming from any Event Objects we are creating directly.

Did find a misallocation of event objects in the smb code for the
initial session object.  Fixed.
2004-02-29 02:38:26 +00:00
Jeffrey Altman
d83b9bb75a findlanabyname-20040228
* an attempt to fix the problems with stack overwrites when calling
the undocumented calls does not work.  check it in anyway.
2004-02-28 19:13:26 +00:00
Jeffrey Altman
7942e801d9 hidedots-fix-20040228
* Fix the Hiding of dot files.  attributes were computed but never applied
  due to typo during merge

* Prevent crashing during service shutdown by power management thread
2004-02-28 19:10:05 +00:00
Jeffrey Altman
f0f49b80b0 afscreds-shortcut-params-20040227
Obtain Shortcut Parameters from Registry Key

   {HKLM, HKCU}\SOFTWARE\OpenAFS\Client
	(REG_SZ) AfscredsShortcutParams
   Default value is "-A -M -N -Q" if not found
2004-02-28 06:26:05 +00:00
Jeffrey Altman
1d7c0cc902 nsis-afscreds-shortcut-params-20040227
Add Shortcut Parameters to AfsCreds.exe  -A -M -N -Q

  A automatically attempt to obtain tokens on startup if needed
  M renew drive maps
  N background check monitors network configuration and attempts
    to obtain tokens or restart client service if needed
  Q do not start AFS wizard
2004-02-28 06:20:12 +00:00
Jeffrey Altman
d10a43683a NoFindLanaByName-regkey-20040227
Add a new registry entry "NoFindLanaByName" which can be set to 0x01 (DWORD)
to disable the FindLanaByName lookup in case it crashes
2004-02-27 20:38:48 +00:00
Jeffrey Altman
4d9e419c8c enablekfw-part2-20040227
Current User should have priority over Local Machine
2004-02-27 18:36:09 +00:00
Jeffrey Altman
c9b834d6e7 enablekfw-regkey-20040227
* Add new Registry Key:

	{HKLM,HKCU}\\SOFTWARE\\OpenAFS\\Client
		DWORD  EnableKFW

	Default value if missing is 0x01
2004-02-27 18:35:22 +00:00
Jeffrey Altman
4cc93fd626 morgan-patch-20040227
* Add error checking and logging for WaitForMultipleObject calls

* Place log file in directory pointed to by TEMP env variable if defined

* Use the platform defined value for MAXIMUM_WAIT_OBJECTS instead of
  the value 100.  (WinNT.h defines this as 64)

* Add a new registry value "AllSubmount" which can be set to DWORD 0x00
  to disable the automatic creation of the \\AFS\all submount.  This is
  for sites which wish to restrict access to the world.
2004-02-27 18:20:34 +00:00
Jeffrey Altman
4eb61ff347 nsis-new-reg-strings-20040227
Make the NSIS installer create the registry strings for NetbiosName = "AFS"
and MountRoot = "/afs"
2004-02-27 07:40:20 +00:00
Jeffrey Altman
94c5d9d6ad fix-unc-binding-message-20040227
Fix the UNC Binding message.
2004-02-27 07:35:25 +00:00
Jeffrey Altman
702e858526 nbname-instead-of-mountroot-20040227
When determining what name should be used for the NetbiosName
query the registry value "NetbiosName" instead of "MountRoot".
2004-02-27 06:44:46 +00:00
Jeffrey Altman
33f9f204bb fix-getlana-typo-20040227
GetUncServerName had a typo which was using "=" instead of "=="
not good.  :-(
2004-02-27 06:21:59 +00:00
Jeffrey Altman
569602eb62 no-wspp-builds-20040227
the WSPP build references in the current ntbuild.bat are extraneous
as there are no references to the defined variable anywhere else in
the build system.  remove them from ntbuild.bat
2004-02-27 06:02:18 +00:00
Jeffrey Altman
a16b140dc8 skyrope-mit-merge-hell-20040226
From Skyrope:

The Skyrope work attempted to improve on the end user experience of using
OpenAFS in the following ways:

   * Obtain tokens using renewable Kerberos 5 tickets in order to
     reduce the need for end users to renew expired tokens
   * Monitor the list of IP Addresses in order to detect changes
     in the network configuration which might affect the reachability
     of cells or the state of the AFS Client Service.  When cells
     are newly reachable, obtain tokens for the cells.  If the AFS
     Client Service is not running, start it.  If tokens are expiring
     attempt to renew them.
   * Use KDC probes to detect the accessibility of realms/cells.  If
     the KDC is not reachable, do not prompt the end user for a
     username and password.  (fs probe is not implemented on windows)
   * Automatically obtain tokens using the Windows Logon Session
     Kerberos credentials (if available)
   * Allow tokens for multiple cells to be obtained by using the
     same Kerberos 5 tickets.  (no UI yet implemented)
   * Perform drive mapping persistance by tracking it within the
     afsdsbmt.ini file instead of relying on the Windows Shell
     to persist the state.
   * Add new afscreds.exe command line options and change the
     default set used when creating the "AFS Credentials" shortcut
     in the Start Menu->Programs->Startup folder.

From MIT:

   * Auto-detection of loopback adapters.  Use "AFS" as the netbios
     name when a loopback adapter is installed.

   * Support for responding to power management events.  Used to
     flush the cache when the machine is about to suspend, hibernate,
     or shutdown

   * Documentation of Registry entries

   * Support for Extended SMB Requests

   * Beginning of support for true Event Log reporting from a
     message database

   * Hidden Dot File support (configured via the HideDotFiles
     registry option)

   * Configurable Max number of Multiplexed Sessions (MaxMpxRequests
     registry option)

   * Configurable Max MTU size (RxMaxMTU registry option)

   * Configurable Jumbogram support (RxNoJumbo registry option)

   * Configurable Max number of Virtual Connections per Server
     (MaxVCPerServer registry option)

   * Win32 DNS API support

   * Addition of SMB_ATTR_xxxx defines for use instead of hex numbers

   * A variety of heap access and resource deallocation errors corrected
     in the SMB code

   * Support for recursive directory creation

   * Modifications to the en_US version of the client configuration
     dialog (need to port to other languages)

Notes on the current check-in:

   * The KfW code will always be used when installed on the machine.
     This code only supports Krb5 and will not work with Krb4 only
     realms.  A registry flag indicating whether or not KfW should be
     used if found needs to be added.

   * afscreds.exe needs to have a registry entry created to control
     the parameter list it should be started with.  There should be
     a dialog to control this in the installer and within afscreds.exe

   * The MIT method of auto-assigning the mount-root and the netbios
     name is in conflict with the morgan stanley submissions in some
     parts of the code.  If you are using the loopback adapter with
     this code both the "NetbiosName" = "AFS" and "Mountroot" = "/afs"
     registry options must be specified.  This will be fixed in coming
     days.
2004-02-26 19:22:35 +00:00
Jeffrey Altman
be6c29629b remove-nbt-reg-entry-on-XP-20040224
In discussions with Andrei Keis at Morgan Stanley it has become clear
that the NBT registry parameter which disables the use of port 445
should only be used on Windows 2000.
2004-02-24 20:23:42 +00:00
Derrick Brashear
6e880ed20e revert-linux-sysname-list-estale-fix-20040213
(despite just committing a leak fix) we can no longer find a kernel where this is needed so we'll leave it in the cvs history but revoke it. it may have been a "special" kernel
2004-02-13 18:58:39 +00:00
Derrick Brashear
09d4822ebe linux-sysname-list-free-sysstate-20040213
required by linux-sysname-list-sys-links-resolve-dentry-20031109
eithout this, if you're in a directory that the second or later entry in a
sysname list resolved to, pwd returns ESTALE. force the true path to have its
dentry cached.
2004-02-13 18:55:36 +00:00
Sven Oehme
eca259c292 linux-ppc64-fixes-20040202
FIXES 3058

linux ppc64 port
2004-02-03 06:23:30 +00:00
Andrej Filipcic
0008bb5988 amd64-update-20040202
FIXES 2756

deal with types in newer amd64 distributions
initialize some variables
2004-02-03 05:57:49 +00:00
Derrick Brashear
526c586898 fs-return-EIO-when-starting-read-beyond-EOF-20040202
FIXES 1493

large file support asserted when attempting to read beginning past
the end of the file
2004-02-03 05:43:23 +00:00
Hartmut Reuter
3c4dd454dd dumptool-largefile-support-20040202
FIXES 2720

make dumptool support large files
2004-02-03 05:31:52 +00:00
Derrick Brashear
3f73524386 macos-protect-kpasswd-20040202
FIXES 1893

rename kpasswd to kpasswd.afs in /usr/bin
since krb5 kpasswd is included
2004-02-03 05:24:11 +00:00
Shantonu Sen
43118d9396 darwin-avoid-hang-on-rename-20040202
FIXES 2967

this version deals with afs being multiply mounted.
return EXDEV on cross device rename attempts as upper layer doesn't deal for us
2004-02-03 05:10:24 +00:00
Tom Maher
bb236704d3 acquire-fsync-lock-inside-while-loop-20040202
FIXES 3205

in order to not violate the invariant that pthread_cond_timedwait be called
with a locked mutex, we must relock if we unlock.
2004-02-03 04:53:43 +00:00
Jim Rees
0a0b3c0974 dir-buffer-protos-20040123
take yet another stab at getting dir buffer prototypes right
2004-01-23 16:53:35 +00:00