]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/cli/ceph-authtool/add-key.t
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / test / cli / ceph-authtool / add-key.t
CommitLineData
94b18763 1 $ ceph-authtool kring --create-keyring --mode 0644
7c673cae
FG
2 creating kring
3
4 $ ceph-authtool kring --add-key 'AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== 18446744073709551615'
11fdf7f2 5 added entity client.admin auth(key=AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ==)
7c673cae
FG
6
7# cram makes matching escape-containing lines with regexps a bit ugly
8 $ ceph-authtool kring --list
9 [client.admin]
10 \tkey = AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== (esc)
11
12 $ cat kring
13 [client.admin]
14 \tkey = AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== (esc)
15
16Test --add-key with empty argument
17
18 $ ceph-authtool kring -C --name=mon.* --add-key= --cap mon 'allow *'
19 Option --add-key requires an argument
20 [1]
11fdf7f2
TL
21
22 $ ceph-authtool test.keyring --create-keyring --mode 0644
23 creating test.keyring
24
25 $ ceph-authtool test.keyring --name client.test --cap osd 'allow rwx' --cap mon 'allow r' --add-key 'AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ== 18446744073709551615'
26 added entity client.test auth(key=AQAK7yxNeF+nHBAA0SgSdbs8IkJrxroDeJ6SwQ==)
27 added 2 caps to entity client.test