raphael.ouazana@linagora.com wrote:
Full_Name: Raphael Ouazana Version: 2.4.26 OS: Linux URL: ftp://ftp.openldap.org/incoming/ Submission from: (NULL) (213.41.232.151)
Hi,
I try to modify valuse of eg. olcAccess with a certain order, I get different values if numbered values are in the correct order or not.
Case 1 (normal):
dn: olcDatabase={3}bdb,cn=config changetype: modify replace: olcAccess olcAccess: {0} to * by dn.base=cn=0,dc=example,dc=com write olcAccess: {1} to * by dn.base=cn=1,dc=example,dc=com write olcAccess: {2} to * by dn.base=cn=2,dc=example,dc=com write
Result: olcAccess: {0} to * by dn.base=cn=0,dc=example,dc=com write olcAccess: {1} to * by dn.base=cn=2,dc=example,dc=com write olcAccess: {2} to * by dn.base=cn=1,dc=example,dc=com write
Cannot confirm. I get 0, 1, and 2 in the expected order.
Case 2 (inversed values):
dn: olcDatabase={3}bdb,cn=config changetype: modify replace: olcAccess olcAccess: {2} to * by dn.base=cn=2,dc=example,dc=com write olcAccess: {1} to * by dn.base=cn=1,dc=example,dc=com write olcAccess: {0} to * by dn.base=cn=0,dc=example,dc=com write
Result: olcAccess: {0} to * by dn.base=cn=0,dc=example,dc=com write olcAccess: {1} to * by dn.base=cn=2,dc=example,dc=com write olcAccess: {2} to * by dn.base=cn=1,dc=example,dc=com write
The two last values are incorrectly mixed.
Wrong, this works as designed. See draft-chu-ldap-xordered-xx section 3.3.
Closing this ITS.