03.07.2012 22:06, Quanah Gibson-Mount пишет:
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=nisMailA lias) ldap:///ou=aliases,dc=example.ru,ou=mail,o=foo?cn?sub?(objectClass=nisMai lAlias)
You should make those separate unique_uri lines, as per the man page.
Separate unique_uri lines will create separate unique domains, but I need unique cn across 2 different URLs.
from man page:
unique_uri <[strict ][ignore ]URI[URI...]...> Configure the base, attributes, scope, and filter for uniqueness checking. Multiple URIs may be specified within a domain, allowing complex selections of objects.
I tried to write in slapd.conf 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)"
But slapd eats 100% CPU right after start with this line...
Debug log show: 4ff3424b >>> dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo> 4ff3424b <<< dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo>, <ou=aliases,dc=example.ru,ou=mail,o=foo> put_filter: "(objectClass=nisMailAlias)" put_filter: simple put_simple_filter: "objectClass=nisMailAlias" ber_scanf fmt ({mm}) ber: 4ff3424b >>> dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo> 4ff3424b <<< dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo>, <ou=aliases,dc=example.ru,ou=mail,o=foo> put_filter: "(objectClass=nisMailAlias)" put_filter: simple put_simple_filter: "objectClass=nisMailAlias" ber_scanf fmt ({mm}) ber: 4ff3424b >>> dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo> 4ff3424b <<< dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo>, <ou=aliases,dc=example.ru,ou=mail,o=foo> put_filter: "(objectClass=nisMailAlias)" put_filter: simple put_simple_filter: "objectClass=nisMailAlias" ber_scanf fmt ({mm}) ber: 4ff3424b >>> dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo> 4ff3424b <<< dnPrettyNormal: <ou=aliases,dc=example.ru,ou=mail,o=foo>, <ou=aliases,dc=example.ru,ou=mail,o=foo> put_filter: "(objectClass=nisMailAlias)" put_filter: simple
in infinite loop.