Subject: The mailing list for listmasters using Sympa
List archive
- From: "christopher pax" <address@concealed>
- To: "Serge Aumont" <address@concealed>
- Cc: address@concealed
- Subject: Re: [sympa-users] programmatcly adminster lists
- Date: Mon, 20 Oct 2008 11:17:46 -0400
thanks for your help. This is what I tryed to do:
i made a directory /home/sympa/bin/etc/families/my_family
I placed this at the bottom of config.tt2:
[% IF ldap %]
include_ldap_query
attrs [% ldap.attrs %]
filter [% ldap.filter %]
name [% ldap.name %]
port [% ldap.port %]
host [% ldap.domain %]
passwd [% ldap.password %]
suffix [% ldap.suffix %]
timeout 30
user [% ldap.base %]
scope [% ldap.scope %]
select all
[% END %]
and attempted to create a list via this family with this xml, createListWithFamily.xml:
<?xml version="1.0" ?>
<family>
<list>
<listname>liste1</listname>
<subject>a list example</subject>
<description/>
<status>open</status>
<language>us</language>
<owner>
<email>address@concealed</email>
</owner>
<ldap>
<attrs>mail</attrs>
<filter>((uid=valid))</filter>
<name>ldap</name>
<port>389</port>
<host>ldapserver.aschool.edu</host>
<passwd></passwd>
<base></base>
<scope>sub</scope>
<select>all</select>
</ldap>
</list>
</family>
Then I ran this command:
i made a directory /home/sympa/bin/etc/families/my_family
I placed this at the bottom of config.tt2:
[% IF ldap %]
include_ldap_query
attrs [% ldap.attrs %]
filter [% ldap.filter %]
name [% ldap.name %]
port [% ldap.port %]
host [% ldap.domain %]
passwd [% ldap.password %]
suffix [% ldap.suffix %]
timeout 30
user [% ldap.base %]
scope [% ldap.scope %]
select all
[% END %]
and attempted to create a list via this family with this xml, createListWithFamily.xml:
<?xml version="1.0" ?>
<family>
<list>
<listname>liste1</listname>
<subject>a list example</subject>
<description/>
<status>open</status>
<language>us</language>
<owner>
<email>address@concealed</email>
</owner>
<ldap>
<attrs>mail</attrs>
<filter>((uid=valid))</filter>
<name>ldap</name>
<port>389</port>
<host>ldapserver.aschool.edu</host>
<passwd></passwd>
<base></base>
<scope>sub</scope>
<select>all</select>
</ldap>
</list>
</family>
Then I ran this command:
sympa.pl --instantiate_family my_family --robot mailtest.aschoool.edu --input_file /path/to/createListWithFamily.xmlwhich creates a list, but ignores all the ldap stuff. What can I do to get this to work?
On Tue, Oct 14, 2008 at 2:14 AM, Serge Aumont <address@concealed> wrote:
Chris Pax wrote:No, the last change date of the file is tested so if you modify it it will be reloaded.
I have been able to get the SOAP to work, but its functionality is limited.
With SOAP I can create list, and add users. But what I also want to do
is set-up LDAP inclusion and who is owner, editor and moderator.
My plan is to create a config template which I can use to overwrite the config
for a newly created list (a list created via SOAP), in which I change certain
variables like LDAP query's and list owner.
my questions are,
after I have edited the config file, is there anything else I need to do so
that sympa recognizes it?
We have received several feature request about list configuration using soap interface. I think the best way to do it may be to create 2 newq features :
is there a better way to edit the config file of a list?
This is the state I would like to get to, I want to make a function that looks
like this:
create_list( list_name, list_description, LDAP inclusion query, owners,
editors, moderators);
where LDAP inclusion query, owners, editors, moderators, are all ldap search
query's.
the function call would look like this:
create_list("list_name", "list description", "(type=Student)", "(type=admin)",
"(type=editors)","(type=moderators)");
and subsidiary functions like this:
set_owner("list_name", "(type=admin)");
if any of you have good suggestions to do all of this, any suggestion are
welcomed.
-list family : we may create a new family operation that could instantiate a family without removing any list. This operation would only create new list or update existing one.
-soap interface may be used in order to instantiate a family using this new non destructive method.
I think this way would provide exacly your needs.
Regards
Serge
Hop this help.
Serge Aumont
-
[sympa-users] programmatcly adminster lists,
Chris Pax, 10/13/2008
-
Re: [sympa-users] programmatcly adminster lists,
Serge Aumont, 10/14/2008
- Re: [sympa-users] programmatcly adminster lists, christopher pax, 10/20/2008
-
Re: [sympa-users] programmatcly adminster lists,
Serge Aumont, 10/14/2008
Archive powered by MHonArc 2.6.19+.