Hi all,

I've been recently working on combining kinit and aklog.  The idea being that
you run one program to authenicate to both Kerberos and AFS in the same 
operation. 

My solution is very simple, I just call the two top-level aklog functions
just before kinit exits, and I link to both the AFS and Kerberos libraries.

What I have implemented essentially works, but has some very annoying link 
errors due to naming conflicts between AFS and Kerberos.  Both aklog and kinit
need to link to the libdes.a library; both AFS and Kerberos have one.  The 
naming conflicts are the function names des_pcbc_encrypt and des_ecb_encrypt.  
Both AFS and Kerberos have these two functions.  In the case of this particular
application, only the Kerberos version is needed, but you still need to link 
to the two object modules in AFS because they contain other functions which 
are 
referenced.  By linking to the kerberos libraries before the AFS libraries, I 
make sure that these two functions are called from kerberos rather than from 
AFS.

I know that some other people have implemented this.  What I am wondering is 
how did you tackle this particular problem?  Do you just ignore it, or is 
there 
some sort of elegant solution or hack to get around it?

Thanks,

Rob

-------------------------------------------------------------------------------
          "Just remember, no matter where you go, there you are."
-------------------------------------------------------------------------------
Rob Elkins                              Internet: [EMAIL PROTECTED]
DuPont Central Research & Development
Scientific Computing Division           Voice:  302-695-9292

Standard Disclaimer:  I'm an adult, these are my opinions, not DuPont's.


Reply via email to