[2227] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

sbin/kadmind core dumps; a couple of doc bugs.

daemon@ATHENA.MIT.EDU (Paul Leyland)
Mon Sep 16 11:11:58 1996

Date: Mon, 16 Sep 1996 16:11:17 +0100 (BST)
From: Paul Leyland <pcl@sable.ox.ac.uk>
To: krb5-bugs@MIT.EDU
Cc: pcl@sable.ox.ac.uk


I've built the K5B7 distribution as detailed in the Installation
document dated 11 September 1996.  My environment is:

	DEC 5000/240 running Ultrix 4.5
	gcc V 2.7.2


I've got as far as creating the krb5.conf and kdc.conf files.  I then
ran

/usr/local/sbin/kdb5_util create -r OX.AC.UK -s

That went successfully, as far as I can tell, and created the
appropriate files.  Next step was to do:

# /usr/local/krb5/sbin/kadmin.local
kadmin.local:  addprinc admin/admin@OX.AC.UK

again, this was apparently successful.

Next, following the documentation, I tried /usr/local/sbin/kadmin but
this failed with a message now lost, but something along the lines that
it couldn't find a kadmind --- entirely reasonable, as I hadn't started
one.  That's a documentation bug.

I tried again with /usr/local/krb5/sbin/kadmin.local and (apparently)
successfully managed "ktadd -k /usr/local/lib/krb5kdc/kadm5.keytab
kadmin/admin kadmin/changepw".  
The file /usr/local/lib/krb5kdc/kadm5.keytab now exists and has 109
bytes in it.

Next stage (4.1.1.6) was to start the daemons on the master KDC.  The
first one, /usr/local/sbin/krb5kdc, seemed to work fine and I can,
indeed, kinit myself to admin/admin with the password I chose, and get a
sensible answer from klist.

Unfortunately, /usr/local/sbin/kadmind fails reproducibly with a
segmentation violation and a core dump.   A quick rummage with dbx
shows:

dbx version 3.0.1
Type 'help' for help.

signal Segmentation fault at   [sscanf:114 ,0x4b52a8]    Source not available
(dbx) where
>  0 sscanf(0x4011d4, 0x10005480, 0x10005880, 0x10005c80, 0x2) ["../scanf.c":114, 0x4b52a8]
   1 acl_parse_line(0x2, 0x4011bc, 0x10003cc8, 0x7fffbdd4, 0x100108a4) [0x4148c0]
   2 acl_load_acl_file(0x42e3a0, 0x7fffbe48, 0x7fffbe58, 0x0, 0x10003aec) [0x414ee4]
   3 acl_init(0x0, 0x1001e080, 0x10003aec, 0x0, 0x12345702) [0x4154b8]
   4 main(0x7fffbf38, 0x0, 0x0, 0x0, 0x0) [0x40fca4]


The sscanf concerned is in /usr/local/src/lib/kadm5/srv/server_acl.c
line 142.

Do you have any advice on how to proceed?



Oh yes: a minor documentation bug.  In the Administrator's Guide,
section "3.1 Kadmin Options" there is a typo:  "... or to the username
obtained grom getpwuid, ..."



Cheers,
	Paul

home help back first fref pref prev next nref lref last post