From: George Joseph Date: Wed, 3 Apr 2024 13:51:31 +0000 (-0600) Subject: manager.c: Add missing parameters to Login documentation X-Git-Tag: 21.3.0-rc1~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0c4c7685360a7bf452e6be9114f36243b84df6b;p=thirdparty%2Fasterisk.git manager.c: Add missing parameters to Login documentation * Added the AuthType and Key parameters for MD5 authentication. * Added the Events parameter. Resolves: #689 (cherry picked from commit b2bcc0cd09ac1c93ef4943013efed23d2c3236b3) --- 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