I'm trying to use this module in conjunction with CAS. I've got the CAS part working and have this module configured. It's successfully passing the test to bind to the LDAP server. However, it's not automatically pulling in the LDAP groups as Drupal roles. Any suggestions on how to debug this?

Comments

johnbarclay’s picture

The bad news is authorization is broken in unstable 6. When its working again, we'll issue unstable 7. The good news is you are the use case that ldap authorization was rewritten for: ldap authorization without ldap authentication so you'll get extra special support when its ready. You might try unstable 5 just to see if it works for you, but your best bet is to wait a bit. I'll ping you when its working in head.

wernercd’s picture

Good to know Authorization is broken. Was testing right and not creating.

Is this the same issue that's causing this error?

Notice: Undefined variable: ldap_entry in _ldap_authorizations_user_authorizations() (line 189 of /var/www/sites/all/modules/ldap/ldap_authorization/ldap_authorization.inc).
Notice: Undefined variable: ldap_entry in _ldap_authorizations_user_authorizations() (line 189 of /var/www/sites/all/modules/ldap/ldap_authorization/ldap_authorization.inc).

Fresh-Updated install of Drupal 7, Unstable 6 ontop of Ubuntu Server 10.10. That error appears when Authorization is enabled so I assume it's related.

helmo’s picture

subscribe

johnbarclay’s picture

Status: Active » Needs review

Can you try this against 7.x-1.x-dev that. I committed the ldap authorization fixes and some simpletests.

helmo’s picture

A short test showed me that a role was now created, and no further error messages were shown.

Thanks

johnbarclay’s picture

Title: Won't automatically create roles » LDAP Authorization: Won't automatically create roles
Version: 7.x-1.0-unstable6 » 7.x-1.x-dev
Assigned: Unassigned » johnbarclay
Status: Needs review » Fixed

I confirmed this also with simpletests in ldap authorization.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.