D
D
Dmitry Aitkulov2015-10-21 15:12:03
linux
Dmitry Aitkulov, 2015-10-21 15:12:03

What is the correct way to write a regular expression in OpenLdap?

Good afternoon! Setting up ACLs in Openldap. Each server + organizations attached to it are in their own dc. Actually it turns out such a structure:
ou=название организации,dc=город,dc=домен,dc=ру
I did not invent it. I just perform. The senior approved to create his own admin for each dc, then for each ou also his own admin. Accordingly, the problem is accessing the "userPassword" attribute. Actually I want to create a regular expression that will give access to all admins to this attribute. The problem is that I'll go over the syntax of these regular expressions. Ideally I want to get something like this:

olcAccess: {0}to attrs=userPassword
  by dn="uid=admin(_Рога и копыта ТОО у каждой организации своя концовка)(далее какое то регулярное выражение которое допишет имя uid и подставит все необходимые ou и dc)"

this is what a crazy idea looks like. I will be grateful to everyone who will respond

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
chupasaurus, 2015-10-21
@Scarfase1989

It's easier to create groupOfNames and not suffer with regular expressions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question