Hi for all,
We have an application that search an attribute named 'manager', however in our OpenLDAP this attribute is called 'DomainGestor'.
Is it possible to create something like an alias or mapping. So, when the application is called the attribute 'manager' the ldap return the value of 'DomainGestor'
DomainGestor uid=userX,cn=u,cn=users,dc=mydomain,dc=com
Regards Christian
Christian Balz wrote:
Is it possible to create something like an alias or mapping. So, when the application is called the attribute 'manager' the ldap return the value of 'DomainGestor'
DomainGestor uid=userX,cn=u,cn=users,dc=mydomain,dc=com
You could check if overlay slapo-rwm meets your needs.
http://www.openldap.org/software/man.cgi?query=slapo-rwm
Ciao, Michael.
Hi Michael,
Thank you for your feedback.
This solution works fine for me, however I need to keep the attribute DomainGestor as well.
Any suggestion about this?
... overlay rwm map attribute manager domaingestor
... ldapsearch -x -LLL -h localhost -b cn=users,dc=domain,dc=com,dc=br uid=thiago_neves domaingestor manager dn: uid=thiago_neves,cn=t,cn=users,dc=domain,dc=com,dc=br manager: uid=paula_bronfman,cn=p,cn=users,dc=domain,dc=com,dc=br
Regards ~Christian
On Sep 30, 2015, at 05:28, Michael Ströder michael@stroeder.com wrote:
Christian Balz wrote:
Is it possible to create something like an alias or mapping. So, when the application is called the attribute 'manager' the ldap return the value of 'DomainGestor'
DomainGestor uid=userX,cn=u,cn=users,dc=mydomain,dc=com
You could check if overlay slapo-rwm meets your needs.
http://www.openldap.org/software/man.cgi?query=slapo-rwm
Ciao, Michael.
Le 30/09/2015 23:12, Christian Balz a écrit :
Hi Michael,
Thank you for your feedback.
This solution works fine for me, however I need to keep the attribute DomainGestor as well.
Any suggestion about this?
... overlay rwm map attribute manager domaingestor
... ldapsearch -x -LLL -h localhost -b cn=users,dc=domain,dc=com,dc=br uid=thiago_neves domaingestor manager dn: uid=thiago_neves,cn=t,cn=users,dc=domain,dc=com,dc=br manager: uid=paula_bronfman,cn=p,cn=users,dc=domain,dc=com,dc=br
If you want to keep both attributes in the entry, I think the best way is to use an external script that will synchronize the values between the two attributes. You can do this on the fly, for example with LSC (http://www.lsc-project.org).
openldap-technical@openldap.org