diff --git a/main/manager.c b/main/manager.c index 4813ef879d..cc4363a042 100644 --- a/main/manager.c +++ b/main/manager.c @@ -165,14 +165,41 @@ Username to login with as specified in manager.conf. + + Authorization type. Valid values are: + + Plain text secret. (default) + MD5 hashed secret. + + - Secret to login with as specified in manager.conf. + Plain text secret to login with as specified in manager.conf. + + + Key to use with MD5 authentication. To create the key, you must + initialize a new MD5 hash, call the Challenge AMI action, + update the hash with the response, then update the hash with the secret as specified + in manager.conf. The key value must be the final result of the hash + as a 32 character lower-case hex string without any "0x" prepended. + See the description for an example of creating a key in Python. + + + Login Manager. + + import hashlib + m = hashlib.md5() + m.update(response_from_challenge) + m.update(your_secret) + key = m.hexdigest() + ## '031edd7d41651593c5fe5c006fa5752b' + + Challenge Logoff