OG 2
ldap checked out from git version 1.x

On login, it seems to find the correct role and group
testuser : filtered authorization for og_group: node:13:2.

However
then
on call of grantsAndRevokes: user_auth_data=Array ( )
followed by
LdapAuthorizationConsumerAbstract grantsAndRevokes() method log. action=grant:
%consumer_ids_log
then
testuser : user_authorizations_set results for og_group:
1. Initial existing authorizations:
1. Filtered Authorizations: node:13:2
2. After filtering off previously granted authorizations: node:13:2
3. All available existing authorization ids: none
4. authorization ids that need to be created: node:13:2
5. consumer containers existing after create call (or non-call if og):
6a. consumer_containers_existing: none
6b. grants_pre_intersect: none 6c. grants_post_intersect: none
7. revokes passed to authorizationRevoke(): none
8. user auth data after save for og_group: Array ( )
9. user->data[ldap_authorizations] after save:

Array
(
    [ldap_authorizations] => Array
        (
            [og_group] => Array
                (
                )

        )

)

As you can see it finds the group to grant access to, but it does not grant the membership. Let me know if I can provide more information

Comments

johnbarclay’s picture

Does the group node:13:2 exist? From the debug message it looks like the group doesn't exist yet. Ldap auth og won't create groups. So the bug is either that the group node:13:2 isn't being found; or the "non-bug" is that the group needs to exist.

I'm travelling now, but if this is a bug, the function og2Groups() in ldap_authorization/ldap_authorization_og/LdapAuthorizationConsumerOG.class.php is likely the problem.

When this bug is fixed, or the group is created, the debug line should read:
3. All available existing authorization ids: some type of list with node:13:2 in it.

johnbarclay’s picture

Status: Active » Postponed (maintainer needs more info)

This may have been fixed by some recent ldap authorization og2 fixes. try 7.x-1.x-dev.

johnbarclay’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)