87 Commits

Author SHA1 Message Date
Chas Williams
6730941098 STABLE14-solaris10-optimization-20050602
FIXES 17262

declare certain things volatile to make solaris compiler less cranky


(cherry picked from commit 23cbd8f646dac8dbe3d5615e8a59e1170a281f07)
2005-06-02 06:21:57 +00:00
Chas Williams
9814c83165 STABLE14-d-reval-one-more-20050531
last try
2005-05-31 22:12:51 +00:00
Derrick Brashear
8ee42e8dba STABLE14-rxkad-stats-cleanup-20050530
minor reorg so everything links ok


(cherry picked from commit c87ae4f82cacacef68a2b54ad21e17ac6d5ddfae)
2005-05-30 19:30:36 +00:00
Tom Keiser
b7ec978332 STABLE14-pthread-rxkad-stats-20050529
FIXES 17547

speed up rxkad by keeping stats per-thread


(cherry picked from commit 25b0681893b3c41cfeba213f9a6b7bfd0d85c685)
2005-05-30 05:57:34 +00:00
Jim Rees
d53f1d0826 STABLE14-obsd-time-20050520
Remove extern time from OBSD/osi_machdep.h. It's in sys/kernel.h.
Suggested by irene.braun@ualberta.ca.


(cherry picked from commit c20d9c0eabb6f6186f21e2f5bd7e125c9a9aee37)
2005-05-23 22:17:29 +00:00
Peter Somogyi
a01b7fee7b STABLE14-fix-rxkad-prototype-20050415
FIXES 18079

fix cbc_encrypt prototype


(cherry picked from commit c38270884ad47b4d04d6212739e2fcee34568d3a)
2005-04-15 19:35:46 +00:00
Niklas Edmundsson
2cd086444c STABLE14-aix5-allocator-cleanup-20050403
* Removed memory allocation functions only used on AIX and ancient
   HPUX. If the performance penalty is noticeable, implement a wrapper
   at the osi-level in the same manner as LINUX/FBSD (ie not sprayed
   throughout the code).
* Removed all remnants of splnet()-style locking, it was not
   sufficient for MP anyway which the real locks are. Affects only AIX
   and HPUX.
* Drop the global locking in rxi_Alloc since the real locks do their
   jobs, affects only AIX41 and up (ie. MP capable OS).
* Fix the non-kernel wrapper for osi_Alloc/Free on AIX to take void *
   in the same manner as the rest of the functions. IMO this wrapper
   shouldn't be necessary since you should never ever malloc() 0 bytes,
   but since it's there I'd guess someone made stupid assumptions
   somewhere...
* Restores MAXKTCTICKETLEN to 12000 on AIX
* Restores AFS_LWP_MINSTACKSIZE to 48k on AIX (might affect
   server-stuff)


(cherry picked from commit 412854593cf368006c18e6c0dc607a9ecd76a0e0)
2005-04-03 19:18:54 +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
Harald Barth
5b8a2ad7f1 STABLE14-aix-5-update-20041207
updates for aix 5


(cherry picked from commit beff42414aeb908b141f116d2b47b2a5baee28ad)
2004-12-07 16:48:34 +00:00
Jeffrey Hutzelman
2d4e637b93 STABLE14-rx-dewarnify-20041202
FIXES 16277

dewarnify rx


(cherry picked from commit ffce916e8e37662bb032287a06ee85c28c5e2b3a)
2004-12-07 06:10:05 +00:00
Nathan Neulinger
33fe4bd130 STABLE14-update-objdir-20041110
make objdir builds work (with fix from shadow@dementia.org in src/rxkad/...)


(cherry picked from commit fbec56963df5d556056e4da37c3b6468a1ca69c5)
2004-12-07 05:49:33 +00:00
Derrick Brashear
3239d37b30 STABLE14-resync-20041018
cheat. pull in all the 1.3.72->head changes in one delta
2004-10-18 18:43:44 +00:00
Derrick Brashear
df7ff685b7 STABLE14-resync-20041018
cheat. pull in all the 1.3.71->head changes in one delta
2004-10-18 08:11:37 +00:00
Derrick Brashear
502d1eae21 STABLE14-get-ready-for-71-20040825
work around aix problem
update configure scripts
2004-08-25 08:20:25 +00:00
Nickolai Zeldovich
6a6997008a STABLE14-fix-indent-bug-with-lock-macros-part-four-20040819
Thanks to jaltman for pointing out some files I missed
(basically those in two-level deep directories).


