Authentication

 
 
Picture of Helen Foster
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
Group DevelopersGroup Documentation writersGroup Moodle HQGroup Particularly helpful MoodlersGroup Testers

Hi Matt,

For up-to-date info on how guest access works, please see the documentation Guest access.

Guests can be logged in automatically when entering courses with guest access i.e. no login screen by ticking the 'Auto-login guests' checkbox in Administration > Site administration > Users > Permissions > User policies.

 
Average of ratings: -
Picture of Emma Coles
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
 

I have asked our Moodle Admin to switch this on but they report back "Turning on the "auto-login guests" makes the whole system unacceptably slow." Has anyone else experienced this problem? If so, was there a workaround? Many thanks (in advance). Emma

 
Average of ratings: -
Mary Cooch
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
Group Documentation writersGroup Moodle Course Creator Certificate holdersGroup Moodle HQGroup Particularly helpful MoodlersGroup TestersGroup Translators

I have never heard of that  one before - let's see what others say.

 
Average of ratings: -
Picture of Deirdre Kirmis
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
 

I have configured all of the settings listed in this document, but I still cannot view an individual course as guest without the guest login button setting being set to show in the authentication plugin. If I turn that setting on, i can go directly to a course by adding the &username=guest extension onto the course URL, but if I turn it off it doesn't work. I don't want that turned on because I don't want anyone else to have guest access, and I don't want anyone to go to our Moodle main site URL and see anything as guest. (ie: when you go to our URL I just want the login screen).  How can I do this?

 
Average of ratings: -
Picture of Andre Paz Leal
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
 

Somebody found a way of doing this? AUto-login set on but still the guest is returned to the login page to click the login button.

 
Average of ratings: -
Picture of Paul Nijbakker
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
Group Particularly helpful Moodlers

Bump. I also have all the settings suggested in the Documentation for Moodle 2.5 switched on (except the guest access password and the Open to Google setting), but still cannot enter any course as a guest, not even when clicking the Login as a guest button and the "&username=guest" addition to the course URL does not work either.

Yet it must be possible to allow guest access without passing via a login page, because this Moodle.org site allows just that.

Rgrds,
Paul.

 
Average of ratings: -
Picture of Paul Nijbakker
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
Group Particularly helpful Moodlers

Hi,

I tried to follow these instructions found elsewhere in the forums:

  1. Login to your database in PHPMyAdmin
  2. On the lefthand side, scroll down and click on the little icon (not the text) for mdl_user (the icon or the text makes no difference in my case; the view is the same)
  3. This will open a table, where the top entry in the "username" column is "guest". Click on the pencil icon on the lefthand side. (Interestingly, I did not find any user with the username "guest" in my Moodle database, but I find no fewer than 41 users that have coded usernames and whose firstname is "Guest User". Is that normal?)
  4. This will open another table. On the sixth or so entry from the top is a row with "mnethostid" in the "field" category. Change its value to "0", then scroll to the bottom of the page and click "Go". That's it. (Changing the setting mnethostid to "0" for all the "guest User"s did not have any result in my case.)

In my other Moodle 2.5 installation there is a user (id = 1) that has the username "guest". I changed the coded username for id = 1 in my former installation to "guest", but that did not help either. Even if I also change the password of the "guest" account to "guest" and I try logging in normally as "guest/guest" I cannot get in.

I also tried combining the Guest enrolment in a course with a Self-enrolment for the Guest role, without an enrolment key... nada. I keep getting returned to the login page where clicking the Login as a guest button just puts the username "guest" in the username box, clicking it again, results in "Invalid login, please try again".

Who would have any suggestions?

Rgrds,
Paul

 
Average of ratings: -
Picture of Paul Nijbakker
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
Group Particularly helpful Moodlers

I also tried taking away the password for the "guest" ID altogether, but the site just keeps refusing any kind of guest access.

Happy Valentine's Day sad

Paul.

 
Average of ratings: -
Picture of Paul Nijbakker
Re: Guest access without the [Login as Guest] button...
Group Particularly helpful Moodlers

Hi all,

We finally got guest login working again, by opening the mdl_user table in the database and returning the id=1 user to username = "guest" with as password "guest" (We used a random user to change the password to guest and then in the database we copied that salted password to the Guest User ID.)

We also changed the "1" under Deleted to "0" (As it appeared Moodle had been removing and recreating the Guest User in the past).

Then we opened the mdl_config table in the database and changed the siteguest value to "1".

And then we Purged all cache.

And then it started working again normally (before this the guest ID was treated as a normal user by Moodle (i.e. it could edit its profile and post in forums etc.) So, issue fixed, solution and solved (in case someone is searching wih these words as search terms wink).

Rgrds,
Paul.

 
Average of ratings: -
Picture of Barbara Taylor
Re: תשובה ל: Re: Guest access without the [Login as Guest] button...
 

Paul,

I put guest courses into a guest category.  The course is set to be visible and guest access yes.  When I go to my site -> click on the Courses link in the Navigation block -> I see the Guest category -> click on one of the courses listed -> have instant access

 

Barbara

 
Average of ratings: -
Picture of Paul Nijbakker
Re: Guest access without the [Login as Guest] button...
Group Particularly helpful Moodlers

Hi Barbara,

Thank you for your response but it does not address my problem. My site does not allow guest access at all, despite all the right settings being in place. I suspect the system was corrupted at some time, but my attempts to fix it have been fruitless.

Rgrds,
Paul.

 
Average of ratings: -