You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zookeeper.apache.org by dd...@apache.org on 2021/01/24 18:24:30 UTC
[zookeeper] branch master updated: ZOOKEEPER-4188: add a doc about
whoami CLI
This is an automated email from the ASF dual-hosted git repository.
ddiederen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zookeeper.git
The following commit(s) were added to refs/heads/master by this push:
new a4d7586 ZOOKEEPER-4188: add a doc about whoami CLI
a4d7586 is described below
commit a4d7586f397290b7265b4f52ec64af5ee6fe0778
Author: maoling <ma...@sina.com>
AuthorDate: Sun Jan 24 18:24:03 2021 +0000
ZOOKEEPER-4188: add a doc about whoami CLI
Author: maoling <ma...@sina.com>
Reviewers: Damien Diederen <dd...@apache.org>
Closes #1585 from maoling/ZOOKEEPER-4188
---
zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md b/zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md
index 8113e6c..668e64e 100644
--- a/zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md
+++ b/zookeeper-docs/src/main/resources/markdown/zookeeperCLI.md
@@ -557,3 +557,15 @@ Show the version of the ZooKeeper client/CLI
[zkshell: 1] version
ZooKeeper CLI version: 3.6.0-SNAPSHOT-29f9b2c1c0e832081f94d59a6b88709c5f1bb3ca, built on 05/30/2019 09:26 GMT
```
+
+## whoami
+Gives all authentication information added into the current session.
+
+ [zkshell: 1] whoami
+ Auth scheme: User
+ ip: 127.0.0.1
+ [zkshell: 2] addauth digest user1:12345
+ [zkshell: 3] whoami
+ Auth scheme: User
+ ip: 127.0.0.1
+ digest: user1
\ No newline at end of file