I am new to OpenLDAP. I would like to know the method to restrict some user from searching part of the LDAP database.
For example, I have ldap root dn <dc=abc,dc=com>
There are other groups like below:
ou=department1,dc=abc,dc=com
ou=department2,dc=abc,dc=com
ou=people,dc=abc,dc=com
cn=userA,ou=people,dc=abc,dc=com
cn=userB,ou=people,dc=abc,dc=com
I would like to allow userA to only able to search data from dn:
ou=department1,dc=abc,dc=com
But restrict it from searching from dn: ou=department2,dc=abc,dc=com
How could I implement that?