Skip to Content.
Sympa Menu

en - RE: [sympa-users] Bad filter creating list with 2 level ldap datasource

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Steve Shipway <address@concealed>
  • To: "address@concealed" <address@concealed>, "address@concealed" <address@concealed>
  • Subject: RE: [sympa-users] Bad filter creating list with 2 level ldap datasource
  • Date: Wed, 21 Oct 2015 20:13:26 +0000

> suffix1 ou=groups,dc=ufu,dc=br
> filter1 (&(address@concealed) (objectClass=ufuMailDistributionList))
> attrs1 filtermember
> suffix2 dc=ufu,dc=br
> filter2 [attrs1]

Here's your problem, in filter2. This is not a valid filter syntax; an LDAP
filter needs to be surrounded in parenthesis and have fieldname=value in it.
The [attrs1] symbol is replaced by the value of filtermember from the first
stage lookup.

If filtermember is a DN, then you should be using something like:

suffix2 [attrs1]
filter2 (objectClass=*)

This uses suffix2 to select only the required DN, and a dummy filter.
However if filtermember is just a CN, then something like:

suffix2 dc=ufu,dc=br
filter2 (&(objectClass=person)(cn=[attrs1]))

This will search for a CN equal to filtermember, of the appropriate object
type, under the suffix2 container.

Steve

Steve Shipway
T: +64 9 3737 599 ext 86487
E: address@concealed


Attachment: smime.p7s
Description: S/MIME cryptographic signature




Archive powered by MHonArc 2.6.19+.

Top of Page