Subject: The mailing list for listmasters using Sympa
List archive
- From: Tornóci László <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] include_ldap_query
- Date: Wed, 04 Sep 2013 08:47:24 +0200
On 09/03/2013 11:29 PM, Rance Hall wrote:
On 09/03/2013 12:53 PM, Tornóci László wrote:
On 09/03/2013 06:11 PM, Rance Hall wrote:
Hi,
I have a sympa list that has its subscriber base generated from an ldap
query.
The dialog in sympa that lets me set up the details seems to work as far
as it goes.
I would like to have this ldap query return both the users NAME from
ldap *and* the EMAIL address where it now only returns email.
We now have a need to use a template to send out email that includes the
users name and their email.
I'm confused at the sympa interface for this because I would need to map
our ldap field names to names sympa would like.
I looked at include_ldap_2level_query but this looks to be not what I
want. It looks to be two separate ldap queries when one ldap query can
provide multiple fields in its reply.
Anybody have any ideas about how to do this correctly?
Rance
as far as I know, the current version (6.1.17) doesn't support what you
want. However, there are some patches that you can use to do that. I use
the include_ldap_2level_query successfully to provide me with names as
well. I have attached the patch against List.pm 6.1.17 (hopefully the
attachment gets through).
Yours: Laszlo
I tried your patch, and I don't think it works correctly. I entered the
data into include_ldap_2level_query and the web interface says I haven't
edited anything, and won't save my changes.
Rance
You may have to edit the list config by hand, although I was able to use the web config, if I remember correctly. Here is the relevant part of a list config, that works just fine here with the patch I sent:
include_ldap_2level_query
select2 all
scope2 base
suffix2 [attrs1]
suffix1 ou=Groups,dc=your-domain,dc=com
attrs1 uniquemember
user cn=your ldap proxy user
select1 all
filter2 (objectClass=person)
timeout1 30
ssl_ciphers ALL
name your_sympa_data_source_name
attrs2 mail,displayName
scope1 one
host your.ldap.host
use_ssl no
passwd your_proxy_user_pwd_
filter1 (&(objectClass=groupOfUniqueNames) (cn=Your-ldap-group-name))
timeout2 30
ssl_version sslv2
The idea is, that you have a group (cn=Your-ldap-group-name,ou=Groups,dc=your-domain,dc=com) that contains the dn-s of the members (uniquemember attr), so the first query gives you a list of dn-s. The second query looks for those users, and returns what you define in attrs2: mail,displayname
If I remember correctly you shouldn't use a space in the web config for attrs2, i.e: mail,displayName and NOT mail, displayName
Yours; Laszlo
-
[sympa-users] include_ldap_query,
Rance Hall, 09/03/2013
-
Re: [sympa-users] include_ldap_query,
Tornóci László, 09/03/2013
-
Re: [sympa-users] include_ldap_query,
Rance Hall, 09/03/2013
- Re: [sympa-users] include_ldap_query, Tornóci László, 09/04/2013
-
Re: [sympa-users] include_ldap_query,
Rance Hall, 09/03/2013
-
Re: [sympa-users] include_ldap_query,
Tornóci László, 09/03/2013
Archive powered by MHonArc 2.6.19+.