68 Commits

Author SHA1 Message Date
Jeffrey Altman
0bf95ab57b STABLE14-windows-integrated-logon-20060724
* apply ACL restrictions to credential cache immediately after
   initialization

 * move file from system temp directory to user temp directory
   prior to starting executable as user to perform credential
   import


(cherry picked from commit 1a0329fef030fedce3fb12d9c641825b0d49f053)
2006-07-24 15:11:30 +00:00
Jeffrey Altman
bfb0b1a28e STABLE14-windows-drivemap-renewal-20051121
When afscreds.exe performs a drive map renewal it should not delete
all existing drive mappings.  This undoes the efforts of the AFS
logon network provider and any persistent mappings created with the
explorer shell.   This patch extends the interface to provide a mode
in which DoMapShareChange does not remove unknown drive mappings.


(cherry picked from commit 5ce322c9f13522cf96addaf09804021c6d78b22f)
2005-11-22 00:37:48 +00:00
Jeffrey Altman
acbaf39f55 STABLE14-windows-afscreds-20051002
FIXES 22032

Extend the fields so that more text can be displayed regarding the tokens.


(cherry picked from commit e12837391e2dbbf0cf113f9af64c4daeef6680a3)
2005-10-03 05:05:56 +00:00
Matthew Loar
b36656c672 STABLE14-windows-afscreds-20050930
FIXES 21958

For the afscreds program on Windows, if you right click the system tray icon
to display the menu and then click on the taskbar, the menu is not hidden,
but instead is covered by the taskbar.

This is a common issue documented at
http://support.microsoft.com/default.aspx?scid=kb;en-us;135788.


(cherry picked from commit 46e260b9e72925f9f5b2e5cee3159d4c6b02fc05)
2005-10-01 05:52:04 +00:00
Jeffrey Altman
382ff1dffd STABLE14-windows-afscreds-deadlock-20050820
found a deadlock in the expiration check if a MessageBox dialog is
being displayed


(cherry picked from commit 84e761d850c4cf5f76dd844e6e6f738a35f88102)
2005-08-21 01:51:35 +00:00
Jeffrey Altman
372cd0a653 STABLE14-windows-afscreds-20050814
When tokens expire, do not display an obtain tokens dialog if there
is no network connectivity to the kdc for the realm associated with
the cell.

In the en_US build, stop displaying the expiration time of tokens
after the tokens expire.


(cherry picked from commit 7c34c9b5c0fbdf0b9b9429c2e763c635857974ab)
2005-08-14 12:27:40 +00:00
Jeffrey Altman
e467598d55 STABLE14-windows-vs2005b2-20050706
Visual Studio 2005 Beta 2 has been released.   As part of this
release Microsoft has tightened the rules for their C++ compliance.

* no longer can a variable declared in a for() statement be used
  outside of the associated command block

* no longer can a function or variable be declared implicitly as
  'int'

* several types such as size_t have become 64-bit values on all platforms

* due to type changes the C++ function names in libraries have changed.
  This requires the use of different .DEF file export lists


(cherry picked from commit c6a736486eb2704efd03082ff067858a198ae6d0)
2005-07-07 01:28:59 +00:00
Jeffrey Altman
04d86d2038 STABLE14-windows-pcache-20050310
This patch applies all of the work done to add persistent cache support,
cache manager debugging, and a variety of bug fixes.  A full description
will be committed within doc/txt/winnotes as part of a later commit.


(cherry picked from commit 0b90d69f8a44e6c7ba20553cfb7d5cf7072bab57)
2005-03-11 07:22:30 +00:00
Asanka Herath
fe60f79700 STABLE14-windows-clean-20041129
Cleanup clean targets to not break with cmd shell


(cherry picked from commit 0f1892f09b123d8251c99e81106aae49b42d477e)
2004-12-07 06:00:54 +00:00
Jeffrey Altman
dcbbf7ad9b STABLE14-windows-updates-20041124
Fix the version info data stored in the resource block to
use the same language identifier as is advertised.


(cherry picked from commit 487bf88c403cbe0ae93b92556623913962b4b871)
2004-12-07 05:55:40 +00:00
Jeffrey Altman
461579482e STABLE14-windows-misc-20041122
fix a deadlock situation if an Obtain Tokens dialog is produced
by an expiration event and the user chooses to cancel instead of
obtain new credentials.


