124 Commits

Author SHA1 Message Date
Jeffrey Altman
58d5f38b10 pts-20070811
remove SUPERGROUPS condition for compilation of pts commands:
  Interactive, Quit, Source, Sleep

fix the assignment of 'source' to permit it to function

rename functions to avoid conflicts with Win32 API on Windows

replace bcopy and bzero with memcpy and memset to permit compilation
on Windows

replace ubik_Call(xxx) with ubik_xxx() (testpt.c)

add -DSUPERGROUPS and map.c to NTMakefile
2007-08-12 00:39:33 +00:00
Marcus Watts
d608809c24 supergroup-cleanup-20070516
FIXES 60809

Problems fixed with this patch:
/1/ supergroup bug: when updating an entry in prdb, the logic in
pt_mywrite is supposed to unset flagged & found bitmap entries.
This failed on little-endian architecture machines.

/2/ warnings; a few fixes to eliminate some compiler noise.
2007-05-16 20:54:42 +00:00
Marcus Watts
62dc197541 ptserver-fix-bitmap-20070516
FIXES 60680

make sure bitmap code is correct else supergroups returns invalid answer

fix verify code to be correct on little endian hosts
2007-05-16 20:42:56 +00:00
Derrick Brashear
e0fa8ff72f comerr-rename-20070410
nag nag nag
2007-04-10 19:58:13 +00:00
Marcus Watts
9dd8d7f817 auth-cleanup-20070208
FIXES 53208

remove unneeded includes of auth.h
2007-02-09 00:57:39 +00:00
Olivier Calle
36233e1e31 multiple-local-realms-20070201
FIXES 52459

when the name is foreign, execute the body of afs_is_foreign_ticket_name

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

The Name to ID RPC must distinguish between local and foreign names
2007-02-07 04:52:18 +00:00
Kevin Hildebrand
b975875e79 pts-rename-fix-20070105
FIXES 51066

fix pts rename to do the right thing
2007-01-05 18:20:08 +00:00
Derrick Brashear
aab62fe05e pr-changeentry-arg-types-20070105
oops. put it back
2007-01-05 06:02:28 +00:00
Tom Keiser
453abf6aa1 aix-cleanup-20061013
fixes for aix pre 5.2 (statfs64), remove a c++ style comment (makes xlc sad) and
 make clean target clean
2006-10-13 14:06:38 +00:00
Derrick Brashear
955a58a5a8 pr-changeentry-arg-types-20060921
FIXES 40568

this has been broken a while, we just noticed it because of prototypes
2006-09-21 22:10:28 +00:00
Derrick Brashear
57101f38a0 fix-afsconf-leak-20060916
this one's not a leak
2006-09-16 20:40:19 +00:00
Jeffrey Altman
de5f1c47e8 afsconf-leak-20060915
don't leak afsconf structs
2006-09-16 00:17:23 +00:00
Russ Allbery
3a34d8cb4f autoconf-likes-relative-paths-20060802
When using the install-sh that ships with the source tree, Autoconf
substitutes in a relative path just to be annoying.  Define the INSTALL
variables in each individual Makefile so that they find the proper file.
Remove the definitions from Makefile.config so that no one will
accidentally get the wrong ones.
2006-08-03 03:37:12 +00:00
Russ Allbery
8df5dcbc91 death-to-pinstall-20060801
Delete pinstall and convert the entire tree to use the install program
found by configure (falling back on install-sh in the local tree).  This
means that we have to pre-create directories with install -d.  Also redo
the install and dest rules to be lists of install rules rather than
dependencies driving separate make rules so that running make install will
always update the target directory with the current code, even if there are
files in the install area that are newer.

Stop installing libafssetpag; we're about to kill it in favor of a
different library.  Remove some djgpp rules.
2006-08-01 21:03:54 +00:00
Jeffrey Altman
941ac04165 ubik-call-sucks-20060704
make ubik_Call removal work on 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.
====================

another fix for Windows
2006-07-04 22:22:35 +00:00
Derrick Brashear
e117599fe1 fileserver-hates-pruclient-20060626
right now there is one struct ubik_client shared by all threads in the fileserve
r, which sucks when one has it locked

let's, uh, fix that.
2006-07-04 04:57:05 +00:00
Derrick Brashear
4478d3a99a ubik-call-sucks-20060703
ubik_Call's pseudo-varargs construction is hideous

