Closed (duplicate)
Project:
Lightweight Directory Access Protocol
Version:
7.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
22 Oct 2011 at 14:59 UTC
Updated:
16 Mar 2012 at 05:55 UTC
Either the ldap authorization option "II.C. Derive drupal roles from entry" is broken or just the simpletests are. 2 tests fail which are all that exist for II.C.
Is this option working for anyone?
Comments
Comment #1
bratell commentedI've been trying to get that option to work for a while now, to no avail. I would also suggest it's broken.
Comment #2
johnbarclay commentedcan you give a sense of how you are using it? I still don't get the use case for this option. Maybe some sample ldap entries and config.
Comment #3
bratell commentedActually, I got it to work... nevertheless. This is what I do and why.
I work at a Swedish university and we're giving a course in which the students are to have a brief demonstration of Drupal and also to login and make some simple exercises.
LDAP would be the obvious choise to give everyone access and also roles.
I have set up two groups in my NDS; cn=DrupalStudents,o=hb and cn=DrupalTeachers,o=hb. The members of the groups are from all over the tree. Depending on which group they belong to they get either the Student or Teacher role in Drupal. So a simplified example of config would look something like this:
My problem was with the mapping part where I involved DN again.
Comment #4
johnbarclay commentedI found the problem with this. It was some quotes in the simpletests that weren't removed. This fixed the simpletests. I also added some of bratell example to the form directions.
Comment #6
johnbarclay commentedmaking all LDAP Authorization: II.C. issues active until this is reworked.
Comment #7
hyrod commentedI have problem to.
Without
all good work.
I use 389 directory server and openLDAP profile.
Comment #8
johnbarclay commented