Subject: The mailing list for listmasters using Sympa
List archive
- From: Steve Shipway <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-users] create list by script sympa.pl
- Date: Wed, 27 Nov 2019 09:14:53 +1300
On Tue, 2019-11-26 at 17:34 +0100, Therese RODRIGUEZ wrote:
Hello , i would like to create sympa list attach to a group in ldap by script . for exemple listname toto group groups=cn=toto,ou=groups,dc=xx,dc=fr does someone has already do that ? If yes what is the syntax of the data.xml that we need to provide as input file Regards, Therese
Yes, this is possible, I have previously done this successfully. The way to do it depends on how your groups are defined - you need to use the 2level LDAP for Active Directory but OpenLDAP can usually manage with the single level.
There is helpful documentation here: https://sympa-community.github.io/manual/customize/data-sources.html
For Active Directory groups, use something like this:
include_ldap_2level_query
name ad_group_XXXXXX
host ldap.company.com
port 3269
user username
passwd XXXXXXXXX
use_tls yes
ssl_version tlsv1
suffix1 DC=company,DC=com
filter1 (&(cn=XXXXXX)(objectClass=group))
attrs1 member
select1 all
timeout1 60
scope1 sub
suffix2 [attrs1]
filter2 (objectClass=person)
attrs2 mail
select2 first
scope2 base
timeout2 10
For OpenLDAP, you may be able to simplify to using something like this,
depending on your structure:
include_ldap_query
name openldap_group_XXXXXX
host ldap.company.com
port 389
bind_dn cn=XXXXXX,o=company
passwd XXXXXXXXX
use_tls yes
ssl_version tlsv1
suffix ou=users,o=company
filter1 (&(memberOf=XXXXXX)(objectClass=posixaccount))
attrs mail
select all
timeout 60
scope sub
--
Steve Shipway | Senior Email Systems Administrator
Phone: +64 9 302 0515 Fax: +64 9 302 0518
Freephone: 0800 SMX SMX (769 769)
SMX Limited: Level 10, 19 Victoria Street West, Auckland, New Zealand
Web: http://smxemail.com
Steve Shipway | Senior Email Systems Administrator
Phone: +64 9 302 0515 Fax: +64 9 302 0518
Freephone: 0800 SMX SMX (769 769)
SMX Limited: Level 10, 19 Victoria Street West, Auckland, New Zealand
Web: http://smxemail.com
-
[sympa-users] create list by script sympa.pl,
Therese RODRIGUEZ, 11/26/2019
- Re: [sympa-users] create list by script sympa.pl, Steve Shipway, 11/26/2019
Archive powered by MHonArc 2.6.19+.