Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
cb6d6163
Commit
cb6d6163
authored
Oct 23, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the description of the authentication
parent
293624a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
8 deletions
+15
-8
varnish-cli.rst
doc/sphinx/reference/varnish-cli.rst
+15
-8
No files found.
doc/sphinx/reference/varnish-cli.rst
View file @
cb6d6163
...
@@ -346,7 +346,9 @@ file on the fly.
...
@@ -346,7 +346,9 @@ file on the fly.
Use the unix file permissions to control access to the file.
Use the unix file permissions to control access to the file.
An authenticated session looks like this::
An authenticated session looks like this:
.. code-block:: text
critter phk> telnet localhost 1234
critter phk> telnet localhost 1234
Trying ::1...
Trying ::1...
...
@@ -363,8 +365,8 @@ An authenticated session looks like this::
...
@@ -363,8 +365,8 @@ An authenticated session looks like this::
-----------------------------
-----------------------------
Varnish Cache CLI 1.0
Varnish Cache CLI 1.0
-----------------------------
-----------------------------
Linux,4.4.0-1-amd64,x86_64,-jnone,-smalloc,-smalloc
,-hcritbit
FreeBSD,13.0-CURRENT,amd64,-jnone,-sdefault,-sdefault
,-hcritbit
varnish-trunk revision
dc360a4
varnish-trunk revision
89a558e56390d425c52732a6c94087eec9083115
Type 'help' for command list.
Type 'help' for command list.
Type 'quit' to close CLI session.
Type 'quit' to close CLI session.
...
@@ -389,23 +391,28 @@ following byte sequence:
...
@@ -389,23 +391,28 @@ following byte sequence:
and dumping the resulting digest in lower-case hex.
and dumping the resulting digest in lower-case hex.
In the above example, the secret file contained foo\n and thus::
In the above example, the secret file contains `foo\\n` and thus:
.. code-block:: text
critter phk> cat > _
critter phk> hexdump secret
00000000 66 6f 6f 0a |foo.|
00000004
critter phk> cat > tmpfile
ixslvvxrgkjptxmcgnnsdxsvdmvfympg
ixslvvxrgkjptxmcgnnsdxsvdmvfympg
foo
foo
ixslvvxrgkjptxmcgnnsdxsvdmvfympg
ixslvvxrgkjptxmcgnnsdxsvdmvfympg
^D
^D
critter phk> hexdump -C
_
critter phk> hexdump -C
tmpfile
00000000 69 78 73 6c 76 76 78 72 67 6b 6a 70 74 78 6d 63 |ixslvvxrgkjptxmc|
00000000 69 78 73 6c 76 76 78 72 67 6b 6a 70 74 78 6d 63 |ixslvvxrgkjptxmc|
00000010 67 6e 6e 73 64 78 73 76 64 6d 76 66 79 6d 70 67 |gnnsdxsvdmvfympg|
00000010 67 6e 6e 73 64 78 73 76 64 6d 76 66 79 6d 70 67 |gnnsdxsvdmvfympg|
00000020 0a 66 6f 6f 0a 69 78 73 6c 76 76 78 72 67 6b 6a |.foo.ixslvvxrgkj|
00000020 0a 66 6f 6f 0a 69 78 73 6c 76 76 78 72 67 6b 6a |.foo.ixslvvxrgkj|
00000030 70 74 78 6d 63 67 6e 6e 73 64 78 73 76 64 6d 76 |ptxmcgnnsdxsvdmv|
00000030 70 74 78 6d 63 67 6e 6e 73 64 78 73 76 64 6d 76 |ptxmcgnnsdxsvdmv|
00000040 66 79 6d 70 67 0a |fympg.|
00000040 66 79 6d 70 67 0a |fympg.|
00000046
00000046
critter phk> sha256
_
critter phk> sha256
tmpfile
SHA256 (_) = 455ce847f0073c7ab3b1465f74507b75d3dc064c1e7de3b71e00de9092fdc89a
SHA256 (_) = 455ce847f0073c7ab3b1465f74507b75d3dc064c1e7de3b71e00de9092fdc89a
critter phk> openssl dgst -sha256 <
_
critter phk> openssl dgst -sha256 <
tmpfile
455ce847f0073c7ab3b1465f74507b75d3dc064c1e7de3b71e00de9092fdc89a
455ce847f0073c7ab3b1465f74507b75d3dc064c1e7de3b71e00de9092fdc89a
The sourcefile lib/libvarnish/cli_auth.c contains a useful function
The sourcefile lib/libvarnish/cli_auth.c contains a useful function
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment