diff options
-rw-r--r-- | docs/using-monkey.md | 24 | ||||
-rw-r--r-- | frontends/monkey/401login.c | 6 |
2 files changed, 25 insertions, 5 deletions
diff --git a/docs/using-monkey.md b/docs/using-monkey.md index c6298dd04..f4cb9d66a 100644 --- a/docs/using-monkey.md +++ b/docs/using-monkey.md @@ -355,10 +355,28 @@ Responses * `LOGIN OPEN LWIN` _%id%_ `URL` _%url%_ USER _%str%_ PASSWD _%str%_ `REALM` _%str%_ - The core asked Monkey to ask for identification for the named - realm at the given URL. + The core asked Monkey to ask for identification for the given URL. -> TODO: Implement support to control the 401LOGIN process + This will be *immediately* followed by: + +* `LOGIN USER LWIN` _%id%_ `STR` _%str%_ + + The given login window has a default username of the given string + + This will be *immediately* followed by: + +* `LOGIN PASS LWIN` _%id%_ `STR` _%str%_ + + The given login window has a default password of the given string + + This will be *immediately* followed by: + +* `LOGIN REALM LWIN` _%id%_ `STR` _%str%_ + + The given login window has a realm of the given string + + Subsequent to this message, the user of monkey is at liberty to issue + `LOGIN` commands to control the response of the `401LOGIN` process. ### Plotter messages diff --git a/frontends/monkey/401login.c b/frontends/monkey/401login.c index 72f663ee4..00913156a 100644 --- a/frontends/monkey/401login.c +++ b/frontends/monkey/401login.c @@ -70,8 +70,10 @@ gui_401login_open(struct nsurl *url, password = ""; } - moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s USER %s PASSWD %s REALM %s", - m401_ctx->num, nsurl_access(url), username, password, realm); + moutf(MOUT_LOGIN, "OPEN LWIN %u URL %s", m401_ctx->num, nsurl_access(url)); + moutf(MOUT_LOGIN, "USER LWIN %u STR %s", m401_ctx->num, username); + moutf(MOUT_LOGIN, "PASS LWIN %u STR %s", m401_ctx->num, password); + moutf(MOUT_LOGIN, "REALM LWIN %u STR %s", m401_ctx->num, realm); return NSERROR_OK; } |