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) »
  • user login fails on standalone using openid & ACLs
Pages: [1] 2

Author Topic: user login fails on standalone using openid & ACLs  (Read 9793 times)

vrnoangels

  • Guest
user login fails on standalone using openid & ACLs
January 20, 2009, 11:54:49 pm
Hello Everyone,

i have installed civicrm standalone on my laptop. Everything went fine and I logged in with a newly created openid as Administrator.

Problem: Now i want my company staff to have logins too. I created an individual (jimmy with its own openid) and followed the steps in creating ACL for a group (that contains jimmy) to have access. But I cannot login with jimmy account. openid authentication goes fine but then civicrm says 'You are not allowed to login. Login failed. Contact your Administrator.'

I have double checked the steps to creating the role, acls, etc. but cant seem to go beyond this. I even tried to make another contact added to administrator group but that login too stops at the 'You are not allowed to login.. ' screen.

Any tips n help regarding this would be of great value to me.

Thanks.

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: user login fails on standalone using openid & ACLs
January 21, 2009, 07:13:24 am
Did you also set the "Allowed to login" flag next to open-id field ? If not you can edit the contact and set it.

If you want any anonymous user with valid open-id to be able to login irrespective of this flag being set/not, you can add the following line to your civicrm.settings.php file -
Quote
define( 'CIVICRM_ALLOW_ALL',  1 );
« Last Edit: January 21, 2009, 07:16:37 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

vrnoangels

  • Guest
Re: user login fails on standalone using openid & ACLs
January 22, 2009, 01:27:17 am
Thanks Deepak for your reply.
But i do have the flag 'Allowed to login' set to true.

And i do not want all open-id users to login to my system as one can/does on the standalone.demo... website.

I have four staff in my ngo that should have access to the system and will be populating the data too. Will i need a separate open-id for each of them? Is there no simpler username/pwd system in standalone civicrm?

will appreciate any help on how to go forward.


vrnoangels

  • Guest
Re: user login fails on standalone using openid & ACLs
January 22, 2009, 01:56:15 am
i also checked the database table civicrm_openid and i can see the openids associated to the contact_id with the allowed_to_login field being 1.

i do some amount of programming so if there is some code searching to find out if the ACLs and roles are set correctly, please let me know.

Thanks.

vrnoangels

  • Guest
Re: user login fails on standalone using openid & ACLs
January 22, 2009, 02:43:57 am
OK its fixed now.
somehow there ended up two records having the same openid and that caused the login to fail.

Thanks Deepak for your prompt reply.
Regards!

mrengy

  • Guest
Re: user login fails on standalone using openid & ACLs
January 23, 2009, 04:06:46 pm
Hmm, I'm having the same problem.

I created a test user, and assigned the OpenID of http://recycleabike.myopenid.com

Edited the user and entered that OpenID, checked the "Allowed to Login" box.

I can see only two open IDs in my database: there is mine which is working fine and the test one (http://recycleabike.myopenid.com). Both have a value of "1" for "allowed_to_login".

When I try to log in with http://recycleabike.myopenid.com, it is still giving the error: "You are not allowed to login. Login failed. Contact your Administrator."

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: user login fails on standalone using openid & ACLs
January 24, 2009, 11:27:52 am
mrengy, Remove second entry from civicrm_uf_match table and try logging again.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mrengy

  • Guest
Re: user login fails on standalone using openid & ACLs
January 24, 2009, 09:58:46 pm
Thanks, but I'm not sure quite what you mean. I'm new to messing with databases. Here is what I see under civicrm_uf_match:

(http://www.recycleabike.org/temp/civicrm_uf_match.png)

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: user login fails on standalone using openid & ACLs
January 25, 2009, 03:46:42 am
I would be interested in looking at the content of your civicrm_uf_match table. Clicking on browse tab would display the content.

As you said the second contact has problem logging in, i suspect there are multiple (at least two) entries in civicrm_uf_table with same uf_id which is creating problem.

Jump on IRC (http://embed.mibbit.com/?server=irc.freenode.net&channel=%23civicrm&forcePrompt=true) if not clear.
« Last Edit: January 25, 2009, 06:00:59 am by Deepak Srivastava »
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mrengy

  • Guest
Re: user login fails on standalone using openid & ACLs
January 25, 2009, 09:17:24 am
Okay, I clicked browse and here is what I got in civicrm_uf_match. It looks as though there is only one ID in there.
(http://recycleabike.org/temp/civicrm_uf_match_browse.png)


Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: user login fails on standalone using openid & ACLs
January 25, 2009, 09:28:39 am
Strange that uf_name is set to null when it should actually have open_id. Is you admin account working properly ?

I would recommend to empty this table and re-setup admin and other accounts. Note: this would not affect any other data.   
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mrengy

  • Guest
Re: user login fails on standalone using openid & ACLs
January 25, 2009, 09:36:38 am
The admin account is working fine. Okay. I'll back up the DB and try emptying that table and setting up the accounts again.

mrengy

  • Guest
Re: user login fails on standalone using openid & ACLs
January 25, 2009, 09:56:46 am
I emptied the civicrm_uf_match table, logged out of CiviCRM, and tried to log back in. When I navigate to the login page, it says, "CiviCRM First User Setup

Congratulations! You've successfully installed CiviCRM Standalone. Let's setup your first user account (which will be the admin account). Start by entering your OpenID below."

I enter my OpenID, and it takes me to a blank page that, after redirecting URLS several times, lands on "http://recycleabike.org:/crm/standalone/index.php?q=civicrm/standalone/register&reset=1&configReset=1".

Deepak Srivastava

  • Ask me questions
  • ****
  • Posts: 677
  • Karma: 65
Re: user login fails on standalone using openid & ACLs
January 25, 2009, 10:01:03 pm
Remove the file standalone/files/civicrm/upload/Config.IDS.ini. OR change it some other filename (if you don't want to remove).
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

mrengy

  • Guest
Re: user login fails on standalone using openid & ACLs
January 28, 2009, 03:20:14 pm
Okay, I renamed that file and was able to set up the admin account again. The remaining login accounts were still in the system, so I deleted the test user and created it again.

When I tried logging in as the test user, I got the same error:

"You are not allowed to login. Login failed. Contact your Administrator."

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • user login fails on standalone using openid & ACLs

This forum was archived on 2017-11-26.