(cherry picked from commit b0f773c41c68fd7833a669693d30b27a12f3ba8e)
2004-08-25 08:17:01 +00:00
Nickolai Zeldovich
771f8f764c STABLE14-fix-indent-bug-with-lock-macros-part-three-20040818
Add trailing semicolons to more macros and re-indent.


(cherry picked from commit 06478aeaae1e7812230f31c63e9cae8b7cc1b643)
2004-08-25 08:09:32 +00:00
Jeffrey Altman
d03840f85c smb-auth-20040711
Over last several years significant efforts have been made to work around
the inability to protect user tokens from use by inappropriate entities.
The tokens are associated with a given userid and session by a combination
of an SMB based ioctl and an authenticated/encrypted RPC.  This has opened
the door for tokens to be borrowed by other users if they could connect
to the same SMB server with the identical userid.  This was trivially
possible because the SMB connections were unauthenticated.

This patch adds two forms of authenticated SMB connections: NTLM and
Extended Security (aka GSS SPNEGO).  By default Extended Security mode
is used.  This patch has been tested on 2000 workstation, 2000 server,
XP SP1, and 2003 Server, and XP SP2 RC2.  The Extended Security works on
all platforms except for XP SP2 RC2 regards of whether or not the machine
is part of a domain or not; and whether or not a local or domain account
is used.

On XP SP2 RC2, attempts to use negotiate Extended Security result in a
Logon Denied error from AcceptSecurityContext() and a substatus code of
0x7C90486A is logged to the Security Event log via the NTLM SSP.
The SMB AUTH NTLM mode succeeds on XP SP2 RC2.

Disabling SMB Authentication or specifying the use of NTLM mode may be done
via the registry.

Value   : smbAuthType
Type    : DWORD {0..2}
Default : 2

  If this value is specified, it defines the type of SMB authentication
  which must be present in order for the Windows SMB client to connect
  to the AFS Client Service's SMB server.  The values are:
    0 = No authentication required
    1 = NTLM authentication required
    2 = Extended (GSS SPNEGO) authentication required
  The default is Extended authentication
2004-07-11 22:22:57 +00:00
Derrick Brashear
4e2c9285f4 prototyping-20040623
i had this laying around, i don't know from when, but i should flush it to cvs
2004-06-23 15:27:35 +00:00
Derrick Brashear
05060d5325 provide-fPIC-method-for-amd64-20040508
FIXES 3680

allow building fPIC on amd64
2004-05-10 04:18:58 +00:00
Nickolai Zeldovich
daa011af02 more-memory-leak-fixes-20040418
Another memory leak plugged; thanks to Jeffrey Altman for noticing it.
2004-04-19 06:43:58 +00:00
Nickolai Zeldovich
6f22e163a5 memory-leak-fixes-20040417
Fix some memory leaks.
2004-04-18 07:13:47 +00:00
Jeffrey Altman
6a3068af6a md4-md5-20040408
Integration of Heimdal MD4/MD5 code

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

Integration of Heimdal's MD4/MD5 code

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

Integrate Heimdal's MD4/MD5 code

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

Integrate Heimdal's MD4/MD5 code

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

Integrate Heimdal's md4/md5 code

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

Integration of Heimdal's MD4/MD5 code
2004-04-09 07:48:22 +00:00
Jeffrey Altman
536c4547d6 even-larger-ticket-sizes-20040403
Microsoft Windows 2003 max ticket size is 12000
2004-04-03 08:59:53 +00:00
Jeffrey Altman
2d0b67fed0 unitialized-return-variable-20040402
krb5_des_decrypt() does not initialize the return value to 1, failure,
therefore it returns random success (0) values when ticket types of
DES-CBC-MD5 or DES-CBC-MD4 are used because we do not have checksum
functions for those types.
2004-04-02 17:41:27 +00:00
Jeffrey Altman
1503077a55 rxkad-increase-token-ticket-sizes-20040401
In order to support the large ticket sizes produced by Microsoft
Active Directory and allow the use of raw Kerberos 5 tickets as tokens
increase the size of MAXKTCTICKETLEN and MAXKRB5TICKETLEN to 4096
from 344 and 1024 respectively.
2004-04-01 20:53:49 +00:00
Derrick Brashear
7e1b1a2e0d macos-build-update-20040310
make the head build again.
2004-03-10 08:35:38 +00:00
Jeffrey Altman
21caaae64f ticket-2618-patches-20031207
TICKET 2618