(cherry picked from commit 06edeed70c9b3c7a2b8909c2069e720c97478799)
2004-12-07 05:53:09 +00:00
Jeffrey Altman
8fdcc9408c STABLE14-windows-pullup-20041105
Pullup of all changes since the 1.3.72/73 release
2004-11-05 19:21:32 +00:00
Jeffrey Altman
e0e9832c9b STABLE14-windows-misc-20040907
replace QWORD with DWORD

====================
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.
====================

add expanded registry string support to Submounts

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

Correct a 64-bit time_t error


(cherry picked from commit f31658317a77346759f165ff13b5dcf77a8b3683)
2004-09-08 06:59:01 +00:00
Jeffrey Altman
bf40fd9b2e STABLE14-time_t-200408018
time values in the cache manager and smb engine which are passed to
the run time library must be of type time_t and not long or int or
unsigned long or unsigned int or ...


(cherry picked from commit f21740a0acc44ae5493bbe1f53b94acc14af0ac8)
2004-08-18 18:11:22 +00:00
Jeffrey Altman
fc128997e7 shortcut-params-20040804
Fix the retrieval of the shortcut params from the registry when the
HKCU\Software\Openafs\Client key exists but the AfscredsShortcutParams
is missing.
2004-08-04 16:54:42 +00:00
Jeffrey Altman
cb1730a07c windows-misc-20040803
Increase max chunksize to 128K from 32K.  Windows uses 64K SMB writes.
The large chunksize helps reduce the overlapped write to afs issue.

Increase number of server threads from 4 to 25.  Also helps to aleviate
the symptoms of the overlapped write to afs issue.  I can now write files
as large as 80MB.  120MB files still fail.

Export pr_CreateUser and pr_SNameToId from afsauthent.lib in order to
allow aklog.exe to use them to determine if a new pts uid should be
created for a user when accessing a foreign cell.

Modify pioctl to output a message to stderr if a Downgrade Detection error
has been returned when attempting to open the __IOCTL__ file.

Increase version number to 1.3.6601

Use HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer:Logon User Name
to determine the current user name for the afscreds.exe display

Do not allow submount names to have forward or backward slashes

Add debug info to cm_ioctl to track token addition and deletion

Add register new user code to aklog.exe from KenH's AFS kit

Correct test in cm_callback.c for freelance root.afs volume which
should not have been applied when freelance was not active.
2004-08-03 18:27:52 +00:00
Jeffrey Altman
acfafa740d submount-20040731
Change "Description" field to "Submount"
2004-08-01 01:20:34 +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
3ed4471744 user-auth-cell-20040720
remember to return the authentication cell name if found
2004-07-20 16:51:07 +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
a193405623 afscreds-aklog-only-20040626
Modify the Obtain Tokens dialog to allow a blank password
if a full principal name is provided.  (for aklog only requests)
2004-06-28 17:33:20 +00:00
Jeffrey Altman
3812a973cd user-instance-20040508
Enable afscreds.exe to support instance components of usernames
for non-kfw token retrieval
2004-05-09 05:39:05 +00:00
Joe Buehler
48e39b4943 ntmakefile-20040507
remove extraneous '*' characters from C2OBJ rules
2004-05-07 15:56:00 +00:00
Jeffrey Altman
847d870c14 mounttab-20040506
ensure that we do not access an array with -1
2004-05-06 21:52:16 +00:00
Jeffrey Altman
786ead5cef ipaddrchg-20040506
ipaddrchg.[ch]: contains the ip address change monitor thread functionality
                which was previously in afskfw.[ch] but which is now a
                library in src/WINNT/afsd
2004-05-06 15:21:44 +00:00
Jeffrey Altman
d44da96287 afscreds-20040506
creds.cpp:  add support for principal name instances to the Obtain Tokens
            function.  Previously instances were not parsed.

main.cpp:   Fix the -M (renewMaps) option to always call DoMapShare()

mounttab.cpp: When removing a drive mapping, remove the "active" entry
            from the afsdsbmt.ini file.
2004-05-06 15:19:19 +00:00
Jeffrey Altman
14005bc769 afskfw-library-20040504
Migrate KFW functionality from src/WINNT/client_creds/afskfw* into a
a new library to be shared by afslogon.dll, afscreds.exe

Add KFW support to afslogon.dll

====================
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.
====================

Migrate KFW functionality from src/WINNT/client_creds/afskfw* into a
a new library to be shared by afslogon.dll, afscreds.exe

Move IP Address Change Monitor into new source files.

Add smbname support to the KFW set token functionality in afscreds.exe
2004-05-04 23:48:15 +00:00
Jeffrey Altman
a40db2ebc0 kfw-upds-20040422
(1) remove the tkt_lifetime table which is no longer used

