Now I created two files:
1. ldif ------------ dn: olcOverlay={2}variant,olcDatabase={2}mdb,cn=config objectClass: olcVariantConfig olcVariantPassReplication: TRUE
dn: name=global-addr,olcOverlay={2}variant,olcDatabase={2}mdb,cn=config objectClass: olcVariantVariant olcVariantEntry: dc=example,dc=net
dn: olcVariantVariantAttribute=postaladdress,name={0}global-addr,olcOverlay={2}variant,olcDatabase={2}mdb,cn=config objectClass: olcVariantAttribute olcVariantVariantAttribute: postaladdress olcVariantAlternativeAttribute: postaladdress olcVariantAlternativeEntry: ou=firma,dc=example,dc=net
dn: name=company-phone,name={0}global-addr,olcOverlay={2}variant,olcDatabase={2}mdb,cn=config objectClass: olcVariantAttribute olcVariantVariantAttribute: telephonenumber olcVariantAlternativeAttribute: mobile olcVariantAlternativeEntry: cn=verw-al,ou=users,ou=verwaltung,ou=firma,dc=example,dc=net ------------
Working
2. ldif ----------- dn: name={1}verw-tel,olcOverlay={2}variant,olcDatabase={2}mdb,cn=config objectClass: olcVariantRegex olcVariantEntryRegex: cn=(.+),ou=users,ou=verwaltung,ou=firma,dc=example,dc=net
dn: olcVariantVariantAttribute=telephonNumber,name={1}verw-tel,olcOverlay={2}variant,olcDatabase={2}mdb,cn=config objectClass: olcVariantAttributePattern olcVariantVariantAttribute: telephoneNumber olcVariantAlternativeAttribute: telephoneNumber olcVariantAlternativeEntryPattern: ou=Verwaltung,ou=firma,dc=example,dc=net -----------
ldapadd is not crashing slapd anymore, but I got this message: ------------ adding new entry "olcVariantVariantAttribute=telephonNumber,name={1}verw-tel,olcOverlay={2}variant,olcDatabase={2}mdb,cn=config" ldap_add: Naming violation (64) additional info: value of single-valued naming attribute 'olcVariantVariantAttribute' conflicts with value present in entry ------------
So still not working.
Both olcVariantVariantAttribute uses different attributes.
so what is wrong?
Am 06.05.23 um 10:10 schrieb Stefan Kania:
Ok, I will do it. I already file a bug about the manpage of variant.
But you did not answer my question đ. Is the ldif for variant with regex ok or is there something wrong? I don't understand the explanation in the manpage đ
Am 05.05.23 um 21:15 schrieb Quanah Gibson-Mount:
--On Friday, May 5, 2023 9:36 PM +0200 Stefan Kania stefan@kania-online.de wrote:
And as you can see, adding the entry crashes the slapd.
If you crash slapd, you need to file a bug. :)
--Quanah