flexelint patches for prototype handling from Joe Beuhler

>>>>>>>>>>>>>>>>>>>>>>>>>>>>

This patch adds a bunch of missing prototypes, makes various
corrections to global prototypes, and removes global declarations that
are not needed.

One set of added prototypes is commented out because it applies to
some printf-like functions that are implemented the way it used to be
done before varargs existed, and they need to be unprototyped or the
code will fail to compile.  (There are a number of functions in the
OpenAFS code that need to be converted to use varargs...)

There is one place of note in src/WINNT/afsd/fs.c where typedefs for
afs_int32 and afs_uint32 conflict with afs/stds.h.  I just added a
note to that effect.

Prototypes in src/WINNT/afsd/fs.c are incorrect for Windows NT.  I
don't know whether the return type involved changes from platform to
platform -- they come from .xg files.

Some prototypes are now commented out or #ifdef'd to match the code
that uses them.

Some global variables conflict between modules and have been made static.
The bufferBlock variable was of two completely different types...

In src/config/stds.h, I changed the declaration of afs_intmax_t to
reflect the fact that the Windows platform supports 64 bit integers.
This may be incorrect semantically, but I believe it is needed for the
%llx format to match afs_intmax_t arguments (for printing of inodes
mainly, I believe).

There were two different declarations for the rxkad_stats structure --
I synced them up.

- Joe

Removed the conflicting typedefs from src/WINNT/afsd/fs.c

Removed the changes to src/config/stds.h.  Added declaration of
AFS_64BIT_CLIENT to src/config/NTMakefile.i386_nt40 instead.

Do not remove unused variables which are defintions of data type
values.  Instead comment them out to avoid space utilization and
warnings.
2003-12-07 22:49:00 +00:00
Jeffrey Altman
10750393dc jbuelhler-flexelint-aggregate-initialization-patches-20031129
This patch mainly makes explicit some initializations that were implicit.

There are several places where it looks like the missing initialization
may be a bug, and I have inserted comments to that effect in the
relevant patches.  Someone needs to look at them and supply
whatever is missing (if anything is).

In make_keyperm.c, an array was sized too large.
--
Joe Buehler
2003-11-29 20:23:24 +00:00
Jeffrey Altman
98544e6ab4 patch-from-shadow-to-jaltman-bkbox-20031120
This massive patch contains changes in several significant areas for Windows:

- the ability to specify the mount point to be something other than /afs

- functionality to assist debugging of the NT Services

- support for languages other than English (NTLang.bat)

- revisions to the Build system to support separate trees for src, obj,
  dest and free or checked; allow any MS compiler to be used

- updates to NSIS installer build

- mutex locking added to critical locations

- updates to IS5 directory tree creation

- update to afswsNetscape_config.sh
2003-11-21 07:59:35 +00:00
Ed Moy
e2e93aa892 macos103-20031024
FIXES 2325

support for macos 10.3 for 1.2.10
2003-10-24 07:25:58 +00:00
Derrick Brashear
872bc94f8c reindent-20030715
FIXES 1774

thanks to nneul@umr.edu for providing a script to do this.
gnu indent 2.2.9 options:
-npro -nbad -bap -nbc -bbo -br -ce -cdw -brs -ncdb -cp1 -ncs -di2 -ndj -nfc1
-nfca -i4 -lp -npcs -nprs -psl -sc -nsob -ts8

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

fix subst mistake
2003-07-16 00:28:24 +00:00
Derrick Brashear
ecfcebec10 rxkad-ticket-cleanup-20030610
kill forward decls and dead code.
2003-06-10 21:42:51 +00:00
Derrick Brashear
8a33c2d8a5 rxkad-check-tkt-length-20030610
tkt_DecodeTicket didn't seem to check that ticketLen < MAXKTCTICKETLEN

didn't matter since no callers failed to check, but we should enforce this where the limit is
2003-06-10 20:18:34 +00:00
Love Hörnquist-Åstrand
429cc8b646 rxkad-2b-deal-with-expiry-20030410
FIXES 1369