(2) improve the handling of token to k5 principal mapping

(3) assign the REALM to the token client name if the realm of
    the cell does not match the realm of the user
2004-04-23 04:43:24 +00:00
Jeffrey Altman
efd0c52372 cross-realm-obtain-tokens-afscreds-20040408
If afscreds.exe you can now obtain credentials for cell "foo.com" with
credentials from "user@BAR.COM" when specifying a password.  This is a
first step since if there are already valid credentials for "user@BAR.COM"
the password should not be requested.  That would allow you to obtain
tokens for multiple cells with the same kerberos tgt.
2004-04-09 00:32:03 +00:00
Jeffrey Altman
991edf329f i-need-sleep-20040406
* fix uninitialized return variables in smb.c and smb3.c

 * open the osi_log file as early as possible in afsd_init.c

 * create an argv to use for non-service executions

 * add support for \\afs\.cellname for rw volumes

====================
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.
====================

Do not use IsKerberosLogon() it does not always report the right value.
2004-04-06 09:53:15 +00:00
Jeffrey Altman
64fe0b914d lowercase-cell-20040402
Lowercase the cell name (from realm name) for which we are
requesting set/get token operations

Return the error code generated by the ktc_SetToken operation and
not one of the many Kerberos operations.
2004-04-02 11:41:58 +00:00
Jeffrey Altman
c357237a23 kfw-ak5log-20040401
Remove internally defined life_to_time.  Instead rely on version
in rxkad

Use kvno = RXKAD_TKT_TYPE_KERBEROS_V5 when setting tokens.  No longer
use krb524d.

Fix the assignment of the username and instance to place the instance
within the aclient.instance field instead of appended to the aclient.name
field.
2004-04-01 20:43:06 +00:00
Jeffrey Altman
784c86de8c windows-srvr-cfg-resource-20040401
Renumber and re-organize all of the String Table entries
to adhere to the rules specified for dynamically loading
them with the tools in WINNT/talocale.  All numbers must
be sequential.  Each block must begin on a mod 16 == 0
value.

====================
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.
====================

Update resource constants to avoid conflicts
2004-04-01 20:38:37 +00:00
Jeffrey Altman
a75d4cd3f8 ntmakefile-clean-20040401
Cleanup the *_component_version_number.* files in all directories
2004-04-01 20:29:38 +00:00
Jeffrey Altman
28c0534dfb no-getcellconfig-error-20040323
don't produce a MessageBox when getcellconfig fails
2004-03-24 08:32:16 +00:00
Jeffrey Altman
1612508689 non-kfw-probe-fix-20040319
Fix the non-KFW case of the KDC Probe.  Prevent infinite loop.
2004-03-20 01:01:07 +00:00
Jeffrey Altman
e1cc03f597 getipaddrlist-20040318
Improve error checking in GetNumOfIpAddrs to prevent potential
invalid memory access if the IP Address Table cannot be accessed.
(win2000 with no privs)
2004-03-19 05:16:24 +00:00
Jeffrey Altman
e8fc0557d3 notifyaddrchange-20040318
NotifyAddrChange() on Win2000 without privs fails.  Detect the failure
and terminate the IPChangeMonitor thread to prevent an infinite loop
eating up system resources.

Anyone have a clue which bits are required?
2004-03-19 01:09:40 +00:00
Jeffrey Altman
b0ba634844 registry-20040316
Fix the DependsOnGroup NetworkProvider key to ensure it is placed in
the correct location

Change the location of the ShowTrayIcon key so that we no longer store
user data in the HKLM Transarc tree

====================
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.
====================

Move the locations of the ShowTrayIcon and cell name based expiration
reminder keys out of the HKLM\SOFTWARE\Transarc... key and into the
{HKCU,HKLM}\SOFTWARE\OpenAFS\... tree.  This is safe to do because these
keys are transient in nature (created by afscreds.exe) and really do
belong to the user and not to the machine.
2004-03-16 16:21:42 +00:00
Jeffrey Altman
18fde45d13 kfw-thread-safety-20040315
Add a mutex semaphore around the kfw initialization code to prevent
multiple threads from attempting to initialize simultaneously.
2004-03-16 04:32:45 +00:00
Jeffrey Altman
04f4e98494 registry-call-optimizations-20040313
Do not read the same value from the registry three times in
the same function.
2004-03-13 18:28:39 +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
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
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
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
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
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
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