[OpenAFS] Where is krb_afslog_uid?
shuaijie wang
wangshuaijie@gmail.com
Mon, 2 Sep 2013 14:27:18 +0800
--089e0158aa9a02968d04e560aa81
Content-Type: text/plain; charset=ISO-8859-1
Thanks very much.
2013/9/2 Russ Allbery <rra@stanford.edu>
> Benjamin Kaduk <kaduk@MIT.EDU> writes:
> > On Mon, 2 Sep 2013, shuaijie wang wrote:
>
> >> But after I've installed openafs, I only found k_hasafs, k_pioctl,
> >> k_unlog, k_setpag, and they work as expected, when I wan to call
> >> krb_afslog_uid to set afs token for my process, I can't find this API
> >> in any of the afs libs in my system.
>
> >> Is there something wrong? Or should I install some other libs in order
> >> to use krb_afslog_uid?
>
> > That is a Heimdal API.
>
> You can install Heimdal's libkafs if you want to use that API, but for
> most purposes you can just call k_setpag() and then system("aklog") and it
> works about as well. It does mean a fork, and you have to be careful
> about your Kerberos ticket cache to make sure aklog can read it, but it
> lets aklog do all of its magic (including rxkad-kdf support, which Heimdal
> doesn't have yet).
>
> --
> Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
>
--089e0158aa9a02968d04e560aa81
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">Thanks very much.<br></div><div class=3D"gmail_extra"><br>=
<br><div class=3D"gmail_quote">2013/9/2 Russ Allbery <span dir=3D"ltr"><=
<a href=3D"mailto:rra@stanford.edu" target=3D"_blank">rra@stanford.edu</a>&=
gt;</span><br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div class=3D"im">Benjamin Kaduk <<a href=
=3D"mailto:kaduk@MIT.EDU">kaduk@MIT.EDU</a>> writes:<br>
> On Mon, 2 Sep 2013, shuaijie wang wrote:<br>
<br>
</div><div class=3D"im">>> But after I've installed openafs, I on=
ly found k_hasafs, k_pioctl,<br>
>> k_unlog, k_setpag, and they work as expected, when I wan to call<b=
r>
>> krb_afslog_uid to set afs token for my process, I can't find t=
his API<br>
>> in any of the afs libs in my system.<br>
<br>
>> Is there something wrong? Or should I install some other libs in o=
rder<br>
>> to use krb_afslog_uid?<br>
<br>
> That is a Heimdal API.<br>
<br>
</div>You can install Heimdal's libkafs if you want to use that API, bu=
t for<br>
most purposes you can just call k_setpag() and then system("aklog"=
;) and it<br>
works about as well. =A0It does mean a fork, and you have to be careful<br>
about your Kerberos ticket cache to make sure aklog can read it, but it<br>
lets aklog do all of its magic (including rxkad-kdf support, which Heimdal<=
br>
doesn't have yet).<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
Russ Allbery (<a href=3D"mailto:rra@stanford.edu">rra@stanford.edu</a>) =A0=
=A0 =A0 =A0 =A0 =A0 <<a href=3D"http://www.eyrie.org/~eagle/" target=3D=
"_blank">http://www.eyrie.org/~eagle/</a>><br>
</font></span></blockquote></div><br></div>
--089e0158aa9a02968d04e560aa81--