Determing Kerberos version programatically
Marcus Watts
mdw at umich.edu
Wed Aug 11 11:34:17 EDT 2010
Daniel Berger <dberger at globe.gov> writes:
> Date: Tue, 10 Aug 2010 15:58:42 MDT
> To: kerberos at mit.edu
> From: Daniel Berger <dberger at globe.gov>
> Subject: Determing Kerberos version programatically
>
> Hi,
>
> If I'm writing a Kerberos wrapper (a C extension), what's the best way
> to determine which version of the Kerberos library that I'm using?
>
> I see KADM5_API_VERSION_x, but I don't see anything that tells me I'm
> using, say 1.8.2, for example.
>
> Is there a way?
>
> Regards,
>
> Dan
Is there a *reason* you need to know if you're using 1.8.2 instead of
1.8.1 or 1.8.3? Generally speaking, you want these things to go by
feature not by release number. For features which are either add-on
patches, or configured at build time, this is particularly important.
Also keep in mind the sun and macintosh versions are yet again different.
The other twist to be very careful of is that since this is client/server,
just because your *client* code is 1.8.2, doesn't mean the *server*
is 1.8.2. The wire protocol does have a number, and there are provisions
in the protocol that are intended to hide some wire differences.
-Marcus Watts
More information about the Kerberos
mailing list