Hello,
I want to map Users in an OU to Drupal Groups, for example:
ou=Users,ou=HQ,ou=Sales,dc=sma,dc=local => SalesHQ
ou=Users,ou=EXT,ou=Sales,dc=sma,dc=local => SalesEXT

Config:
1)Group by DN: none
2)Group by Attributes: none
3)Sort by Entry: none
4)LDAP Group to Drupal role limits: none

4)LDAP Group to Drupal role filtering:

Mapping of LDAP groups to Drupal roles:


ou=Users,ou=HQ,ou=Sales,dc=sma,dc=local|SalesHQ
ou=Users,ou=EXT,ou=Sales,dc=sma,dc=local|SalesEXT

Use LDAP group to Drupal roles filtering: checked

PHP to filter roles by: none

Thanks in advance!

Comments

Anonymous’s picture

and I have to mention that i'm using multiple Base DN's in LDAP Authentification Configuration.

Thanks.

verta’s picture

I think you need to have either 1, 2, or 3 in your list set to some method of determining group membership.

The way I understand it, the next 2 depend on one of the first 3 obtaining a list of groups.

It's usually either 1 or 3 (we use #3). Have a look at your users and groups using your LDAP directory browsing tool. If your users have the groups built into their DN, it's #1. If your groups have a members attribute populated with the users, it's #3.

torgospizza’s picture

I think the issue is one I'm facing as well. We're not using actual Active Directory groups - but we do have several OU attributes that should translate to OG nodes (OG Groups). All of the LDAP Integration modules - including og_ldap - assume that you're using LDAP Groups. I'm working on a fix for this, I hope.

johnbarclay’s picture

The first part is correct:
ou

will yield a result such as:
Sales

The mapping/filter part should read:

Sales|Sales

to turn this into SalesHQ and avoid creating extra groups

I don't believe there is a way to splice and concatenate to get HQSales etc. in option 1 or 2. Not sure about the 3rd.

torgospizza’s picture

I think in the OP's case they could probably do it with some PHP once the tags / attributes / etc. have been grabbed from LDAP. My first step is to allow non-LDAP Groups (let's call them "pseudogroups") to be mapped to OG nodes (Groups). I may make a new issue for it, though, since it's not exactly the same as what OP was trying to do.

cgmonroe’s picture

Status: Active » Closed (fixed)

Clearing out old support requests - reopen if problem still exists in newest code (dev)