76 Commits

Author SHA1 Message Date
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
Derrick Brashear
33ada3676c rxkad-client-offer-better-bad-token-warnings-20020912
if it's too large to be a valid token, offer a useful error.
2002-09-13 03:48:45 +00:00
Chaskiel M Grundman
da1203ea20 prototypes-fixes-20020821
fix the following problems
- including osi_vfs.h on almost all platforms, even though afsincludes.h
already deals with it
- universally declaring afs_globalVFS as a struct vfs *
- declaring afs_stats_XferSumBytes in a header without a storage class
- using afsincludes.h without sysincludes.h
- make clean removes a source file in rxkad

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

irix needs this, put it back

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

cast parm argument to CreateProcess

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

more lwp createprocess fun

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

more lwp
2002-08-22 01:13:09 +00:00
Chaskiel M Grundman
89f411e22c darwin-updates-20020821
should be correct support for 10.2. also updates for 10.1
2002-08-21 23:07:52 +00:00
Nathan Neulinger
8f2df21ffe pull-prototypes-to-head-20020821
pull up prototypes to head
2002-08-21 19:52:17 +00:00
Quanah Gibson-Mount
9c29a6ead1 solaris-9-support-20020611
update hrestime interface
2002-06-12 01:03:17 +00:00
Derrick Brashear
b80ae7d78c use-private-xdr-in-kernel-to-avoid-conflicts-over-memory-ownership-20020608
allocating memory from a pool and then having it be freed out from under you is unwise
2002-06-08 08:44:09 +00:00
Chaskiel M Grundman
291e8352be cvsignore-updates-20020429
add missed fc_test
2002-04-29 16:32:24 +00:00
Chaskiel M Grundman
0c0eb03e9a rxkad-stats-initialize-to-placate-darwin-compiler-20020425
because it deals badly with common symbols
2002-04-25 22:18:23 +00:00
Love Hörnquist-Åstrand
f749ef6e02 rxkad-regression-test-20020228
regression test for rxkad
2002-03-20 18:59:56 +00:00
Love Hörnquist-Åstrand
19835f0a12 rxkad-make-stress-compile-again-20020119
Make stress compile again.
2002-01-20 02:17:12 +00:00
James Peterson
de99fc23d4 windows-updates-including-dont-lose-tokens-20011110
Win2k tokens association problems are fixed. details are in doc/txt/winnotes
in the 1.2.2a updates file
2001-11-10 22:31:04 +00:00