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

(ITS#6072) slapo-collect: dnLength != dnDepth



Full_Name: Daniel Pluta
Version: HEAD
OS: Linux
URL: ftp://ftp.openldap.org/incoming/collect.c.patch
Submission from: (NULL) (2001:4ca0:0:f000:78be:f928:4392:2caf)


DNs should be ordered accoring their in-DIT depth and not accoring their
bv_len:

1) "ou=test_ou_long,ou=test,dc=foo,dc=bar"
2) "ou=test,ou=de,ou=test,dc=foo,dc=bar"

DN1' bv_len is higher than that of DN2 but DN2 is deeper located within the
DIT.

I could not find a suitable api-call to determine a DN's depth. So I've used
posix regexp and uploaded that quick&dirty hacked patch right here:
ftp://ftp.openldap.org/incoming/collect.c.patch

Sorry, next time I'll respect the upload naming conventions that I've noticed a
bit to late...