1 |
85ad3d82
|
Assos Assos
|
|
2 |
|
|
LDAP Authorization Organic Groups:
|
3 |
|
|
|
4 |
|
|
----------------------
|
5 |
|
|
LDAP Authorization OG Storage:
|
6 |
|
|
----------------------
|
7 |
|
|
OG authorizations are stored in form gid-rid from the tables og (og.gid) and og_roles (og_roles.rid). E.G. 1-2, 2-3, 3-4. OG in Drupal 7 does not use machine names so numeric ids are the only way to store such identifiers.
|
8 |
|
|
|
9 |
|
|
such as:
|
10 |
|
|
|
11 |
|
|
$user->data = array(
|
12 |
|
|
'ldap_authorizations' => array(
|
13 |
|
|
'og_group' => array (
|
14 |
|
|
'3-2' => array (
|
15 |
|
|
'date_granted' => 1329105152,
|
16 |
|
|
),
|
17 |
|
|
'2-3' => array (
|
18 |
|
|
'date_granted' => 1329105152,
|
19 |
|
|
),
|
20 |
|
|
),
|
21 |
|
|
'drupal_role' => array (
|
22 |
|
|
'7' => array (
|
23 |
|
|
'date_granted' => 1329105152,
|
24 |
|
|
),
|
25 |
|
|
'5' => array (
|
26 |
|
|
'date_granted' => 1329105152,
|
27 |
|
|
),
|
28 |
|
|
),
|
29 |
|
|
); |