Hi,
I’m using the unique overlay on OpenLDAP 2.4.30 on Solaris 11.3 like this:
overlay unique
unique_uri ldap:///ou=Ethers,dc=mydomain,dc=com?macAddress?sub?objectClass=ieee802Device
to force the macAddress to be unique.
This works well, except if I attempt to swap the macAddress between two entries in a single LDAP modify operation, like this:
dn: cn=host1-eth0,ou=Ethers,dc=mydomain,dc=com
changetype: modify
replace: macAddress
macAddress: <current host1-eth1 value>
dn: cn=host1-eth1,ou=Ethers,dc=mydomain,dc=com
changetype: modify
replace: macAddress
macAddress: <current host1-eth0 value>
I get:
ldap_modify: Constraint violation (19)
additional info: some attributes not unique
Is there a way to swap two values without tripping this error?
Thanks,
Mark.