4 * WebcitAuth; Handles authentication of users to a Citadel server.
12 void display_reg(int during_login);
15 * Access level definitions. This is initialized from a function rather than a
16 * static array so that the strings may be localized.
20 void initialize_axdefs(void) {
21 axdefs[0] = _("Deleted"); /* an erased user */
22 axdefs[1] = _("New User"); /* a new user */
23 axdefs[2] = _("Problem User"); /* a trouble maker */
24 axdefs[3] = _("Local User"); /* user with normal privileges */
25 axdefs[4] = _("Network User"); /* a user that may access network resources */
26 axdefs[5] = _("Preferred User");/* a moderator */
27 axdefs[6] = _("Aide"); /* chief */
30 int ReEstablish_Session(void)
32 StrBuf *Buf = NewStrBuf();
35 serv_printf("USER %s", ChrPtr(WCC->Hdr->c_username));
36 StrBuf_ServGetln(Buf);
37 if (GetServerStatus(Buf, NULL) == 3) {
38 serv_printf("PASS %s", ChrPtr(WCC->Hdr->c_password));
39 StrBuf_ServGetln(Buf);
40 if (GetServerStatus(Buf, NULL) == 2) {
41 become_logged_in(WCC->Hdr->c_username,
42 WCC->Hdr->c_password, Buf);
43 get_preference("default_header_charset", &WCC->DefaultCharset);
47 * If we don't have a current room, but a cookie specifying the
48 * current room is supplied, make an effort to go there.
50 if ((StrLength(WCC->wc_roomname) == 0) && (StrLength(WCC->Hdr->c_roomname) > 0)) {
51 serv_printf("GOTO %s",
52 ChrPtr(WCC->Hdr->c_roomname));
53 StrBuf_ServGetln(Buf);
54 if (GetServerStatus(Buf, NULL) == 2) {
55 if (WCC->wc_roomname == NULL) {
56 WCC->wc_roomname = NewStrBufDup(WCC->Hdr->c_roomname);
59 FlushStrBuf(WCC->wc_roomname);
60 StrBufAppendBuf(WCC->wc_roomname, WCC->Hdr->c_roomname, 0);
70 * Display the login screen
71 * mesg = the error message if last attempt failed.
73 void display_login(void)
76 output_headers(1, 0, 0, 0, 1, 0);
77 do_template("login", NULL);
85 * Display the openid-enabled login screen
86 * mesg = the error message if last attempt failed.
88 void display_openid_login(char *mesg)
91 output_headers(1, 0, 0, 0, 1, 0);
92 do_template("openid_login", NULL);
97 void display_openid_name_request(const StrBuf *claimed_id, const StrBuf *username)
101 output_headers(1, 1, 2, 0, 0, 0);
102 wprintf("<div id=\"login_screen\">\n");
104 Buf = NewStrBufPlain(NULL, StrLength(claimed_id));
105 StrEscAppend(Buf, claimed_id, NULL, 0, 0);
106 svprintf(HKEY("VERIFIED"), WCS_STRING, _("Your OpenID <tt>%s</tt> was successfully verified."),
108 SVPutBuf("CLAIMED_ID", Buf, 0);
111 if (StrLength(username) > 0) {
112 Buf = NewStrBufPlain(NULL, StrLength(username));
113 StrEscAppend(Buf, claimed_id, NULL, 0, 0);
114 svprintf(HKEY("REASON"), WCS_STRING,
115 _("However, the user name '%s' conflicts with an existing user."),
120 svput("REASON", WCS_STRING, "");
123 svput("ACTION_REQUESTED", WCS_STRING, _("Please specify the user name you would like to use."));
125 svput("USERNAME_BOX", WCS_STRING, _("User name:"));
126 svput("NEWUSER_BUTTON", WCS_STRING, _("New User"));
127 svput("EXIT_BUTTON", WCS_STRING, _("Exit"));
129 svprintf(HKEY("BOXTITLE"), WCS_STRING, _("%s - powered by <a href=\"http://www.citadel.org\">Citadel</a>"),
130 ChrPtr(WC->serv_info->serv_humannode));
132 do_template("openid_manual_create", NULL);
138 /* Initialize the session
140 * This function needs to get called whenever the session changes from
141 * not-logged-in to logged-in, either by an explicit login by the user or
142 * by a timed-out session automatically re-establishing with a little help
143 * from the browser cookie. Either way, we need to load access controls and
144 * preferences from the server.
148 * serv_response The parameters returned from a Citadel USER or NEWU command
150 void become_logged_in(const StrBuf *user, const StrBuf *pass, StrBuf *serv_response)
155 StrBuf *Language = NULL;
159 if (WCC->wc_fullname == NULL)
160 WCC->wc_fullname = NewStrBufPlain(NULL, StrLength(serv_response));
161 StrBufExtract_token(WCC->wc_fullname, serv_response, 0, '|');
162 StrBufCutLeft(WCC->wc_fullname, 4 );
164 if (WCC->wc_username == NULL)
165 WCC->wc_username = NewStrBufDup(user);
167 FlushStrBuf(WCC->wc_username);
168 StrBufAppendBuf(WCC->wc_username, user, 0);
171 if (WCC->wc_password == NULL)
172 WCC->wc_password = NewStrBufDup(pass);
174 FlushStrBuf(WCC->wc_password);
175 StrBufAppendBuf(WCC->wc_password, pass, 0);
178 WCC->axlevel = StrBufExtract_int(serv_response, 1, '|');
179 if (WCC->axlevel >= 6) { /* TODO: make this a define, else it might trick us later */
187 StrBuf_ServGetln(Buf);
188 if (GetServerStatus(Buf, NULL) == 2) {
191 pch = ChrPtr(Buf) + 4;
192 WCC->new_mail = StrBufExtractNext_long(Buf, &pch, '|');
193 WCC->need_regi = StrBufExtractNext_long(Buf, &pch, '|');
194 WCC->need_vali = StrBufExtractNext_long(Buf, &pch, '|');
195 if (WCC->cs_inet_email == NULL)
196 WCC->cs_inet_email = NewStrBuf();
197 StrBufExtract_NextToken(WCC->cs_inet_email, Buf, &pch, '|');
199 if (havebstr("language"))
200 set_preference("language", NewStrBufDup(SBSTR("language")), 1);
202 get_preference("language", &Language);
203 if (Language != NULL) {
204 set_selected_language(ChrPtr(Language));
205 go_selected_language(); /* set locale */
208 get_preference("floordiv_expanded", &FloorDiv);
209 WCC->floordiv_expanded = FloorDiv;
215 * Perform authentication using a user name and password
222 if (havebstr("language")) {
223 set_selected_language(bstr("language"));
224 go_selected_language();
227 if (havebstr("exit_action")) {
232 if (havebstr("login_action")) {
233 serv_printf("USER %s", bstr("name"));
234 StrBuf_ServGetln(Buf);
235 if (GetServerStatus(Buf, NULL) == 3) {
236 serv_printf("PASS %s", bstr("pass"));
237 StrBuf_ServGetln(Buf);
238 if (GetServerStatus(Buf, NULL) == 2) {
239 become_logged_in(sbstr("name"), sbstr("pass"), Buf);
241 snprintf(WCC->ImportantMessage,
242 sizeof (WCC->ImportantMessage),
250 snprintf(WCC->ImportantMessage,
251 sizeof (WCC->ImportantMessage),
259 if (havebstr("newuser_action")) {
260 if (!havebstr("pass")) {
261 snprintf(WCC->ImportantMessage,
262 sizeof (WCC->ImportantMessage),
264 _("Blank passwords are not allowed."));
269 serv_printf("NEWU %s", bstr("name"));
270 StrBuf_ServGetln(Buf);
271 if (GetServerStatus(Buf, NULL) == 2) {
272 become_logged_in(sbstr("name"), sbstr("pass"), Buf);
273 serv_printf("SETP %s", bstr("pass"));
274 StrBuf_ServGetln(Buf); /* Don't care? */
276 snprintf(WCC->ImportantMessage,
277 sizeof (WCC->ImportantMessage),
285 if (WCC->logged_in) {
286 if (WCC->need_regi) {
288 } else if (WCC->need_vali) {
294 snprintf(WCC->ImportantMessage,
295 sizeof (WCC->ImportantMessage),
297 _("Your password was not accepted."));
304 * Try to create an account manually after an OpenID was verified
306 void openid_manual_create(void)
310 if (havebstr("exit_action")) {
315 if (havebstr("newuser_action")) {
317 serv_printf("OIDC %s", bstr("name"));
318 StrBuf_ServGetln(Buf);
319 if (GetServerStatus(Buf, NULL) == 2) {
323 serv_puts("SETP GENERATE_RANDOM_PASSWORD");
324 StrBuf_ServGetln(gpass);
325 StrBufCutLeft(gpass, 4);
326 become_logged_in(sbstr("name"), gpass, Buf);
335 } else if (WC->need_vali) {
341 display_openid_name_request(sbstr("openid_url"), sbstr("name"));
348 * Perform authentication using OpenID
349 * assemble the checkid_setup request and then redirect to the user's identity provider
351 void do_openid_login(void)
356 if (havebstr("language")) {
357 set_selected_language(bstr("language"));
358 go_selected_language();
361 if (havebstr("exit_action")) {
365 if (havebstr("login_action")) {
366 snprintf(buf, sizeof buf,
367 "OIDS %s|%s://%s/finalize_openid_login|%s://%s",
369 (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->http_host),
370 (is_https ? "https" : "http"), ChrPtr(WCC->Hdr->http_host)
374 serv_getln(buf, sizeof buf);
376 lprintf(CTDL_DEBUG, "OpenID server contacted; redirecting to %s\n", &buf[4]);
377 http_redirect(&buf[4]);
381 display_openid_login(&buf[4]);
386 /* If we get to this point then something failed. */
387 display_openid_login(_("Your password was not accepted."));
391 * Complete the authentication using OpenID
392 * This function handles the positive or negative assertion from the user's Identity Provider
394 void finalize_openid_login(void)
398 int already_logged_in = (WCC->logged_in) ;
400 StrBuf *result = NULL;
401 StrBuf *username = NULL;
402 StrBuf *password = NULL;
403 StrBuf *logged_in_response = NULL;
404 StrBuf *claimed_id = NULL;
406 if (havebstr("openid.mode")) {
407 if (!strcasecmp(bstr("openid.mode"), "id_res")) {
410 StrBuf_ServGetln(Buf);
411 if (GetServerStatus(Buf, NULL) == 8) {
418 Cursor = GetNewHashPos (WCC->Hdr->urlstrings, 0);
419 while (GetNextHashPos(WCC->Hdr->urlstrings, Cursor, &HKLen, &HKey, &U)) {
421 if (!strncasecmp(u->url_key, "openid.", 7)) {
422 serv_printf("%s|%s", &u->url_key[7], ChrPtr(u->url_data));
429 while (StrBuf_ServGetln(Buf), strcmp(ChrPtr(Buf), "000"))
431 if (linecount == 0) result = NewStrBufDup(Buf);
432 if (!strcasecmp(ChrPtr(result), "authenticate")) {
433 if (linecount == 1) {
434 username = NewStrBufDup(Buf);
436 else if (linecount == 2) {
437 password = NewStrBufDup(Buf);
439 else if (linecount == 3) {
440 logged_in_response = NewStrBufDup(Buf);
443 else if (!strcasecmp(ChrPtr(result), "verify_only")) {
444 if (linecount == 1) {
445 claimed_id = NewStrBufDup(Buf);
447 if (linecount == 2) {
448 username = NewStrBufDup(Buf);
458 /* If we were already logged in, this was an attempt to associate an OpenID account */
459 if (already_logged_in) {
462 FreeStrBuf(&username);
463 FreeStrBuf(&password);
464 FreeStrBuf(&claimed_id);
465 FreeStrBuf(&logged_in_response);
469 /* If this operation logged us in, either by connecting with an existing account or by
470 * auto-creating one using Simple Registration Extension, we're already on our way.
472 if (!strcasecmp(ChrPtr(result), "authenticate")) {
473 become_logged_in(username, password, logged_in_response);
476 /* The specified OpenID was verified but the desired user name was either not specified via SRI
477 * or conflicts with an existing user. Either way the user will need to specify a new name.
480 else if (!strcasecmp(ChrPtr(result), "verify_only")) {
481 display_openid_name_request(claimed_id, username);
484 /* Did we manage to log in? If so, continue with the normal flow... */
492 display_openid_login(_("Your password was not accepted."));
496 FreeStrBuf(&username);
497 FreeStrBuf(&password);
498 FreeStrBuf(&claimed_id);
499 FreeStrBuf(&logged_in_response);
504 * Display a welcome screen to the user.
506 * If this is the first time login, and the web based setup is enabled,
507 * lead the user through the setup routines
509 void do_welcome(void)
512 #ifdef XXX_NOT_FINISHED_YET_XXX
517 * See if we have to run the first-time setup wizard
522 sprintf(wizard_filename, "setupwiz.%s.%s",
524 len = strlen(wizard_filename);
525 for (i=0; i<len; ++i) {
526 if ( (wizard_filename[i]==' ')
527 || (wizard_filename[i] == '/')
529 wizard_filename[i] = '_';
533 fp = fopen(wizard_filename, "r");
535 fgets(buf, sizeof buf, fp);
536 buf[strlen(buf)-1] = 0;
538 if (atoi(buf) == serv_info.serv_rev_level) {
539 setup_wizard = 1; /**< already run */
545 http_redirect("setup_wizard");
551 * Go to the user's preferred start page
553 if (!get_preference("startpage", &Buf)) {
555 StrBufPrintf(Buf, "dotskip&room=_BASEROOM_");
556 set_preference("startpage", Buf, 1);
558 if (ChrPtr(Buf)[0] == '/') {
559 StrBufCutLeft(Buf, 1);
561 if (StrLength(Buf) == 0)
562 StrBufAppendBufPlain(Buf, "dotgoto?room=_BASEROOM_", -1, 0);
563 http_redirect(ChrPtr(Buf));
568 * Disconnect from the Citadel server, and end this WebCit session
570 void end_webcit_session(void) {
574 /* close() of citadel socket will be done by do_housekeeping() */
585 FlushStrBuf(WCC->wc_username);
586 FlushStrBuf(WCC->wc_password);
587 FlushStrBuf(WCC->wc_roomname);
588 FlushStrBuf(WCC->wc_fullname);
590 /* FIXME: this is to suppress the iconbar displaying, because we aren't
591 actually logged out yet */
594 /** Calling output_headers() this way causes the cookies to be un-set */
595 output_headers(1, 1, 0, 1, 0, 0);
597 wprintf("<div id=\"logout_screen\">");
598 wprintf("<div class=\"box\">");
599 wprintf("<div class=\"boxlabel\">");
600 wprintf(_("Log off"));
601 wprintf("</div><div class=\"boxcontent\">");
602 serv_puts("MESG goodbye");
603 serv_getln(buf, sizeof buf);
605 if (WCC->serv_sock >= 0) {
609 wprintf("Goodbye\n");
613 wprintf(_("This program was unable to connect or stay "
614 "connected to the Citadel server. Please report "
615 "this problem to your system administrator.")
617 wprintf("<a href=\"http://www.citadel.org/doku.php/"
618 "faq:mastering_your_os:net#netstat\">%s</a>",
622 wprintf("<hr /><div class=\"buttons\"> "
623 "<span class=\"button_link\"><a href=\".\">");
624 wprintf(_("Log in again"));
625 wprintf("</a></span>");
627 /* The "close window" link is commented out because some browsers don't
630 wprintf(" <span class=\"button_link\">"
631 "<a href=\"javascript:window.close();\">");
632 wprintf(_("Close window"));
633 wprintf("</a></span>");
636 wprintf("</div></div></div></div>\n");
638 end_webcit_session();
652 output_headers(1, 1, 2, 0, 0, 0);
653 wprintf("<div id=\"banner\">\n");
655 wprintf(_("Validate new users"));
659 wprintf("<div id=\"content\" class=\"service\">\n");
661 /* If the user just submitted a validation, process it... */
662 safestrncpy(buf, bstr("user"), sizeof buf);
663 if (!IsEmptyStr(buf)) {
664 if (havebstr("axlevel")) {
665 serv_printf("VALI %s|%s", buf, bstr("axlevel"));
666 serv_getln(buf, sizeof buf);
668 wprintf("<b>%s</b><br>\n", &buf[4]);
673 /* Now see if any more users require validation. */
675 serv_getln(buf, sizeof buf);
678 wprintf(_("No users require validation at this time."));
679 wprintf("</b><br>\n");
684 wprintf("<b>%s</b><br>\n", &buf[4]);
689 wprintf("<div class=\"fix_scrollbar_bug\">"
690 "<table class=\"auth_validate\"><tr><td>\n");
691 wprintf("<div id=\"validate\">");
693 safestrncpy(user, &buf[4], sizeof user);
694 serv_printf("GREG %s", user);
695 serv_getln(cmd, sizeof cmd);
699 serv_getln(buf, sizeof buf);
702 wprintf("#%s<br><H1>%s</H1>",
711 while (!IsEmptyStr(pch))
715 else if (isalpha(*pch))
726 pch = _("very weak");
739 wprintf("PW: %s<br>\n", pch);
742 wprintf("%s<br>\n", buf);
744 wprintf("%s<br>\n", buf);
746 wprintf("%s, ", buf);
750 wprintf("%s<br>\n", buf);
752 wprintf("%s<br>\n", buf);
754 wprintf(_("Current access level: %d (%s)\n"),
755 atoi(buf), axdefs[atoi(buf)]);
756 } while (strcmp(buf, "000"));
758 wprintf("<H1>%s</H1>%s<br />\n", user, &cmd[4]);
762 wprintf(_("Select access level for this user:"));
764 for (a = 0; a <= 6; ++a) {
765 wprintf("<a href=\"validate?nonce=%d?user=", WC->nonce);
767 wprintf("&axlevel=%d\">%s</A> \n",
773 wprintf("</td></tr></table></div>\n");
780 * Display form for registration.
782 * (Set during_login to 1 if this registration is being performed during
783 * new user login and will require chaining to the proper screen.)
785 void display_reg(int during_login)
788 message_summary *VCMsg;
789 wc_mime_attachment *VCAtt;
793 if (goto_config_room(Buf) != 0) {
794 if (during_login) do_welcome();
795 else display_main_menu();
801 vcard_msgnum = locate_user_vcard_in_this_room(&VCMsg, &VCAtt);
802 if (vcard_msgnum < 0L) {
803 if (during_login) do_welcome();
804 else display_main_menu();
809 do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, "do_welcome", USERCONFIGROOM);
812 do_edit_vcard(vcard_msgnum, "1", VCMsg, VCAtt, "display_main_menu", USERCONFIGROOM);
821 * display form for changing your password
823 void display_changepw(void)
825 WCTemplputParams SubTP;
828 output_headers(1, 1, 1, 0, 0, 0);
830 Buf = NewStrBufPlain(_("Change your password"), -1);
831 memset(&SubTP, 0, sizeof(WCTemplputParams));
832 SubTP.Filter.ContextType = CTX_STRBUF;
834 DoTemplate(HKEY("beginbox"), NULL, &SubTP);
838 if (!IsEmptyStr(WC->ImportantMessage)) {
839 wprintf("<span class=\"errormsg\">"
840 "%s</span><br />\n", WC->ImportantMessage);
841 safestrncpy(WC->ImportantMessage, "", sizeof WC->ImportantMessage);
844 serv_puts("MESG changepw");
845 serv_getln(buf, sizeof buf);
850 wprintf("<form name=\"changepwform\" action=\"changepw\" method=\"post\">\n");
851 wprintf("<input type=\"hidden\" name=\"nonce\" value=\"%d\">\n", WC->nonce);
852 wprintf("<table class=\"altern\" ");
853 wprintf("<tr class=\"even\"><td>");
854 wprintf(_("Enter new password:"));
855 wprintf("</td><td>");
856 wprintf("<input type=\"password\" name=\"newpass1\" value=\"\" maxlength=\"20\"></td></tr>\n");
857 wprintf("<tr class=\"odd\"><td>");
858 wprintf(_("Enter it again to confirm:"));
859 wprintf("</td><td>");
860 wprintf("<input type=\"password\" name=\"newpass2\" value=\"\" maxlength=\"20\"></td></tr>\n");
861 wprintf("</table>\n");
863 wprintf("<div class=\"buttons\">\n");
864 wprintf("<input type=\"submit\" name=\"change_action\" value=\"%s\">", _("Change password"));
866 wprintf("<input type=\"submit\" name=\"cancel_action\" value=\"%s\">\n", _("Cancel"));
868 wprintf("</form>\n");
870 do_template("endbox", NULL);
876 * if passwords match, propagate it to citserver.
881 char newpass1[32], newpass2[32];
883 if (!havebstr("change_action")) {
884 safestrncpy(WC->ImportantMessage,
885 _("Cancelled. Password was not changed."),
886 sizeof WC->ImportantMessage);
891 safestrncpy(newpass1, bstr("newpass1"), sizeof newpass1);
892 safestrncpy(newpass2, bstr("newpass2"), sizeof newpass2);
894 if (strcasecmp(newpass1, newpass2)) {
895 safestrncpy(WC->ImportantMessage,
896 _("They don't match. Password was not changed."),
897 sizeof WC->ImportantMessage);
902 if (IsEmptyStr(newpass1)) {
903 safestrncpy(WC->ImportantMessage,
904 _("Blank passwords are not allowed."),
905 sizeof WC->ImportantMessage);
910 serv_printf("SETP %s", newpass1);
911 serv_getln(buf, sizeof buf);
912 sprintf(WC->ImportantMessage, "%s", &buf[4]);
914 if (WC->wc_password == NULL)
915 WC->wc_password = NewStrBufPlain(buf, -1);
917 FlushStrBuf(WC->wc_password);
918 StrBufAppendBufPlain(WC->wc_password, buf, -1, 0);
927 int ConditionalAide(StrBuf *Target, WCTemplputParams *TP)
929 return (WC->is_aide == 0);
932 int ConditionalRoomAide(StrBuf *Target, WCTemplputParams *TP)
934 return (WC->is_room_aide == 0);
937 int ConditionalIsLoggedIn(StrBuf *Target, WCTemplputParams *TP) {
938 return (WC->logged_in == 0);
940 int ConditionalRoomAcessDelete(StrBuf *Target, WCTemplputParams *TP)
943 return ( (WCC->is_room_aide) || (WCC->is_mailbox) || (WCC->room_flags2 & QR2_COLLABDEL) );
948 void _display_openid_login(void) {display_openid_login(NULL);}
949 void _display_reg(void) {display_reg(0);}
956 WebcitAddUrlHandler(HKEY(""), do_welcome, ANONYMOUS|COOKIEUNNEEDED); /* no url pattern at all? Show login. */
957 WebcitAddUrlHandler(HKEY("do_welcome"), do_welcome, ANONYMOUS|COOKIEUNNEEDED);
958 WebcitAddUrlHandler(HKEY("login"), do_login, ANONYMOUS|COOKIEUNNEEDED);
959 WebcitAddUrlHandler(HKEY("display_openid_login"), _display_openid_login, ANONYMOUS);
960 WebcitAddUrlHandler(HKEY("openid_login"), do_openid_login, ANONYMOUS);
961 WebcitAddUrlHandler(HKEY("finalize_openid_login"), finalize_openid_login, ANONYMOUS);
962 WebcitAddUrlHandler(HKEY("openid_manual_create"), openid_manual_create, ANONYMOUS);
963 WebcitAddUrlHandler(HKEY("do_logout"), do_logout, ANONYMOUS|COOKIEUNNEEDED|FORCE_SESSIONCLOSE);
964 WebcitAddUrlHandler(HKEY("validate"), validate, 0);
965 WebcitAddUrlHandler(HKEY("display_reg"), _display_reg, 0);
966 WebcitAddUrlHandler(HKEY("display_changepw"), display_changepw, 0);
967 WebcitAddUrlHandler(HKEY("changepw"), changepw, 0);
968 WebcitAddUrlHandler(HKEY("termquit"), do_logout, 0);
970 RegisterConditional(HKEY("COND:AIDE"), 2, ConditionalAide, CTX_NONE);
971 RegisterConditional(HKEY("COND:ROOMAIDE"), 2, ConditionalRoomAide, CTX_NONE);
972 RegisterConditional(HKEY("COND:ACCESS:DELETE"), 2, ConditionalRoomAcessDelete, CTX_NONE);
973 RegisterConditional(HKEY("COND:LOGGEDIN"), 2, ConditionalIsLoggedIn, CTX_NONE);
980 SessionDestroyModule_AUTH
983 FreeStrBuf(&sess->wc_username);
984 FreeStrBuf(&sess->wc_fullname);
985 FreeStrBuf(&sess->wc_password);
986 FreeStrBuf(&sess->wc_roomname);
987 FreeStrBuf(&sess->httpauth_user);
988 FreeStrBuf(&sess->httpauth_pass);
989 FreeStrBuf(&sess->cs_inet_email);