[OpenAFS-devel] Testing: how to generate random valid KeyFile without kerberos
Troy Benjegerdes
hozer@hozed.org
Sun, 16 Sep 2012 23:01:48 -0500
I'm attempting to automate creation of a new cell in a VM,
and I'd like to be able to create a random KeyFile without ever
using Kerberos.
I can't seem to get it to work right (bos communications fail),
so I'm wondering if someone has a working example of this.
root@amd64:~# asetkey add 1 "deadbeefbabeb00b"=20
root@amd64:~# bos_util list=20
kvno 0: key is '=EF=BF=BD=EF=BF
' '\336\255\276\357\272\276\260\013'=20
kvno 1: key is '=EF=BF=BD=EF=20
' '\336\255\276\357\272\276\260\013'=20
All done.=20
I get errors like this:
root@amd64:~# bos status -localauth -server localhost
In tkt_MakeTicket: key_sched returned -1=20
bos: running unauthenticated=20
bos: failed to contact host's bosserver (communications failure (-1)).
root@amd64:~# ps uax | grep bos=20
root 956 0.2 3.4 9820 4180 ? Ss 03:55 0:00 /usr/sbi=
n/bosserver =20
root 960 5.0 0.5 6028 656 tty1 S+ 03:55 0:00 grep bos