return the actual error and not RXKADBADTICKET always
2003-04-10 19:55:03 +00:00
Nathan Neulinger
45dd8988f2 rxkad2b-allow-no-kvno-20030325
allow a missing kvno field to work usefully
2003-03-25 21:10:40 +00:00
James Peterson
5df76f7321 windows-build-updates-20030314
support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:

Base from %AFSROOT% environment variable
%AFSROOT%\src\... - all source and generated source
%AFSROOT%\obj\checked\... objects from a checked build
%AFSROOT%\obj\free\...    objects from a free build
%AFSROOT%\obj\dest\checked\...  DEST folder from a checked build
%AFSROOT%\obj\dest\free\....    DEST folder from a free build

Before you start the build, you must build an object tree by issuing the
following:

nmake -f NTMAKEFILE mkdir

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

support for V6.0 and .Net complier, compile from either NT4.0 or XP
Source and object are separated into different directories.  The directory
tree would look as follows:
2003-03-14 20:11:44 +00:00
Derrick Brashear
863b113a4d cleanup-licensing-and-transarc-references-20030309
tired? on a plane? need some mindless (maybe that's mind-numbing) stuff
to work on? clean up licensing and references in code comments. it's big fun.
2003-03-10 01:59:12 +00:00
Nathan Neulinger
a8e42dca5c makefile-dependancies-20030113
add more dependancies
2003-01-13 18:31:13 +00:00
Nathan Neulinger
580af44321 makefiles-cflag-cleanup-20030111
move cflags back to makefile.config, more cleanup, dup removal
2003-01-11 07:33:52 +00:00
Jeffrey Hutzelman
2be60b7ee4 rxkad-be-openssl-keyschedule-safe-20030111
openssl has larger keyschedules than we do

crypto api is all so unfortunate
2003-01-11 07:31:08 +00:00
Sam Hartman
b8dbb6e0c9 Do v5/v4 principal name translation. 2002-12-23 23:53:26 +00:00
Derrick Brashear
98e536b4cc revert-rxkad-new-fcrypt-20021028
until we know why it's brokenn
2002-12-10 15:32:23 +00:00
Love Hörnquist-Åstrand
21e056922d rxkad5-dont-allow-dot-in-aname-20021114
otherwise we need to deal with the fact that we're using . as a separator
2002-11-15 05:02:33 +00:00
Jim Rees
822d725f80 openbsd-20021112
Remove size test in afs_buffer.c:DRead().
Cleanups and prototypes.
OpenBSD client works now, at least readonly.
2002-11-12 23:57:37 +00:00
Derrick Brashear
da3dad6730 bg-fcrypt-cleanup-20021030
make the libafsrpc libraries work with new fcrypt

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

readd missing statistics
make cm and ukernel compile with new stuff

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

readd missing statistics
make cm and ukernel compile with new stuff

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

make it work with ukernel macros
2002-10-31 00:19:55 +00:00
Love Hörnquist-Åstrand
ea57d1062c rxkad-new-fcrypt-20021028
rxkad fcrypt from bg@pdc.kth.se. we should also add autoconf test for what
to use for EFF_NTOHL
2002-10-29 00:05:06 +00:00
Derrick Brashear
05a3224474 rxkad-krb5-windows-fix-20021028
based on report from leg@andrew.cmu.edu
2002-10-28 22:51:34 +00:00
Love Hörnquist-Åstrand
ce34c263e6 rxkad-krb5-20021027
Added support to rxkad for servers accepting Kerberos V5 tickets and
truncated "proposal 2b" tickets.  When used with an appropriate aklog
or krb524d (such as shipped with Heimdal and MIT Kerberos), this allows
the use of Kerberos V5 tickets (with DES session keys) to authenticate
connections to OpenAFS servers.
2002-10-28 01:18:38 +00:00
Jim Rees
b68affbc6c openbsd-20021016
Fix includes for mbuf.h, if.h
auth/cellconfig.p.h:
  Use (void *) for 2d arg to afsconf_ClientAuth(), since we have no def for
  struct rx_securityClass at this point

====================
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 OpenBSD merge
prototypes
cleanup
2002-10-16 18:48:47 +00:00
Nathan Neulinger
782109a29b no-copy-libafs-builds-20021015
make things so file copies from src/libafs don't happen; change how libafs_tree is done
2002-10-16 04:58:13 +00:00