Subject: The mailing list for listmasters using Sympa
List archive
[sympa-users] Sympa command line, Families, I/O error : Permission denied
- From: Yoann Gini <address@concealed>
- To: address@concealed
- Subject: [sympa-users] Sympa command line, Families, I/O error : Permission denied
- Date: Mon, 14 Mar 2016 15:34:06 +0100
Hello,
I’m trying to use sympa families feature to generate mailling list based on an OpenDirectory list of groups (LDAP database provided by OS X Server).
When I run the command line like that:
/usr/lib/sympa/bin/sympa.pl --instantiate_family=opendirectory --robot=liste.acme.com --input_file=/tmp/od_groups.xml
I get this message (two times):
I/O error : Permission denied
I/O error : Permission denied
And I can’t find any reference to this problem via Google or the mailling list archive. Any idea regarding this origin? I’ve looked at the source code and all file access references I’ve seen are properly managed with proper logs. So I don’t understand the source of this message.
Here is more informations about my setup. I’m not a big fan of sending config over mailling list because it’s too much info, but since I’ve absolutely no idea for this problem's origin…
LDAP schema use posixGroup, so the groups know their member and a special field contain nested fields. So I will use a custom script to generate the source XML.
It’s on Debian 7.9 with 6.1.11
The XML file:
<?xml version="1.0" ?>
<family>
<list>
<listname>sqm-resp-dpt</listname>
<subject>Responsables SQM</subject>
<description/>
<status>open</status>
<language>fr</language>
<owner multiple="1">
<email>address@concealed</email>
</owner>
<include_list multiple="1"></include_list>
</list>
<list>
<listname>sqm</listname>
<subject>SQM</subject>
<description/>
<status>open</status>
<language>fr</language>
<owner multiple="1">
<email>address@concealed</email>
</owner>
<include_list multiple="1">sqm-resp-dpt</include_list>
</list>
</family>
<family>
<list>
<listname>sqm-resp-dpt</listname>
<subject>Responsables SQM</subject>
<description/>
<status>open</status>
<language>fr</language>
<owner multiple="1">
<email>address@concealed</email>
</owner>
<include_list multiple="1"></include_list>
</list>
<list>
<listname>sqm</listname>
<subject>SQM</subject>
<description/>
<status>open</status>
<language>fr</language>
<owner multiple="1">
<email>address@concealed</email>
</owner>
<include_list multiple="1">sqm-resp-dpt</include_list>
</list>
</family>
And the template located in /etc/sympa/liste.acme.com/families/opendirectory/config.tt2
subject [% subject %]
status [% status %]
[% IF topics -%]
topics [% topics %]
[% END %]
visibility noconceal
send privateorpublickey
web_archive
access private
archive
period month
access owner
clean_delay_queuemod 15
add auth
del auth
subscribe closed
unsubscribe closed
review private
invite default
custom_subject [% listname %]
[% FOREACH o = owner -%]
owner
email [% o.email %]
profile privileged
[% IF o.gecos -%]
gecos [% o.gecos %]
[% END %]
[% END %]
[% IF editor -%]
[% FOREACH e = editor -%]
editor
email [% e.email %]
[% END %]
[% END %]
shared_doc
d_edit default
d_read private
creation
date [% creation.date %]
date_epoch [% creation.date_epoch %]
[% IF creation_email -%]
email [% creation_email %]
[% END %]
[% IF include_list -%]
[% FOREACH l = include_list -%]
include_list = [% l %]
[% END %]
[% END %]
include_ldap_2level_query
name [% listname %]
host 10.0.0.11
port 389
suffix1 dc=corp,dc=acme,dc=com
scope1 sub
filter1 (&(objectClass=apple-group)(cn=[% listname %]))
attrs1 memberUid
select1 all
suffix2 dc=corp,dc=acme,dc=com
scope2 sub
filter2 (&(objectClass=apple-user)(uid=[attrs1]))
attrs2 mail
select2 all
serial 0
status [% status %]
[% IF topics -%]
topics [% topics %]
[% END %]
visibility noconceal
send privateorpublickey
web_archive
access private
archive
period month
access owner
clean_delay_queuemod 15
add auth
del auth
subscribe closed
unsubscribe closed
review private
invite default
custom_subject [% listname %]
[% FOREACH o = owner -%]
owner
email [% o.email %]
profile privileged
[% IF o.gecos -%]
gecos [% o.gecos %]
[% END %]
[% END %]
[% IF editor -%]
[% FOREACH e = editor -%]
editor
email [% e.email %]
[% END %]
[% END %]
shared_doc
d_edit default
d_read private
creation
date [% creation.date %]
date_epoch [% creation.date_epoch %]
[% IF creation_email -%]
email [% creation_email %]
[% END %]
[% IF include_list -%]
[% FOREACH l = include_list -%]
include_list = [% l %]
[% END %]
[% END %]
include_ldap_2level_query
name [% listname %]
host 10.0.0.11
port 389
suffix1 dc=corp,dc=acme,dc=com
scope1 sub
filter1 (&(objectClass=apple-group)(cn=[% listname %]))
attrs1 memberUid
select1 all
suffix2 dc=corp,dc=acme,dc=com
scope2 sub
filter2 (&(objectClass=apple-user)(uid=[attrs1]))
attrs2 mail
select2 all
serial 0
Best regards,
Yoann Gini
- [sympa-users] Sympa command line, Families, I/O error : Permission denied, Yoann Gini, 03/14/2016
Archive powered by MHonArc 2.6.19+.