Commit Graph

2320 Commits

Author SHA1 Message Date
Jeffrey Altman
b02dabd24e winnotes-20040726
Updates for 1.3.66
2004-07-27 00:24:09 +00:00
Asanka Herath
92076d8749 afsd-20040726
Prevent a TID allocated for IPC from being used for anything other than RAP.

Implement NetServerGetInfo instead of returning an error.

When looking for shares, go through root.afs first before trying to add a
mount point.
2004-07-27 00:22:20 +00:00
Jeffrey Altman
3c40200982 afslogon-20040726
Only display the "Integrated Login failed" message box if Integrated
Login is in fact being used.
2004-07-27 00:14:42 +00:00
Jeffrey Altman
06634de349 afsconfig-dns-cells-20040726
Another annoying bug.  afs_config.exe now validates cell names against
DNS in addition to the CellServDB file.
2004-07-27 00:01:31 +00:00
Jeffrey Altman
7ab88f29ea misc-patches-20040726
Update .cvsignore files for windows

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

cleanup uninitialized variables

====================

more dlls to be replaced

====================

When determining the full path of a UNC path, strip the server and
share names
2004-07-26 21:40:23 +00:00
Jeffrey Altman
1d4e40b360 freelance-cellid-20040726
Replace Freelance cellid constant 0x1 with a #define and set its
value to 0xFFFFFFFF to avoid collisions with the root.cell volumes
on remote cells.
2004-07-26 20:08:42 +00:00
Jeffrey Altman
0b41cf16f0 novolume-20040725
if we are going to return CM_ERROR_NOSUCHVOLUME do it whenever the
server list is empty.  If the server list is empty, allDown and allBusy
will always be set but there is nothing we can do.
2004-07-26 03:48:47 +00:00
Jeffrey Altman
0dbdc359df version-update-20040725
Update version to 1.3.66
2004-07-25 22:47:20 +00:00
Jeffrey Altman
c281138620 kfw-2-6-4-20040725
Update KFW SDK to 2.6.4
2004-07-25 22:45:19 +00:00
Jeffrey Altman
3a89df255c small-tweaks-20040725
* update winnotes

* add osi trace log entries to help diagnose issues with overlapped writes
  from CIFS client

* fix osi trace log entries for freelance add mount to use osi_SaveLogString

* fix afscreds "Start Service" to automatically obtain tokens if kerberos
  tickets are available

* update afscreds systray menu to use "..." after Remove Icon

* remove extra "." in wix installer resource
2004-07-25 21:53:09 +00:00
Jeffrey Altman
1a711beba6 force-vol-upd-20040724
Change cm_ForceUpdateVolume to not try to perform an immediate update.
Just set the CM_VOLUMEFLAG_RESET flag.  Calling cm_UpdateVolume calls
cm_connByMServers which then calls cm_Analyze which is how we ended
up having cm_ForceUpdateVolume called in the first place.
2004-07-24 19:59:32 +00:00
Jeffrey Altman
6c2eaf5815 global-drives-20040724
If creating the global drive letter fails, attempt to cancel the
previous use and then re-create.
2004-07-24 16:25:35 +00:00
Jeffrey Altman
e73c65900f smb-extended-20040724
Don't fallback to SMB_AUTH_NTLM.  Apparently, allowing SPNEGO to be
used each time prevents the failure of authentication when logged into
Windows with an external Kerberos principal mapped to a local account.
2004-07-24 09:31:15 +00:00
Asanka Herath
ed8fdaa8e1 wix-updates-20040723
Change default security level to 'crypt'.

Add registry key for SMBAuthType.

Add configurable property for SMBAuthType.

Remove high security mode option from the UI.

Workaround UI bug where a text control would redraw twice, once properly, once without interpreting format codes when
there are two properties to replace.
2004-07-24 08:35:04 +00:00
Jeffrey Altman
efd0f88ed5 down-before-busy-20040723
slight correction to previous patch.
check allDown before checking allBusy
2004-07-23 23:58:24 +00:00
Jeffrey Altman
74197f04f3 install-notes-20040723
Update the install notes to describe conflicts between SMB Authentication
and Windows machines configured with non-Windows Kerberos authentication
used to map to local accounts.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

