Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to match user to subgroup in AD #88

Open
juvancica opened this issue Mar 7, 2020 · 2 comments
Open

How to match user to subgroup in AD #88

juvancica opened this issue Mar 7, 2020 · 2 comments

Comments

@juvancica
Copy link

juvancica commented Mar 7, 2020

Hello,

I'm trying to connect TYPO3 LDAP to AD 2019. I have an tree of OUs, mimicking our organization. So, at the top is head OU, followed by department OUs and so on. Users are in all OUs.

I can import all FE_USERS users from AD using (&(objectClass=Person)(sAMAccountName={USERNAME})). Mapping is:

pid = 196
tstamp = {DATE}
email = <mail>
name = <cn>
first_name = <givenName>
last_name = <sn>
title = <title>
company = <company>
address = <streetAddress>
zip = <postalCode>
city = <l>
country = <countryCode>
telephone = <telephoneNumber>

I can also import all FE_GROUPS using (objectClass=organizationalUnit) and mapping

pid=196
tstamp={DATE}
title = <name>

But after I login with any user, I see the content for ALL groups. As if user is in ALL groups.

I can create new AD GROUPS in OUs and I see the users in these groups with memberOf option. But there is no memberOf option on OUs.

How can I map users to OUs? In a way, that user from bottom OU will see only his content, while user in top OUs would see the content from their OUs and all sub OUs...

Thank you,

Aleš

@einhirn
Copy link

einhirn commented Nov 15, 2023

I don't think that this will work. As you said, OUs don't have a "memberof" attribute. Maybe you can split AD/LDAP DN and fiddle something with a script based mapping, but thinking about that makes me cringe.
From what I understand, you'd need a group/subgroup structure in AD, but then you'd have to somehow list/map the nested AD groups a FE_USER is member of. There's a way to delegate the Check "Is user in group or any subgroup" to AD, but that would only work on the fly, not while importing, I guess.

@xperseguers
Copy link
Owner

It's unclear by reading how the members are associated to their groups in your AD 2019. You should possibly play with this option in the settings, or with the memberof attribute:

image

I'm unsure as well by reading if there is no real relation and it is somehow "implicit" based on the OU they are.

Please comment or this (very old) ticket will be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants