From 8b1502e4edab9a1df1bfddd905a4a6017fb0fed7 Mon Sep 17 00:00:00 2001 From: George Joseph Date: Wed, 3 Apr 2024 07:51:31 -0600 Subject: [PATCH] manager.c: Add missing parameters to Login documentation * Added the AuthType and Key parameters for MD5 authentication. * Added the Events parameter. Resolves: #689 --- main/manager.c | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) 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