put it out of its misery where possible
2006-07-04 04:50:46 +00:00
Jeffrey Altman
7af6b06cb6 rxbind-for-servers-20060620
do not call parseNetFile on Windows where the function does not exist
2006-06-20 21:32:55 +00:00
Derrick Brashear
592d97f947 rxbind-for-servers-20060612
FIXES 32308

support -rxbind switch for servers
2006-06-13 01:28:48 +00:00
Jim Rees
b89082ac89 cmd-protos-20060313
Fix protos for cmd funcs.
2006-03-13 23:15:44 +00:00
Jeffrey Altman
7b33107a9c multiple-local-realms-fix-20060313
Fix use of "=" instead of "==" in conditional.

Re-order parameters of afs_is_foreign_ticket_name for consistency
2006-03-13 15:09:40 +00:00
Ed Moy
9f94892f8d darwin-x86-and-leopard-20060309
updates for darwin x86, and pre-leopard
2006-03-09 06:35:14 +00:00
Jim Rees
3adadbb228 const-args-20060303
add const qualifiers to pr_Initialize and vl_Initialize args
2006-03-03 20:27:23 +00:00
Jeffrey Altman
0ef21914da server-rxmaxmtu-option-20060221
add -rxmaxmtu <bytes> to allow setting the max send and receive RX MTU size
2006-02-22 04:07:34 +00:00
Tom Keiser
73f52f37e4 osi-audit-locking-fix-20060201
FIXES 25955

fix aix builds
2006-02-01 16:09:01 +00:00
Jeffrey Altman
dc694b3360 windows-ptc-rc-20051227
for ptclient.exe
2005-12-27 20:00:10 +00:00
Jeffrey Altman
544dedb6ed multiple-local-realms-20051208
This patch extends the krb.conf file allowing the specification of
multiple realms which should be treated as equivalents to the local
cell authentication domain.  Additional realms are specified on the
first line of the krb.conf file and are separated by white space.

In addition, the patch adds a new file stored in the same directory
as the krb.conf file called krb.excl.  This file contains a list of
principal names, one per line, that must not be treated as local
identities.

The purpose of this patch is to allow organizations that are supporting
multiple realms with synchronized user principal databases to allow
their users to login with any of the realms and treat the principal
names as equivalent to the local PTS identity.   The exclusion is
to allow certain names, such as those for administrative IDs, to be
restricted to a subset of the realms.

Further optimization of the afs_krb_exclusion() should be performed to
remove the need to re-read the file.  This patch should be considered
a temporary solution until a more permanent set of extensions to the
PT database and RPCs allow for the assignment of mechanism specific
aliases for PT IDs.

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

correction to exclusion list parsing
2005-12-15 05:51:24 +00:00
Jeffrey Altman
b02d80508f windows-64-bit-type-safety-20051105
64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

====================
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 corrections for use of 64-bit types on Windows

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler

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

64-bit type safety changes required for successful compilation
on Windows 64-bit systems with the VS 2005 compiler
2005-11-06 09:29:36 +00:00
Derrick Brashear
0c67857911 pt-util-no-cmd-seek-20050715
i guess someone was dumb at some point and failed to completely remove bogus options
2005-07-15 20:16:27 +00:00
Jeffrey Altman
85d429528b audit-add-and-fix-messages-20050708
update and add some more audit logging

====================
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 logging of authenticated user name
2005-07-09 15:20:38 +00:00
Jeffrey Altman
46ff986a42 pr_Initialize-fix-20050707
The previous patch to pr_Initialize() opened an opportunity for
afsconf_Check() to be called with a NULL pointer if tdir == 0.
Prevent this occurrance.

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

fixed one null pointer reference but not the other.

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

commit the rest of jeff's fix
2005-07-08 20:58:25 +00:00
Derrick Brashear
16d67791dc auditlogs-for-everyone-20050702
all servers now take -auditlog (path), send ibm-style auditlogs there, rotate the logs like the normal server logs, and will log thread ids when it's multiprocessor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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


all servers now take -auditlog (path), send ibm-style auditlogs there, rotate th
e logs like the normal server logs, and will log thread ids when it's multiproce
ssor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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


all servers now take -auditlog (path), send ibm-style auditlogs there, rotate th
e logs like the normal server logs, and will log thread ids when it's multiproce
ssor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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


all servers now take -auditlog (path), send ibm-style auditlogs there, rotate th
e logs like the normal server logs, and will log thread ids when it's multiproce
ssor. /usr/afs/local/Audit can also be used like on aix on other platforms now.

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

