Revision ab2e463a
b/doc/rapi.rst | ||
---|---|---|
28 | 28 |
first two fields are for username and password. The third field is |
29 | 29 |
optional and can be used to specify per-user options. Currently, |
30 | 30 |
``write`` is the only option supported and enables the user to execute |
31 |
operations modifying the cluster. Lines starting with the hash sign (#)
|
|
32 |
are treated as comments. |
|
31 |
operations modifying the cluster. Lines starting with the hash sign |
|
32 |
(``#``) are treated as comments.
|
|
33 | 33 |
|
34 | 34 |
Passwords can either be written in clear text or as a hash. Clear text |
35 | 35 |
passwords may not start with an opening brace (``{``) or they must be |
36 | 36 |
prefixed with ``{cleartext}``. To use the hashed form, get the MD5 hash |
37 | 37 |
of the string ``$username:Ganeti Remote API:$password`` (e.g. ``echo -n |
38 |
'jack:Ganeti Remote API:abc123' | openssl md5``) [#pwhash]_. Using the
|
|
39 |
scheme prefix for all passwords is recommended. Scheme prefixes are not
|
|
40 |
case sensitive. |
|
38 |
'jack:Ganeti Remote API:abc123' | openssl md5``) [#pwhash]_ and prefix
|
|
39 |
it with ``{ha1}``. Using the scheme prefix for all passwords is
|
|
40 |
recommended. Scheme prefixes are not case sensitive.
|
|
41 | 41 |
|
42 | 42 |
Example:: |
43 | 43 |
|
Also available in: Unified diff