From: "Costas A. Makris" <c.a.makris () cytanet ! com ! cy>
To: tru64-unix-managers
Subject: SUMMARY: Tacacs Plus for DU?
Date: Fri, 17 Jan 1997 12:12:56 +0000 [thread overview]
Message-ID: <96076450423232.tru64-unix-managers.marc@archive.invalid> (raw)
Original question:
>Has anybody compiled succesfully Tacacs Plus 2.1 for Dec Unix?
>
>If yes can you please send me the necessary changes I have to make to the
>source.
Answers thanks to:
1. Tom McDonough <mcdonoug@noc.fas.harvard.edu>
2. Franco Tassone <franco@www.rgn.it>
I tried the first one and worked.
======================================================================
Answer 1:
Below are diffs indicating the changes we made. I don't
believe there were any other changes made. It works without
error.
Tom McDonough
Harvard University
FAS Network Operations
--------
# uname -a
OSF1 aaa.fas.harvard.edu V4.0 464 alpha
# diff Makefile Makefile.orig
10,15d9
< # For DECOSF added 961125 (TDM)
< #
< CC = cc
< OS=-DDECOSF
< INCLUDES=-lsecurity
<
59c53
< PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
---
> # PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
107c101
< cp tac_plus.1 /usr/local/man/man1/tac_plus.1
---
> cp tac_plus.1 /usr/man/manl/tac_plus.l
# diff tac_plus.h tac_plus.h.orig
50,53d49
< #ifdef DECOSF
< #define NO_PWAGE
< #endif
<
# diff tac_plus.1 tac_plus.1.orig
33c33
< .B /var/run/tac_plus.pid ,
---
> .B /etc/tac_plus.pid ,
197c197
< .B /var/run/tac_plus.pid
---
> .B /etc/tac_plus.pid
---------
======================================================================
Answer 2:
Hello mr. Costas,
I've just builded tac_plus on a OSF/1 platform (DU I suppose).
The only thing I had to do is to add the following line in the Makefile file:
OS=-DBSDI
Here is the entire Makefile:
--- Cut here ---
# Please NOTE: None of the TACACS code available here comes with any
# warranty or support.
# Copyright (c) 1995 by Cisco systems, Inc.
# All rights reserved.
VERSION = 2.1
# CC = gcc
OS=-DBSDI
# For AIX
# CC=bsdcc
# OS=-DAIX
# For HP/UX uncomment the following line
# OS=-DHPUX
# For MIPS, uncomment the following line
# OS=-DMIPS
# For Solaris (SUNOS 5.3, 5.4) uncomment the following two lines
# OS=-DSOLARIS
# OSLIBS=-lsocket -lnsl
# For FreeBSD
# OS=-DFREEBSD
# You may also need to add
# OSLIBS=-lcrypt
# For LINUX
# OS=-DLINUX
# Athough invoked as root, most of the time you don't want tac_plus to
# be running as root. If USERID and GROUPID are set, tac_plus will
# attempt change to run as that user & group after reading the
# configuration file and obtaining a privileged socket. If you always
# want tac_plus to run as root, then just comment out the FLAGS line.
# USERID = 1500
# GROUPID = 25
# FLAGS = -DTAC_PLUS_USERID=$(USERID) -DTAC_PLUS_GROUPID=$(GROUPID)
# Definitions for SKEY functionality
# DEFINES = -DSKEY
# LIBS = ../crimelab/skey/src/libskey.a
# INCLUDES = -I../crimelab/skey/src
DEBUG = -g
# On startup, tac_plus creates the file /etc/tac_plus.pid (if
# possible), containing its process id. Uncomment and modify the
# following line to change this filename
# PIDFILE = -DTAC_PLUS_PIDFILE=\"/var/run/tac_plus.pid\"
#
# End of customisable section of Makefile
#
CFLAGS = $(DEBUG) $(DEFINES) $(INCLUDES) $(FLAGS) $(OS) $(PIDFILE)
SRCS = acct.c authen.c author.c choose_authen.c config.c do_acct.c \
do_author.c dump.c encrypt.c expire.c md5.c \
packet.c report.c sndpass.c tac_plus.c utils.c pw.c hash.c \
parse.c regexp.c programs.c enable.c pwlib.c default_fn.c \
skey_fn.c
OBJS = $(SRCS:.c=.o)
all:
@echo "Please edit the Makefile and then make tac_plus"
tac_plus: $(OBJS) $(LIBS) generate_passwd
$(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
purecov: $(OBJS) $(LIBS)
purecov -follow-child-processes -handle-signals=SIGTERM \
$(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
purify: $(OBJS) $(LIBS)
purify $(CC) -o tac_plus $(CFLAGS) $(OBJS) $(LIBS) $(OSLIBS)
generate_passwd:
$(CC) $(CFLAGS) -o generate_passwd generate_passwd.c $(OSLIBS)
saber:
#load $(CFLAGS) $(SRCS) $(LIBS)
clean:
-rm -f *.o *~ *.BAK tac_plus generate_passwd
tar:
-rm -rf tac_plus.$(VERSION)
-mkdir tac_plus.$(VERSION)
-mkdir tac_plus.$(VERSION)/bin
cp CHANGES $(SRCS) expire.h parse.h regmagic.h md5.h regexp.h
tac_plus.h convert.pl generate_passwd.c tac_plus.1 users_guide Makefile
tac_plus.$(VERSION)
cp bin/tac_plus* tac_plus.$(VERSION)/bin
tar -cvf - ./tac_plus.$(VERSION) > tac_plus.$(VERSION).tar
install:
cp tac_plus /usr/local/bin
cp tac_plus.1 /usr/man/manl/tac_plus.l
depend:
makedepend $(CFLAGS) $(SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.
--- Cut here ---
___________________________________________________________________
Dr Costas A. Makris email: c.a.makris@cytanet.com.cy
tel: +357 2 310711
CYPRUS TELECOM. AUTHORITY fax: +357 2 316655
Network Operation & Maintenance WWW: http://www.cytanet.com.cy
P.O.Box 4929, CY-1396 Nicosia
CYPRUS
reply other threads:[~1997-01-17 12:12 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox