[5546] in Kerberos
Kerb4: Sample Server
daemon@ATHENA.MIT.EDU (Ayse Ekinci)
Mon Jul 24 21:00:06 1995
To: kerberos@MIT.EDU
Date: 25 Jul 1995 09:51:18 +1000
From: polat@deakin.edu.au (Ayse Ekinci)
(Please send replies direct to my email address .. )
Sample_server/Sample_client: problems, any help would be immensely
appreciated ..
Scenario:
Compiled Kerb4 sources with the following changes to the
/util/imake.includes/config.imake file:
GLOBAL_CDEFS= -Dsun -Dsparc -DSunOS=41 -DBSD42 -DKERBEROS -DVFS \
$(NOENCFLAG) $(DBMFLAG) $(SHMFLAG)
Fired up kerberos and kadmind.
Entered the following;
Principal Name: sample
Instance: testhost
in the database.
Created my srvtab file and placed it in /etc/srvtab
Before I tested the sample_server, I grabbed a ticket granting ticket using
the kinit and utility (otherwise i get an error):
Ticket file: /tmp/tkt1567
Principal: ayse@DEAKIN.EDU.AU
Issued Expires Principal Jul 24 13:03:38 Jul 24 21:03:38
krbtgt.DEAKIN.EDU.AU@DEAKIN.EDU.AU
(Nb: I made all the appropriate entries
to the /etc/services and /etc/inetd.conf files)
I then tried to run sample_server, using the following command:
/sample_client testhost 43
.. which responded with the following error message:
./sample_client: cannot authenticate to server: Generic kerberos error
(kfailure).
We tracked it down to the: krb_recvauth/krb_sendauth routine.
sample_server
/* we want mutual authentication */
authopts = KOPT_DO_MUTUAL;
status = krb_recvauth(authopts, 0, &clt_ticket,
#ifdef DEBUG
TEST_SERVER,
#else
SAMPLE_SERVER,
#endif
instance, &peername, &myname, &auth_data, SRVTAB,
sched, version);
I guess what concerns me is the fact that we might have to change the
source code. I thought kerberos would compile and run ok under our SUnOS
4.1 machines .... before we start changing the source is there something
very simple we neglected to do ie. with our compilation configuration or
database entries which would correct for the above mentioned error.
Many thanks in advance
In anticipation
ayse
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ayse Ekinci e-mail: polat@deakin.edu.au
Course Development Centre phone: +61 052 27 2546
Educational Development and Research Services
Deakin University phone AH: +61 052 :-)
Geelong, Victoria 3217 fax: +61 052 27 2177
AUSTRALIA
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~