CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Strange OpenID issues...
Pages: [1]

Author Topic: Strange OpenID issues...  (Read 3042 times)

Zaxxon

  • Guest
Strange OpenID issues...
October 23, 2008, 01:21:59 pm
Hello!

I am running in circles since switching to 2.1.1 standalone from an old 1.7 Drupal installation. To make it clear, I did not migrate any information or DB's as the 1.7 was kind of an eval sandbox for us, and now that we decided to move forward with it I wanted a more solid installation with less overhead, as we really have no need for another CMS, already running MOSS...

The issue that I am having is that it seems I can always only have one user able to log onto the system. I know this sounds odd, and I am not talking about concurrent logons, but the number of users able to log on. After install I signed up for a new myOpenID and civiCRM displayed the nice screen to get the basic user information before allowing one into the system. All was well, this first user was in the Administrator group - perfect.

Now I try to add a user through the same process as before, and as soon as I enter the newly created (and confirmed!) myOpenID into the civiCRM logon screen and submit it, I get an error that says: "You are not allowed to login. Login failed. Contact your Administrator. Home Page"

Strangely enough, if I get rid of that one user, including the entries in the openid and UF tables, I can now register one more user, no matter who that might be, but no more users after that. I already tried emptying the pertaining tables and importing the sql from the tarball as indicated in another thread ( http://forum.civicrm.org/index.php/topic,4820.msg21079.html#msg21079 ), but it did not make the least difference.

Anyone got any ideas???


Thanks already in advance,
Marcus.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Strange OpenID issues...
October 23, 2008, 01:57:05 pm
You 'll also need to set the "Allowed to Login" checkbox for the user you want to allow login, which you can find on contact edit screen.

But if you don't want to do this every time you could also add the following line to your civicrm settings file, which would then allow any user (even anonymous user /w valid openid account) to login.
Code: [Select]
define( 'CIVICRM_ALLOW_ALL',  1 );
Ideally profile should allow to expose this field ("Allowed to Login") so you could directly use the profile rather than going on contact-edit form every time. You could file an issue for this for v2.2.   
« Last Edit: October 23, 2008, 02:06:17 pm by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Zaxxon

  • Guest
Re: Strange OpenID issues...
October 23, 2008, 05:40:51 pm
Not sure if I was able to explain exactly what is going on with my initial post, but that error actually comes up before a user is generated from the openID login. It appears right after you enter a new openID, log in on the myopenID site and click the button to sign into the civiCRM site. It is the same if I create the user beforehand, add that user to the Administrators group, enter the openID and check the "Allowed to login" checkbox.

Now I did try to add the line to the settings file, but when I do that and then try to log in with another openID I get this error message:

Sorry. A non-recoverable error has occurred.
You do not have permission to access this page

Return to home page.

I can go back, reload, enter the address again, but will not get back to the login screen now until I remove the new entry from the settings file again - then everything behaves again as above :(


Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: Strange OpenID issues...
October 23, 2008, 06:00:43 pm
Quote
Now I did try to add the line to the settings file, but when I do that and then try to log in with another openID I get this error message:

Sorry. A non-recoverable error has occurred.
You do not have permission to access this page

Thats a sign of users being able to login but not have enough access to any civicrm interface, because by default ACL permissions are setup to give very limited permissions to other users (authenticated/anonymous).

You can go to "Administer CiviCRM >> Access Control >> 4. Manage Core ACLs" page and give more strong permissions to "Authenticated" role (way you want).

And you won't face that error any more :)

So for authenticated users to be able to login, following are expected -
1. They have "allowed to login" set OR civicrm settings file has "'CIVICRM_ALLOW_ALL' set.
2. They have strong enough permissions set by ACL (which administrator has control over).
« Last Edit: October 23, 2008, 06:24:27 pm by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Zaxxon

  • Guest
Re: Strange OpenID issues...
October 23, 2008, 06:35:58 pm
You are the man!

Thank you so much for your help - now it all makes sense, once you figure out how the whole openID registration process works, and that the default group is authenticated users ; -)

Just added the "access civicrm" permission and I was able to log in. However, the system creates an empty user object with the new openID, and I have not yet found a way to search for these, other then just grabbing the top records of the list and then filling out the details for the particular user and adding them to their groups for ACL and such.

So, once again, thank you for your help!
Have a great night,
Marcus.

efaeh

  • Guest
Re: Strange OpenID issues...
November 20, 2008, 03:33:45 am
I connected to openid.com, two days lifetime only, now not more login. Is not existing another login exped openid for the standalone-versioin?

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Strange OpenID issues...

This forum was archived on 2017-11-26.