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

bug in unique overlay

According to slapo-unique(5) it is possible to specify several URLs in one domain (in single unique_uri dircetive).

I have in my slapd.conf settings like:

unique_uri ldap:///ou=lists,dc=example.ru,ou=mail,o=foo?cn?sub?(objectClass=nisMailAlias)

But in OpenLDAP 2.4.31 all URLs except first one is silently ignored.

Debug logs show:

4ff309e3 line 208 (unique_uri   ldap:///ou=lists,dc=example.ru,ou=mail,o=foo?cn?sub?(objectClass=nisMailAlias)       ldap:///ou=aliases,dc=example.ru,ou=mail,o=foo?cn?sub?(objectClass=nisMailAlias))
4ff309e3 ==> unique_new_domain <ldap:///ou=lists,dc=example.ru,ou=mail,o=foo?cn?sub?(objectClass=nisMailAlias)>
4ff309e3 >>> dnPrettyNormal: <ou=lists,dc=example.ru,ou=mail,o=foo>
4ff309e3 <<< dnPrettyNormal: <ou=lists,dc=example.ru,ou=mail,o=foo>, <ou=lists,dc=example.ru,ou=mail,o=foo>

Prblem is around this code in servers/slapd/overlays/unique.c:

if ( c->line ) rc = unique_new_domain ( &domain, c->line, c );
else rc = unique_new_domain ( &domain, c->argv[1], c );

c->line is empty by some reason.
c->argv[1] contains only first URL.

Is anybody know how to fix this bug?
Is it normal, that c->line is empty?

 Anton Yuzhaninov