Hi all, Been lurking on the list for a few weeks and I've finally worked up some courage to ask a question :-) I'm currently working on a very-much overhauled version of the CAS module that incorporates LDAP data to pull users and user affiliation info from these services and populate users and groups using the OG module(s). It's working great and I've found module development to be very enjoyable, however I've got a question: Can someone explain authmap? I seem to gather from the limited info I can find<http://drupal.org/node/22268>that it's used to simple store user data in another, possibly non-drupal database on the same database server... am I right? If so, how do I tell it which table in that database, and which field in that table, maps to user name, etc.? Or, is it used to simply allow multiple drupal instances to use the same user base? If that's the case (just allow multiple instances to use the same users), does anyone have advice on extending this capability to have it point at completely unrelated services data? Right now I'm simply telling it to store all the users as drupal users of the local drupal instance. Thanks ahead of time for your help. // Jeff Beeman P.S. "Hi!" Lullabot folks, if you read this. I love the podcast!
I seem to gather from the limited info I can find<http://drupal.org/node/22268>that it's used to simple store user data in another, possibly non-drupal database on the same database server... am I right? If so, how do I tell it which table in that database, and which field in that table, maps to user name, etc.? Or, is it used to simply allow multiple drupal instances to use the same user base?
yes, it is a mapping between the drupal userid and an external userid. the decision of what table and what column in the external system is entirely up to the module which 'owns' the authmap record. see the 'module' column of authmap table. that module has logic either hard coded or in settings about connection details to foreign system. hope that makes sense.
What's a good example of a module that uses authmap that I can look at for reference? // Jeff Beeman On 9/7/06, Moshe Weitzman <weitzman@tejasa.com> wrote:
I seem to gather from the limited info I can find<http://drupal.org/node/22268>that it's used to simple store user data in another, possibly non-drupal database on the same database server... am I right? If so, how do I tell it which table in that database, and which field in that table, maps to user name, etc.? Or, is it used to simply allow multiple drupal instances to use the same user base?
yes, it is a mapping between the drupal userid and an external userid. the decision of what table and what column in the external system is entirely up to the module which 'owns' the authmap record. see the 'module' column of authmap table. that module has logic either hard coded or in settings about connection details to foreign system. hope that makes sense.
On 9/7/06, Jeff Beeman <doogieb@gmail.com> wrote:
What's a good example of a module that uses authmap that I can look at for reference?
Try LDAP or SXIP modules. -- Boris Mann Vancouver 778-896-2747 San Francisco 415-367-3595 Skype borismann http://www.bryght.com
On 7-Sep-06, at 10:30 PM, Boris Mann wrote:
On 9/7/06, Jeff Beeman <doogieb@gmail.com> wrote:
What's a good example of a module that uses authmap that I can look at for reference?
Try LDAP or SXIP modules.
or drupal.module (in core)... -- James Walker :: http://walkah.net/ :: xmpp:walkah@walkah.net
participants (4)
-
Boris Mann -
James Walker -
Jeff Beeman -
Moshe Weitzman