Project

General

Profile

Paste
Statistics
| Branch: | Revision:

root / drupal7 / sites / all / modules / ldap / ldap_authorization @ b42754b9

Name Size Revision Age Author Comment
  ldap_authorization_drupal_role b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  ldap_authorization_og b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
  tests 59ae487e about 7 years Assos Assos Weekly update of contrib modules
LdapAuthorizationConsumerAbstract.class.php 19.4 KB 59ae487e about 7 years Assos Assos Weekly update of contrib modules
LdapAuthorizationConsumerConf.class.php 5.1 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
LdapAuthorizationConsumerConfAdmin.class.php 17 KB 59ae487e about 7 years Assos Assos Weekly update of contrib modules
README.txt 2.12 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
ldap_authorization.admin.inc 5.14 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
ldap_authorization.admin.test.inc 9.36 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
ldap_authorization.api.php 1.63 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
ldap_authorization.inc 21.7 KB 59ae487e about 7 years Assos Assos Weekly update of contrib modules
ldap_authorization.info 854 Bytes b42754b9 almost 7 years Assos Assos Weekly update of contrib modules
ldap_authorization.install 11 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
ldap_authorization.module 13 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7
ldap_authorization.theme.inc 4.82 KB f7a2490e over 10 years Assos Assos git mv htmltest drupal7

Latest revisions

# Date Author Comment
b42754b9 08/31/2017 12:06 AM Assos Assos

Weekly update of contrib modules

05237dd8 06/01/2017 12:09 AM Assos Assos

Weekly update of contrib modules

59ae487e 05/25/2017 12:10 AM Assos Assos

Weekly update of contrib modules

be58a50c 03/23/2017 12:06 AM Assos Assos

Weekly update of contrib modules

7547bb19 02/23/2017 12:12 AM Assos Assos

Weekly update of contrib modules

5136ce55 08/10/2016 10:49 PM Assos Assos

Weekly update of contrib modules

f7a2490e 02/13/2014 03:56 PM Assos Assos

git mv htmltest drupal7

View revisions

README


Vocubulary of LDAP Authorization and its Code


"Consumer"

The "consumer" or entity that authorization is being granted.

Examples: Drupal role, Organic Group group


"Consumer Type"

Machine ID of a consumer. This is used in naming conventionss.

Examples: drupal_role, og_group


"Consumer Module"

The module that bridges ldap_authorization and the consumer.
It needs to (1) provide a class: LdapAuthorizationConsumer
and (2) implement hook_ldap_authorization_consumer.

Examples: ldap_authorization_drupal_role


"Authorization ID" aka "Consumer ID"

The id of an individual authorization such as a drupal role or organic group.

Examples: "authenticated user", "admin" (for drupal roles)
Examples: "knitters on skates", "vacationing programmers" (og group names for organic groups)


"Consumer Configuration"

Configuration of how a users ldap attributes will
determine a set of Consumer ids the user should be granted.
Represented by LdapAuthorizationConsumerConf and LdapAuthorizationConsumerConfAdmin classes
and managed at /admin/config/people/ldap/authorization. Stored in ldap_authorization database table.


LDAP Server Configuration

Each Consumer Configuration will use a single ldap server configuration to bind
and query ldap. The ldap server configuration is also used to map the drupal
username to an ldap user entry.


LDAP Authorization data storage:

Authorization data is stored in user->data array

such as:

$user->data = array(
'ldap_authorizations' => array(
'og_group' => array (
'3-2' => array (
'date_granted' => 1329105152,
),
'2-3' => array (
'date_granted' => 1329105152,
),
),
'drupal_role' => array (
'7' => array (
'date_granted' => 1329105152,
),
'5' => array (
'date_granted' => 1329105152,
),
),
);

Also available in: Atom