[LON-CAPA-admin] Loncapa Captcha

Balagopal Pillai Balagopal.Pillai at Dal.Ca
Wed Aug 23 13:12:51 EDT 2017


Hi Stuart,

            I checked the capa server again. Please see below -

            libauthen-captcha-perl version - 1.024-1 on 16.04

            /home/httpd/perl/debug/memcached_dump.pl |grep 'login.captcha'
          'mathstatdal.login.captcha' => 'original',

           But I noticed another issue. As domain co-ordinator on the 14.04 dev vm, listdomconfig.pl
           lists info that is several pages long. But on 16.04, the same thing is barely one page long.
           I see coursecatagories, cousedefaults etc on 14.04. But on 16.04, all I see is two sections (one is
           duplicate of the other) that says defaults, login = $VAR1 and scantron. Could this be corrupted
           domain configuration? Could there be a way to regenerate this config. Thanks a lot.




Regards

Balagopal Pillai
Room 004, Chase Building
Department of Mathematics and Statistics
<http://www.dal.ca>
Dalhousie University
Halifax, NS
(902) 494-3204



________________________________
From: lon-capa-admin-bounces at mail.lon-capa.org <lon-capa-admin-bounces at mail.lon-capa.org> on behalf of Stuart Raeburn <raeburn at msu.edu>
Sent: Wednesday, August 23, 2017 9:14 AM
To: lon-capa-admin at mail.lon-capa.org
Subject: Re: [LON-CAPA-admin] Loncapa Captcha

Hi Balagopal,

By default, no Captcha is included in the "Contact Helpdesk" web form
(unauthenticated access) linked to from the log-in page.

A domain coordinator would use: Main Menu > Set domain configuration >
Display ("Log-in page options" checked), then check the "original
(CAPTCHA)" radio button in the "Contact helpdesk" CAPTCHA validation
row and push "Save Changes" to set the public-facing helpdesk to use
Authen::Captcha.

I tested this on VMs running Ubuntu 16.04 LTS (both 32 and 64 bit) and
found that Captcha was working correctly, with files written to the
captchadb and captchaspool directories when I displayed the helpdesk
web form.  When the form was submitted, the Captcha was validated as
expected.

A plain text display of your domain's configuration is available via:
/cgi-bin/listdomconfig.pl.  A domain coordinator can display that URL,
when logged in, with the DC role selected.  Look for the captcha item
within the "login = $VAR1 = { }" data structure.  You can also check
what has been cached in memcache by running:

/home/httpd/perl/debug/memcached_dump.pl |grep'login.captcha'

from the command line.

On Ubuntu 16.04 LTS:

sudo dpkg-query -s libauthen-captcha-perl

reports:

Version: 1.024-1
Depends: perl, libgd-perl | libgd-gd2-noxpm-perl | libgd-gd2-perl,
libstring-random-perl

You might check that the libgd-perl and libstring-random-perl packages
are present.

The version of libauthen-captcha-perl on Ubuntu 14.04 LTS is 1.023-6.


Stuart Raeburn
LON-CAPA Academic Consortium

Quoting Balagopal Pillai <Balagopal.Pillai at Dal.Ca>:

> Hi,
>
>          I upgraded Loncapa version to 2.11.2 and Ubuntu to 16.04
> today. Everything works fine
>          except the captcha on help desk link. I tested it by
> upgrading the dev vm to  2.11.2 and leaving
>          ubuntu there to 14.04. Captcha worked fine there. I checked
> the permissions for captchadb
>          and captchaspool directories and they are both owned by
> apache user. The captcha perl packages
>          are present on both vms. The only difference is OS version.
> I was wondering if there is something
>          I am overlooking here. Thanks a lot.
>
>
>
> Regards
>
> Balagopal Pillai
> Room 004, Chase Building
> Department of Mathematics and Statistics
>>
> Dalhousie University
> Halifax, NS
> (902) 494-3204

_______________________________________________
LON-CAPA-admin mailing list
LON-CAPA-admin at mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-admin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.lon-capa.org/pipermail/lon-capa-admin/attachments/20170823/8d44eb35/attachment.html>


More information about the LON-CAPA-admin mailing list