[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem running kadmind

Hi all,

I have a problem with running kadmind. When I run it, kadmind immediately
exits and logs an error message as:

   14-Dec-1998 10:22:58 krb5_recvauth: Socket operation on non-socket

I'm using heimdal-0.0t. I might be missing something because I can't find
much documentation about kadmind. Here is the command I use:

    /usr/heimdal/libexec/kadmind --keytab=/var/heimdal/kadm5.keytab &

where kadm5.keytab has the keys for kadmin/admin and kadmin/changepw.

My config files look like:

        default_realm = DSTC.QUT.EDU.AU

        DSTC.QUT.EDU.AU = {
                kdc = midori.dstc.qut.edu.au:88
                kadmind = midori.dstc.qut.edu.au:749

        dstc.qut.edu.au = DSTC.QUT.EDU.AU
        .dstc.qut.edu.au = DSTC.QUT.EDU.AU

        kdc = FILE:/var/heimdal/krb5kdc.log
        kadmind = FILE:/var/heimdal/kadmind.log
        default = FILE:/var/heimdal/krb5lib.log

        key-file = /var/heimdal/m-key
        ports = 88, 750
        kadmind_ports = 749

In these config files, those lines referring kadmind are only my guess. I
know that the line about logging works.

Tracing through the source code, I found that the call causing the error is

a getsockname() call with a socket descriptor of 0. The calls stack looks

    #0  0x401336f0 in __getsockname ()
    #1  0x400679c1 in krb5_auth_con_setaddrs_from_fd (context=0x804a130,
        auth_context=0x804a7c8, p_fd=0xbffff86c) at auth_context.c:163
    #2  0x400749b7 in krb5_recvauth (context=0x804a130,
        p_fd=0xbffff86c, appl_version=0x8048ebe "KADM0.0",
        flags=0, keytab=0x0, ticket=0xbffff868) at recvauth.c:76
    #3  0x8048c95 in main (argc=1, argv=0xbffff8a4) at kadmind.c:150

The socket descriptor is declared as "fd" in kadmind.c and has the value of
as it (or its address) is passed around.

I'd be most grateful if someone can tell me what's wrong in this situation.