> ou=users
> uid=<someuserid>
> uid=<someotheruserid>
-> ou=addressbooks
+> ou=addressbook
> uid=<someuserid>
> cn=<someone>
> cn=<someoneelse>
> ou=users
> uid=<someuserid>
> uid=<someotheruserid>
-> ou=addressbooks
+> ou=addressbook
> uid=<someotheruserid>
> cn=<someone>
> cn=<someoneelse>
to allow exactly one sublevel matches only.
Always use {{^}} and {{$}} in regexes, whenever appropriate, because
-{{ou=(.+),ou=(.+),ou=addressbooks,o=basedn}} will match
-{{something=bla,ou=xxx,ou=yyy,ou=addressbooks,o=basedn,ou=addressbooks,o=basedn,dc=some,dc=org}}
+{{ou=(.+),ou=(.+),ou=addressbook,o=basedn}} will match
+{{something=bla,ou=xxx,ou=yyy,ou=addressbook,o=basedn,ou=addressbook,o=basedn,dc=some,dc=org}}
Always use {{([^,]+)}} to indicate exactly one RDN, because {{(.+)}} can
include any number of RDNs; e.g. {{ou=(.+),dc=example,dc=com}} will match