[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Constraint violation when swapping two unique attributes



On 2016-12-19 16:20, Bannister, Mark wrote:
Howard Chu wrote:
Bannister, Mark wrote:
> I’m using the unique overlay on OpenLDAP 2.4.30 on Solaris 11.3 like this:
> overlay unique [..]
> 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:

That's two separate modify operations, not a single operation.

Well it's the only way I know to swap the macAddress with a single
ldapmodify command.

..but two operations like Howard said.

Seems unlikely. Why don't you rename the entries instead?

Yes I suppose that's the only way to do this.  Thanks for the
suggestion.  The LDIF has been automatically generated by the
ldifdiff.pl script, I'll approach the author to see if it’s a change
that could be made easily.

These scripts are not really useful because they simply look at entries one by one.
You should write you own custom script for such a use-case.

Ciao, Michael.