https://bugs.openldap.org/show_bug.cgi?id=9802
--- Comment #4 from manuel.flury@gmail.com --- Hi,
I used a replace not delete then add:
dn: olcMetaSub={0}uri,olcDatabase={1}meta,cn=config changetype: modify replace: olcDbRewrite olcDbRewrite: {0}rewriteEngine "on" olcDbRewrite: {1}rewriteContext "searchDN" olcDbRewrite: {2}rewriteRule "OU=People,[ ]?DC=my,[ ]?DC=example,[ ]?DC=com " "${**target}" ":" olcDbRewrite: {3}rewriteContext SearchFilter olcDbRewrite: {4}rewriteRule "^(.+uid=[^,]+)@domain.one.com(,.*)$" "${&&target("ou=people,dc=domain,dc=one,dc=com")}$1$2" ":" olcDbRewrite: {5}rewriteRule "^(.+uid=[^,]+)@domain.two.com(,.*)$" "${&&target("ou=mynetworkpeople,o=my.example.com")}$1$2" ":" -
B.R.
Manuel FLURY