More updates to smb auth vs external kerberos login
2004-07-23 23:25:23 +00:00
Derrick Brashear
56f82397c6 linux-null-out-stat-struct-20040723
FIXES 3812

we should memset this to 0. we should also only do it once for linux 2.2. code is slightly different in the cvs head.
2004-07-23 23:06:22 +00:00
Jeffrey Altman
d4b14b4e94 allserversdown-20040723
When all servers associated with a volume get into the CM_SERVERFLAG_DOWN
state, the error CM_ERROR_ALLOFFLINE would be returned by cm_ConnByMServers.
cm_Analyze was then supposed to be pausing for 5 seconds and then reset the
volume information.  Unfortunately, although it called cm_ForceUpdateVolume,
cm_ForceUpdateVolume does not reset the CM_SERVERFLAG_DOWN state on the
servers.  Therefore, when cm_ForceUpdateVolume calls cm_ConnByMServers it
would be given a CM_ERROR_ALLOFFLINE.  In other words, there was no way
out of the state.

cm_Analyze will now reset the CM_SERVERFLAG_DOWN as well as setting the
server status to not_busy after its 5 second wait.  This will allow
cm_ForceUpdateVolume to actually reset the volume information, and
refresh it if servers for the volume are newly accessible.

Also, added some missing locking calls in cm_Analyze.

In cm_ConnByMServers, change the error reporting to return CM_ERROR_ALLBUSY
only when all servers are busy or down; return CM_ERROR_ALLOFFLINE when all
servers are down; and only return CM_ERROR_NOSUCHVOLUME if the server list
for the volume is empty.  In all other cases return CM_ERROR_TIMEDOUT.
2004-07-23 22:55:23 +00:00
Jeffrey Altman
f84f7306a3 afslogon-domain-20040722
Fix null reference to bstr when active directory is not available
during a short domain acquisition
2004-07-23 00:21:06 +00:00
Jeffrey Altman
7da4cd1adc prototypes-20040723
fix prototype for afs_realm_of_cell
2004-07-22 23:41:27 +00:00
Jeffrey Altman
1a5fbdb943 afslogon-20040722
the procedure used to obtain the profile directory failed in Domains
which were not Forests.  If ADS_NAME_INITTYPE_GC fails, we must try
ADS_NAME_INITTYPE_DOMAIN which requires the Domain.  Added a Domain
parameter to QueryAdHomePathFromSid.  This was easy to obtain in
the NPLogonNotify since the logon domain is provided as a parameter.
Unfortunately, the domain provided to the winlogon event notification
routine is the user authentication domain, not the logon domain for
the local machine.  Needed to create a  GetLocalShortDomain function
which uses the IADsADSystemInfo COM interface to obtain the local
short domain.  With this in place, we can now properly detect the
profile directory in all cases.

Document MaxLogSize in registry.txt
2004-07-22 23:15:37 +00:00
Jeffrey Altman
d538abeb1b misc-cleanup-20040721
pass the correct data type into afssw_GetClientCellServDBDir
2004-07-22 10:42:40 +00:00
Jeffrey Altman
2743691b77 misc-cleanups-20040721
* Cleanup debug logging.  In particular, allow the TraceOptions registry
  value to be used as a bit flag as it was intended.  Give each type of
  debugging its own value instead of having each module test for the zero
  bit.

* Modify the handling of the afsd_init.log file.  This file originally
  was replaced on each start.  However, with auto-restart this causes
  any error information from the previous halt to be lost.  So it was
  changed quite a while back to append forever.  The problem with this
  is that the file gets unreasonably large.  Solution: add a new registry
  value, MaxLogSize, which determins how large the file should be allowed
  to become before truncation.  The default is 100K.  The magic value 0
  means grow indefinitely.

* Update afslogon.dll.  Cleanup logging.  Fix some errors.  Remove unused
  variables.  AND do not Forget Tokens on Logoff if the profile is located
  in AFS space.

