[22372] in Kerberos

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

Re: 1.3.4: kadmin tries to open log file R/W (II)

daemon@ATHENA.MIT.EDU (John Hascall)
Fri Sep 3 15:49:13 2004

Message-Id: <200409031941.OAA07400@pvtest.ait.iastate.edu>
To: Tom Yu <tlyu@mit.edu>
In-reply-to: Your message of Fri, 03 Sep 2004 14:35:28 -0400.
             <ldv656v5hfz.fsf@cathode-dark-space.mit.edu> 
Date: Fri, 03 Sep 2004 14:41:59 CDT
From: John Hascall <john@iastate.edu>
cc: kerberos@mit.edu
cc: Mike Friedman <mikef@ack.berkeley.edu>
Errors-To: kerberos-bounces@mit.edu


> The kadmin client is built in both a networked form and a local form.
> kadmin.local needs to run on a KDC host with privileges to read/write
> the KDB, and the server-side kadm5 library it uses does need to do
> some logging.

> The kadmin client code itself is identical; only the library with
> which it is linked is different.  Unfortunately, the kadmin client
> code cannot easily distinguish between running in local mode on a KDC
> host and running as a networked client, so it too attempts to open the
> logfile.

> Fixing this problem correctly would probably involve giving the kadmin
> client a means of determining whether it is running as a local client
> or as a networked client.


That seems trivial.  Have a routine that exists in both libraries
that returns something different:

libkadm5clnt: int kadm5_is_local ( void ) { return 0; }
libkadm5srv:  int kadm5_is_local ( void ) { return 1; }

or some such.  Or am I missing something?


John
________________________________________________
Kerberos mailing list           Kerberos@mit.edu
https://mailman.mit.edu/mailman/listinfo/kerberos

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