N
N
nekroposter2019-11-22 15:49:36
linux
nekroposter, 2019-11-22 15:49:36

In openLDAP, how do I give a user read access to records with a specific departmentNumber attribute value?

There are several similar users:
[email protected],ou=Workers,dc=grrr,dc=local
objectClass: top
objectClass: person
objectClass: inetOrgPerson
objectClass: organizationalPerson
uid: [email protected]
cn: [email protected] ru
mail: [email protected]
sn: Ivanov Ivan Demyanovich
departmentNumber: 432199
All of them match the first four digits departmentNumber=4321*
One of our sites wants users with a departmentNumber starting with 4321 to be able to log into it via LDAP and the rest are not.
Question: how to do it?
Clarification 1: no, the admin of this site will not do filtering on his side. This needs to be done on the LDAP side.
Clarification 2: in ou=Workers there is no further division into ou-s by department number and it is not advisable to do it - the rest of the infrastructure will go to hell (
Theory: Push all such users into one group with handles .. and then how?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2019-11-22
@ky0

нет, админ этого сайта не будет делать фильтрацию на своей стороне

Well, in vain, what to say. Unwillingness to follow standard procedures is not a reason to make crutches.

T
trushko, 2019-11-23
@trushko

Maybe I misunderstood something, but read about it
Dynamic Access Control -> Claim

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question