* Fix a bug introduced yesterday in cellconfig.c which caused problems
  accessing the CellServDB file

* Update the NSIS installer to replace the CRTL DLLs instead of overwrite
  them.

* Add new Startup Winlogon handler to initialize the TraceOption.
2004-07-22 10:23:52 +00:00
Derrick Brashear
efce9b6f29 fstrace-avoid-double-glock-in-dentry-code-during-fstrace-20040719
fstracing on a linux machine and trying to fs flush a file in the cache would trigger a hang on a machine with SMP kernel. fix it.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================


fstracing on a linux machine and trying to fs flush a file in the cache would tr
igger a hang on a machine with SMP kernel. fix it.
2004-07-21 23:23:38 +00:00
Jeffrey Altman
9bc1b6a7b9 trace-logging-20040721
TraceLogging is supposed to be activated for different purposes
with bit flags.  The osi log and afslogon both used the same bit
flag.  Bit 0 is now for afslogon; and Bit 1 is for osi log.
2004-07-21 22:41:33 +00:00
Jeffrey Altman
0e64553af6 cifs-rap-20040721
Fix smb_ReceiveRAPNetShareEnum to report the correct buffer size to the
client
2004-07-21 17:08:28 +00:00
Jeffrey Altman
b0920fe9c2 registry-docs-logoff-20040721
* Update Windows Notes files

* Modify logoff procedure to use a pioctl to check if an arbitrary path
  exists within AFS

* Add a new registry value HKLM\Software\OpenAFS\Client  CellServDBDir
  which can be used to locate the CellServDB file in an arbitrary directory
2004-07-21 15:05:59 +00:00
Jeffrey Altman
feb3e76412 afslogon-20040720
Do not release the AFS Tokens at logoff if the user's profile was loaded
from AFS.  In this case we must keep the AFS tokens because we have no
idea how long writing back the profile might take.
2004-07-21 06:27:44 +00:00
Asanka Herath
8517719bc8 smb-rap-20040720
Add CIFS RAP support to the SMB server.  This allows AFS to be queried
with NetGetShareInfo, NetGetServerInfo, etc.  This allows the AFS SMB
server to be browsed using NET VIEW.
2004-07-21 05:43:07 +00:00
Jeffrey Altman
3ed4471744 user-auth-cell-20040720
remember to return the authentication cell name if found
2004-07-20 16:51:07 +00:00
Jeffrey Altman
fd8e75df5e submounts-20040720
Fix afsshare.c to strip the MountRoot off the afs-path before inserting into
the registry

Fix smb.c to read the submounts out of the registry.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

fix submount extraction from registry
2004-07-20 16:48:18 +00:00
Jeffrey Altman
aa9dff3b1b afsshare-20040719
correct off by one error
2004-07-20 06:16:35 +00:00
Jeffrey Altman
25ec4c8140 ioctl-freelance-20040719
Do not perform a Cell Search when the name matches the SMB IOCTL filename.
This is a special name and is not to be treated as a cell.  The failure
to find the name produces DNS queries as well as disk access.
2004-07-19 23:40:12 +00:00
Derrick Brashear
32ee04d17d pthread-ft-approxtime-is-time-20040719
for tvolser most code paths simply never result in time being updated. seems dangerous.
2004-07-19 16:25:16 +00:00
Jeffrey Altman
f02a7996b9 win32-fd_set-20040719
Make sure that we do not alter the FD_SETSIZE on Windows.
On Windows this is an array of FD_SETSIZE.  FD_SETSIZE does
not define the maximum socket handle value.
2004-07-19 15:39:38 +00:00
Asanka Herath
60446a8ffe registry-20040715
Description of new afslogon functionality
2004-07-16 05:49:26 +00:00
Asanka Herath
7930ab4928 strsafe-20040715
String Safety fixes
2004-07-16 05:40:54 +00:00
Jeffrey Altman
9a8b4bbd93 ntmakefile-20040715
Updated makefiles to avoid macro redefinitions and add new files
to src/WINNT/afsd
2004-07-16 04:56:46 +00:00
Asanka Herath
01e6e22c15 afslogon-20040715
New file for AD logon processing routines.
2004-07-16 04:48:22 +00:00
Jeffrey Altman
fe991aa74f afslogon-wix-cleanup-20040715
- Fix NTMakefiles in many directories to define WIN32_LEAN_AND_MEAN NOGDI
  to avoid macro redefinitions

