[OpenAFS] asetkey complains about keylength.

Douglas E. Engert deengert@anl.gov
Wed, 01 Sep 2010 09:24:25 -0500


On 9/1/2010 3:36 AM, Mans Nilsson wrote:
> Subject: Re: [OpenAFS] asetkey complains about keylength. Date: Tue, Aug 31, 2010 at 04:58:22PM -0500 Quoting Douglas E. Engert (deengert@anl.gov):
>>
>>
>> On 8/31/2010 3:59 PM, Mans Nilsson wrote:
>>> Hi,
>>>
>>> I'm setting up a new cell on Solaris, using self-built 1.4.12.1. My kdc
>>> is Heimdal. When trying to create a KeyFile from the ktutil-gotten
>>> file, asetkey complains that
>>>
>>> Key length should be 8, but is really 1
>>>
>>> Any clues? Am I supplying too little info? What is necessary to supply?
>>>
>>> asetkey and aklog were built after manually adding
>>> -I/usr/heimdal/include and -lkrb5 to compilation invocations, since the
>>> usual tricks did not work.
>>
>> Did you get the Heimdal libkrb5.so? There is also one in /usr/lib
>
> Nopes, not on the build system:
>
> # ldd asetkey | grep krb5
>          libkrb5.so.1 =>   /usr/lib/libkrb5.so.1
>          mech_krb5.so.1 =>         /usr/lib/gss/mech_krb5.so.1
>
> Hmmm. Thanks.

As a side note, I have been building the sun4x_510, and sunx86_510
distributions for OpenAFS for years with the Solaris 10 Kerberos:

export KRB5CFLAGS="-I/usr/include/kerberosv5"
export KRB5LIBS="/usr/lib/gss/mech_krb5.so -R/usr/lib/gss"
export CC=/opt/SUNWspro/bin/cc
./configure --enable-transarc-paths --with-krb5=yes \
   --enable-largefile-fileserver --host=sparc-sun-solaris2.10


-- 

  Douglas E. Engert  <DEEngert@anl.gov>
  Argonne National Laboratory
  9700 South Cass Avenue
  Argonne, Illinois  60439
  (630) 252-5444