Hi,
if I call kadmin after adding those parameters to /etc/krb5.conf that
should be sufficient to my understanding I get:
kadmin -p admin/admin
Authenticating as principal admin/admin with password.
kadmin: Missing parameters in krb5.conf required for kadmin client while initializing kadmin interface
It would really help if kadmin would tell the user *what* parameters are
missing to simplify providing this parameter.
Thanks for maintaining krb5
Andreas.
I agree, and I thought that I had asked about this with upstream before, but I can't find a record of it, so maybe I did not actually ask. In any case, I remember getting an answer that by the time the error was propagated up the stack to where an error could be printed, knowledge of the actual missing piece(s) of configuration information was lost. Perhaps it would be possible to add tracepoints for KRB5_TRACE, though -- I'll check with upstream. In any case, the pieces of information needed are the realm, the hostname of the kadmin server, and the port if non-default. If you are interested in debugging your specific case (as opposed to just requesting the additional diagnostic), is there a hang before the error is printed? Can you supply the krb5.conf (and kdc.conf, if applicable) from the system in question?
Hi Benjamin,
thanks for your quick reply.
OK.
I do not have a kdc.conf but attached krb5.conf. My application is to
authenticate users on a Debian machine to users maintained in ADS.
I took over the values from some other host that can do the
authentication but kadmin has the same problem. May be I do not even
need a working kadmin in this application. I was just following a
howto that started with getting kadmin working.
Kind regards
Andreas.
A kdc = line is not enough for kadmin to find a server. You need a admin_server (or I think master_kdc) line. However, AD doesn't support kadmin, so even if you set up krb5.conf you'll just get an error because it won't even listen on the right port.
AD does support kpasswd, though. But the SRV records should work for that, without manual configuration.