Full_Name: Mathieu MILLET Version: 2.4.13 OS: Linux Fedora 10 URL: Submission from: (NULL) (81.80.3.6)
When configuring the slapo-rwm overlay inside a relay database, using cn=config style, it is impossible to load (online or offline) the attribute olcRwmRewrite.
The error message is : htam@p10891008 ldif]$ ldapadd -h localhost -x -D "cn=config" -w secret -f config_relay_database.ldif adding new entry "olcOverlay={0}rwm,olcDatabase={3}relay,cn=config" ldap_add: Other (e.g., implementation specific) error (80) additional info: <olcRwmRewrite> handler exited with 1
config_relay_database.ldif : dn: olcOverlay={0}rwm,olcDatabase={3}relay,cn=config objectClass: olcOverlayConfig objectClass: olcRwmConfig olcOverlay: {0}rwm olcRwmNormalizeMapped: FALSE olcRwmRewrite: {0} rwm-rewriteEngine "on" olcRwmRewrite: {1} rwm-rewriteContext "default" olcRwmRewrite: {2} rwm-rewriteRule "cn=(.+),ou=ilo,dc=domain-ilo,dc=net$" "uid=$1,ou=people,dc=domain,dc=net" ":" olcRwmRewrite: {3} rwm-rewriteContext "searchEntryDN" olcRwmRewrite: {4} rwm-rewriteRule "uid=(.+),ou=people,dc=domain,dc=net$" "cn=$1,ou=ilo,dc=domain-ilo,dc=net" ":" olcRwmRewrite: {5} rwm-rewriteRule ".+,ou=groups,dc=domain,dc=net$" "$0" ":@" olcRwmRewrite: {6} rwm-rewriteContext "searchAttrDN" "alias" "searchEntryDN" olcRwmRewrite: {7} rwm-rewriteContext "matchedDN" "alias" "searchEntryDN" olcRwmTFSupport: no ------------------------------ dn: olcDatabase={3}relay objectClass: olcDatabaseConfig objectClass: olcRelayConfig olcDatabase: {3}relay olcSuffix: ou=ilo,dc=domain-ilo,dc=net olcLastMod: TRUE olcMaxDerefDepth: 15 olcReadOnly: FALSE olcMonitoring: FALSE olcRelay: dc=domain,dc=net structuralObjectClass: olcRelayConfig
I get the same result and error, if I manually put this file in the slapd.d sub-directory.
I also get the same result and error, if I ldapadd the objet without the olcRwmRewrite attribute and then ldapmodify to add this attribute (even a single line like <<rwm-rewriteEngine "on">> or <<rwm-rewriteContext "default">>).