Windows build dependency changes to support the audit logs
2005-07-05 16:33:24 +00:00
Jeffrey Altman
0fed4743ae pts-logging-20050619
enhance pts logging
2005-06-30 06:06:54 +00:00
Jeffrey Altman
c4b1decf6c pr_init-fix-20050623
for the longest time aklog implementations with automatic pts registration
have included a work around for a bug in pr_Initialize.  The bug fails to
reset the connection when the cell changes.  This patch fixes that bug.

====================
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 longest time aklog implementations with automatic pts registration
have included a work around for a bug in pr_Initialize.  The bug fails to
reset the connection when the cell changes.  pr_Initialize has been fixed
so we can remove the hack.

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

remove the pr_Initialize force cell change hack from afskfw lib
2005-06-23 15:23:50 +00:00
Jeffrey Altman
13814630d6 pts-logging-20050620
Modify log levels to equal:
  Lookups at 125
  Creates at 25
  Modifies at 5

Modify Windows makefile to build ptclient.exe
2005-06-20 15:01:22 +00:00
Jeffrey Altman
a63ba494bf pts-logging-20050619
enhance pts logging
2005-06-19 18:56:44 +00:00
Derrick Brashear
f2558d6b89 add-ptprocs-prototype-use-20050426
thanks to Chris Wing for pointing this out
2005-04-27 02:49:47 +00:00
Jeffrey Altman
eb71287333 missing-eof-20050417
add missing eof
2005-04-18 03:28:31 +00:00
Derrick Brashear
93ece98ccb ptserver-restricted-mode-20050415
add restricted mode to pts
only admins can make changes
2005-04-15 20:39:33 +00:00
Jeffrey Altman
0b90d69f8a 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.
2005-03-11 05:33:12 +00:00
Jeffrey Altman
48ba9a0cd5 ptuser_h-20050102
add ptuser.h to provide prototypes for ptuser.c

====================
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 ptuser.h
2005-01-03 01:13:44 +00:00
Jeffrey Altman
9ce92cb420 uninitialized-vars-20041013
FIXES 15604

 initialize flags in SetFields so that it has a default value
 otherwise a runtime exception is generated on windows due to
 lack of initialization before use.
2004-10-13 15:23:25 +00:00
Derrick Brashear
d114c46e85 pr-initialize-dont-leak-ref-20041009
we were leaking an afsconf_Open ref. let's not.
2004-10-10 03:03:11 +00:00
Derrick Brashear
d4d2fc4386 generic-client-init-function-20041009
FIXES 15464

so we can have this code in just one place
2004-10-10 02:53:32 +00:00
Kevin Coffman
7e7475981f revert-fix-seclevel-20041006
Ticket #15367
revert rev 1.12 fix-seclevel-20030213:
Use requested security level instead of "clear" in pr_Initialize
2004-10-06 18:35:19 +00:00
Jeffrey Altman
432479c4bb mpr-lib-required-20040805
All executables which include the pioctl functions now require mpr.lib
to be linked
2004-08-05 17:31:34 +00:00
Marcus Watts
d763078f3a ptserver-flags-default-switch-20040623
FIXES 5418

allow ptserver flags to be defaulted different per switch
2004-06-23 16:01:04 +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
Marcus Watts
d344a58423 ptserver-flags-default-switch-20040623
FIXES 5418

allow ptserver flags to be defaulted different per switch
2004-06-23 14:45:09 +00:00
Jeffrey Altman
6b488b4c99 batch-commits-windows-20040529
* Fixed DNS lookups to work consistently throughout the OpenAFS
     product instead of just from within the afsd_service.exe

   * Added a runtime check to ensure that AFS Client Service SMB
     Server is accepting connections before attempting to mount
     global drives.

   * Read IP addresses for volume servers out of the CellServDB
     file if gethostbyname() on the hostname fails.

   * Fix getcellconfig() to populate both the Hostnames as well
     as IP addresses when loading cell data via DNS

   * Increase the Connection Dead Time to 50 from 20 seconds
     Increase the Hard Dead Time to 120 from 40 seconds
     (matches the Unix values)

   * Fixed an assertion validating the number of allocated NCBs

   * Fixed the build environment to consistently build for
     Windows 2000 and above.  (APPVER = 5.0)

   * Fixed rx_debug to properly validate the receipt in incoming
     data with select() and recvfrom().  Do not copy data out of
     the socket buffer unless success is indicated.
2004-05-30 00:47:59 +00:00