- update text files

- add "authentication cell" registry value for afscreds.exe

From asanka@mit.edu:

Network provider :

  -  If the user is logging into an AD domain, then look up the user's
     profile path, find out which cell it's in and then authenticate to
     that cell instead of the default cell.

  -  Domain specific registry keys

  -  A few fixes for handling UNICODE_STRINGs

smb3.c :

  -  Delete partial security context during negotiation

client_cpa :

  -  As per the SDK which says we must handle CPL_INQUIRE message, we do.
     Also fixes a small bug where the icon isn't properly set when viewing
     the Control Panel folder.

loopbackutils.cpp

  -  Don't bother setting the app data template, because we are setting
     it in the MSI anyway.

install/wix/NTMakefile

  -  Add a configurable symbol AFSDEV_AUXWIXDEFINES which can be used to
     customize a build of the msi.

install/wix

  -  Move afslogon.dll to SYSTEM32 directory

  -  Add registry keys to support WinLogon notifications.

  -  Rename afsdcell.ini to CellServDB and move it to the client directory.

  -  If there's already an afsdcell.ini in the Windows directory, copy
     that over to the client directory instead.

  -  Add descriptions to AFS client and server services
2004-07-16 04:38:25 +00:00
Jeffrey Altman
8063c68dc8 winnotes-20040715
Update Windows note files with the latest changes.
2004-07-15 17:26:35 +00:00
Jeffrey Altman
aeae9c0301 nsis-installer-20040714
Move afs_cpa.cpl control panel to the OpenAFS\Client\Program
directory and register it in the registry via the
HKLM\Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls\
key.
2004-07-15 07:53:12 +00:00
Jeffrey Altman
f63ba24b48 nsis-20040714
Rename afsdcell.ini to CellServDB

Add Winlogon Event Notification support

Move afslogon.dll to %WINDIR%\System32
2004-07-15 06:24:22 +00:00
Jeffrey Altman
671792a8d2 cellservdb-20040714
Search for the CellServDB in the OpenAFS client install directory
not in the %WINDIR% directory
2004-07-15 06:22:14 +00:00
Jeffrey Altman
674afe86c0 afslogon-20040714
Add a Winlogon Event Notification handler to afslogon.dll to process
Logoff events.  Upon Logoff call ktc_ForgetAllTokens() on behalf of
the logged off user.

Fix a filename wildcard matching error introduced a few versions back.
2004-07-15 06:20:33 +00:00
Jeffrey Altman
7aca33e6eb incorrect-level-of-indirection-20040713
When freeing a server_t, do not indirect to GC the connections
2004-07-14 07:34:09 +00:00
Asanka Herath
59d81d9d24 xp-sp2-icf-20040713
Windows XP SP2 adds a firewall which blocks all incoming ports by default.
This patch adds support to the AFS Client Service (but not the AFS Server)
to automatically open the firewall to ports in use by the application.

One of the new requirements of this functionality is the use of the
latest Platform SDK "Microsoft Platform SDK for Windows XP SP2".

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

 For the XP SP2 SDK both the Core and Data Access SDKs are required
2004-07-14 07:12:20 +00:00
Hans-Gunther Borrmann
ccea80c085 butc-xbsa-20040714
FIXES 5827

update for xbsa 5
2004-07-14 05:46:48 +00:00
Chas Williams
4f13d9daa9 glock-kernel-lock-ordering-20040714
FIXES 5836

make lock order consistent
some routines have kernel lock held when entered, so...
2004-07-14 05:34:46 +00:00
Chas Williams
b7b62574fd fix-fstrace-for-linux-20040714
FIXES 5835

don't deadlock when flushing dcache children
2004-07-14 05:21:54 +00:00