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) »
  • Is there an alternative to Openid for adminstrators?
Pages: [1]

Author Topic: Is there an alternative to Openid for adminstrators?  (Read 2745 times)

davidunwinubs13

  • I post occasionally
  • **
  • Posts: 41
  • Karma: 1
    • Marylebone Association
  • CiviCRM version: 3.3.6
  • CMS version: Drupal 6
  • MySQL version: 5
  • PHP version: 5
Is there an alternative to Openid for adminstrators?
July 20, 2009, 09:12:08 am
I have installed the standalone version of CiviCRM and I have created an Openid for myself.
My non-profit org will have 2 people responsible for managing contacts, memberships mailing etc. I will be only a technical support contact. We will also need to let some members of our management committee access CiviCRM to find contact details.

Our general membership will have no access to CiviCRM directly. We will have membership signup/renewal forms created from Civicrm and placed on our public web site where new members can sign up and existing members renew.

My question is: Does every admin or other person who needs to access the CiviCRM site have to have an Openid? Or, is there another way we can give them access without them having to sign up for an Openid, which seems a bit of an overkill to me?
« Last Edit: July 21, 2009, 08:48:34 am by davidunwinubs13 »

BadPenguin

  • I’m new here
  • *
  • Posts: 8
  • Karma: 0
Re: Is there an alternative to Openid for adminstrators?
August 22, 2009, 06:55:43 am
I was in the same predicament and found something called phpMyID fit my needs perfectly.  It is basically a config file based, standalone identity provider, it consists of two php scripts and can be deployed in a few minutes.

I created a directory in my web site document root, openid, and copied MyID.php to it.  I then created directories underneath the openid directory for each user, and copied MyID.config.php to them, renamed as index.php.

Code: [Select]
/openid
    MyID.php
    index.php (empty file to prevent directory listings of the /openid directory)
    /userA
        index.php (MyID.php)
    /userB
        index.php (MyID.php)
    /userC
        index.php (MyID.php)


Decide on a realm, it can be anything, say "MyRealm".  For each user get the md5 string for their password.  In my case mysql was available so I used it.

Code: [Select]
select md5('userA:MyRealm:PasswordForUserA');
select md5('userB:MyRealm:PasswordForUserB');
and so on...

Edit each user's index.php:

  • change auth_username to the username
  • change auth_password to the md5 encoded password generated above
  • uncomment auth_realm and set it to your realm (i.e. MyRealm)
  • near the bottom of the file, change require('MyID.php'); to require('../MyID.php');

The configured users can now use identity urls like: http://server.domain.com/openid/userA/, http://server.domain.com/openid/userB/, etc...

Of course, you need to set file permissions appropriately if you are on a shared server, to prevent other users from being able to view those credentials in the index.php's.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Standalone Installations (Moderator: cap10morgan) »
  • Is there an alternative to Openid for adminstrators?

This forum was archived on 2017-11-26.