<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Arial,Helvetica,sans-serif;" dir="ltr">
<p></p>
<div>Hi Stuart,</div>
<div><br>
</div>
<div>                 Actually this was the 16.04 instance. Captcha started to work automagically from yesterday afternoon!</div>
<div>                 Here is the dump of configuration.db - </div>
<div>                 </div>
<div>                  /home/httpd/perl/debug/dump_db.pl -u /home/httpd/lonUsers/mathstatdal/configuration.db</div>
<div>scantron = $VAR1 = {</div>
<div>          'scantronformat' => ''</div>
<div>        };</div>
<div><br>
</div>
<div>defaults = $VAR1 = {</div>
<div>          'datelocale_def' => '',</div>
<div>          'lang_def' => '',</div>
<div>          'auth_arg_def' => '',</div>
<div>          'auth_def' => undef,</div>
<div>          'timezone_def' => '',</div>
<div>          'portal_def' => 'http://capa.mathstat.dal.ca'</div>
<div>        };</div>
<div><br>
</div>
<div>login = $VAR1 = {</div>
<div>          'captcha' => 'original',</div>
<div>          'coursecatalog' => '0',</div>
<div>          'newuser' => '0',</div>
<div>          'loginheader' => undef,</div>
<div>          'adminmail' => '0',</div>
<div>          'showlogo' => {</div>
<div>                          'logo' => '1',</div>
<div>                          'img' => '1'</div>
<div>                        },</div>
<div>          'helpdesk' => '1',</div>
<div>          'recaptchakeys' => {</div>
<div>                               'private' => '',</div>
<div>                               'public' => ''</div>
<div>                             }</div>
<div>        };</div>
<div><br>
</div>
<div>       I tried the rebuild of gdbm file after renaming the configuration.db file. The result is the same as above. </div>
<div>       Users are reporting that everything is working as expected though. Thanks a lot. </div>
<br>
<p></p>
<p><br>
</p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: Tahoma, Geneva, sans-serif, EmojiFont, "Apple Color Emoji", "Segoe UI Emoji", NotoColorEmoji, "Segoe UI Symbol", "Android Emoji", EmojiSymbols;">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div name="divtagdefaultwrapper" style="margin:0px"><font face="Arial, Helvetica, sans-serif">Regards
</font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<br>
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; text-align:left; margin:0px">
<font face="Arial,Helvetica,sans-serif"><b>Balagopal Pillai</b></font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; text-align:left; margin:0px">
<span style="font-family:Arial,Helvetica,sans-serif"><b>Room 004, Chase Building</b></span></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<div style="text-align:left"><span style="font-family:Arial,Helvetica,sans-serif"><b>Department of Mathematics and Statistics    </b></span></div>
<font face="Arial,Helvetica,sans-serif"><b><a tabindex="0" href="http://www.dal.ca" id="LPNoLP"></a>
<div style="text-align:left">Dalhousie University</div>
</b></font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; text-align:left; margin:0px">
<font face="Arial,Helvetica,sans-serif"><b>Halifax, NS </b></font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; text-align:left; margin:0px">
<font face="Arial,Helvetica,sans-serif"><b>(902) 494-3204</b></font></div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; text-align:left; margin:0px">
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; text-align:left; margin:0px">
</div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; margin:0px">
<br>
</div>
</div>
</div>
</div>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> lon-capa-admin-bounces@mail.lon-capa.org <lon-capa-admin-bounces@mail.lon-capa.org> on behalf of Stuart Raeburn <raeburn@msu.edu><br>
<b>Sent:</b> Wednesday, August 23, 2017 8:17 PM<br>
<b>To:</b> lon-capa-admin@mail.lon-capa.org<br>
<b>Subject:</b> Re: [LON-CAPA-admin] Loncapa Captcha</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt;">
<div class="PlainText">Hi Balagopal,<br>
<br>
When I visited the "Contact Helpdesk" web form on your mathstat server  <br>
(reported version: 2.11.2) a few hours ago, a Captcha was included in  <br>
the form, and when I submitted with the correct Captcha completed, it  <br>
was validated, and the help request was processed. (Perhaps this is  <br>
your 14.04 instance?).<br>
<br>
Your domain's configuration.db file will be found at:<br>
<br>
/home/httpd/lonUsers/mathstatdal/configuration.db<br>
<br>
On the filesystem you can view the contents using:<br>
<br>
/home/httpd/perl/debug/dump_db.pl -u  <br>
/home/httpd/lonUsers/mathstatdal/configuration.db<br>
<br>
If necessary you can rebuild the GDBM file from the corresponding  <br>
.hist file with the commands:<br>
<br>
cd /home/httpd/lonUsers/mathstatdal/<br>
/home/httpd/perl/debug/rebuild_db_from_hist.pl configuration.hist<br>
<br>
if you want to test the rebuild first you would use:<br>
<br>
/home/httpd/perl/debug/rebuild_db_from_hist.pl -t configuration.hist<br>
<br>
However, I would check the backup of your server first, and compare  <br>
file size and modification time for the current configuration.db, and  <br>
the one in your backup.<br>
<br>
><br>
>            I see coursecatagories, cousedefaults etc on 14.04. But  <br>
> on 16.04, all I see is two sections (one is<br>
>            duplicate of the other)<br>
<br>
Yes it sounds as though the 16.04 version does not have the complete  <br>
configuration.db file.<br>
<br>
Note: the /cgi-bin/listdomconfig.pl script will output two copies of  <br>
the configuration information, each copy beginning with the header line:<br>
<br>
Domain configuration for Department of Mathematics and Statistics  <br>
(lonmathstat1)<br>
<br>
The reason for the duplicates is that the array returned by  <br>
&current_machine_ids() in lonnet.pm will contain  <br>
('lonmathstat1','lonmathstat1');<br>
<br>
lonnet.pm rev. 1.1351 fixes that; see:  <br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.lon-2Dcapa.org_pipermail_lon-2Dcapa-2Dcvs_Week-2Dof-2DMon-2D20170821_027880.html&d=DwICAw&c=nE__W8dFE-shTxStwXtp0A&r=6g24AmpQZBPFulGSIuS5JJ6GiSlM0WnvLBs7abAf0Go&m=4mJ6HRfrDKRs8aCoPT4wZDKGHhKPn0VuHovOQ5OhRjY&s=9QZLoBYRDnzuQeI3PiiWUrT0hk-cB5AGmhrz3WBzmLU&e="><font color="red"><b>MailScanner has detected definite fraud in the website at "urldefense.proofpoint.com". Do <i>not</i> trust this website:</b></font> https://urldefense.proofpoint.com/v2/url?u=http-3A__mail.lon-2Dcapa.org_pipermail_lon-2Dcapa-2Dcvs_Week-2Dof-2DMon-2D20170821_027880.html&d=DwICAw&c=nE__W8dFE-shTxStwXtp0A&r=6g24AmpQZBPFulGSIuS5JJ6GiSlM0WnvLBs7abAf0Go&m=4mJ6HRfrDKRs8aCoPT4wZDKGHhKPn0VuHovOQ5OhRjY&s=9QZLoBYRDnzuQeI3PiiWUrT0hk-cB5AGmhrz3WBzmLU&e=</a>
<br>
<br>
<br>
Stuart Raeburn<br>
LON-CAPA Academic Consortium<br>
<br>
<br>
Quoting Balagopal Pillai <Balagopal.Pillai@Dal.Ca>:<br>
<br>
> Hi Stuart,<br>
><br>
>             I checked the capa server again. Please see below -<br>
><br>
>             libauthen-captcha-perl version - 1.024-1 on 16.04<br>
><br>
>             /home/httpd/perl/debug/memcached_dump.pl |grep 'login.captcha'<br>
>           'mathstatdal.login.captcha' => 'original',<br>
><br>
>            But I noticed another issue. As domain co-ordinator on  <br>
> the 14.04 dev vm, listdomconfig.pl<br>
>            lists info that is several pages long. But on 16.04, the  <br>
> same thing is barely one page long.<br>
>            I see coursecatagories, cousedefaults etc on 14.04. But  <br>
> on 16.04, all I see is two sections (one is<br>
>            duplicate of the other) that says defaults, login = $VAR1  <br>
> and scantron. Could this be corrupted<br>
>            domain configuration? Could there be a way to regenerate  <br>
> this config. Thanks a lot.<br>
><br>
><br>
><br>
><br>
> Regards<br>
><br>
> Balagopal Pillai<br>
> Room 004, Chase Building<br>
> Department of Mathematics and Statistics<br>
> Dalhousie University<br>
> Halifax, NS<br>
> (902) 494-3204<br>
><br>
><br>
><br>
> ________________________________<br>
> From: lon-capa-admin-bounces@mail.lon-capa.org  <br>
> <lon-capa-admin-bounces@mail.lon-capa.org> on behalf of Stuart  <br>
> Raeburn <raeburn@msu.edu><br>
> Sent: Wednesday, August 23, 2017 9:14 AM<br>
> To: lon-capa-admin@mail.lon-capa.org<br>
> Subject: Re: [LON-CAPA-admin] Loncapa Captcha<br>
><br>
> Hi Balagopal,<br>
><br>
> By default, no Captcha is included in the "Contact Helpdesk" web form<br>
> (unauthenticated access) linked to from the log-in page.<br>
><br>
> A domain coordinator would use: Main Menu > Set domain configuration ><br>
> Display ("Log-in page options" checked), then check the "original<br>
> (CAPTCHA)" radio button in the "Contact helpdesk" CAPTCHA validation<br>
> row and push "Save Changes" to set the public-facing helpdesk to use<br>
> Authen::Captcha.<br>
><br>
> I tested this on VMs running Ubuntu 16.04 LTS (both 32 and 64 bit) and<br>
> found that Captcha was working correctly, with files written to the<br>
> captchadb and captchaspool directories when I displayed the helpdesk<br>
> web form.  When the form was submitted, the Captcha was validated as<br>
> expected.<br>
><br>
> A plain text display of your domain's configuration is available via:<br>
> /cgi-bin/listdomconfig.pl.  A domain coordinator can display that URL,<br>
> when logged in, with the DC role selected.  Look for the captcha item<br>
> within the "login = $VAR1 = { }" data structure.  You can also check<br>
> what has been cached in memcache by running:<br>
><br>
> /home/httpd/perl/debug/memcached_dump.pl |grep'login.captcha'<br>
><br>
> from the command line.<br>
><br>
> On Ubuntu 16.04 LTS:<br>
><br>
> sudo dpkg-query -s libauthen-captcha-perl<br>
><br>
> reports:<br>
><br>
> Version: 1.024-1<br>
> Depends: perl, libgd-perl | libgd-gd2-noxpm-perl | libgd-gd2-perl,<br>
> libstring-random-perl<br>
><br>
> You might check that the libgd-perl and libstring-random-perl packages<br>
> are present.<br>
><br>
> The version of libauthen-captcha-perl on Ubuntu 14.04 LTS is 1.023-6.<br>
><br>
><br>
> Stuart Raeburn<br>
> LON-CAPA Academic Consortium<br>
><br>
> Quoting Balagopal Pillai <Balagopal.Pillai@Dal.Ca>:<br>
><br>
>> Hi,<br>
>><br>
>>          I upgraded Loncapa version to 2.11.2 and Ubuntu to 16.04<br>
>> today. Everything works fine<br>
>>          except the captcha on help desk link. I tested it by<br>
>> upgrading the dev vm to  2.11.2 and leaving<br>
>>          ubuntu there to 14.04. Captcha worked fine there. I checked<br>
>> the permissions for captchadb<br>
>>          and captchaspool directories and they are both owned by<br>
>> apache user. The captcha perl packages<br>
>>          are present on both vms. The only difference is OS version.<br>
>> I was wondering if there is something<br>
>>          I am overlooking here. Thanks a lot.<br>
>><br>
>><br>
>><br>
>> Regards<br>
>><br>
>> Balagopal Pillai<br>
>> Room 004, Chase Building<br>
>> Department of Mathematics and Statistics<br>
>>><br>
>> Dalhousie University<br>
>> Halifax, NS<br>
>> (902) 494-3204<br>
><br>
> _______________________________________________<br>
> LON-CAPA-admin mailing list<br>
> LON-CAPA-admin@mail.lon-capa.org<br>
<br>
_______________________________________________<br>
LON-CAPA-admin mailing list<br>
LON-CAPA-admin@mail.lon-capa.org<br>
<a href="http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin">http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin</a><br>
</div>
</span></font></div>
</div>
</body>
</html>