Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] include_ldap_2level_query errors

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: David Verdin <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-dev] include_ldap_2level_query errors
  • Date: Tue, 06 Apr 2010 16:55:32 +0200

Hi thomas, and sorry for this late answer.

I don't get it. Where in the code did you add this line ? How does applying default improve the behaviour of a list object you are about to create?
I'm a bit confused with your message, actually.

Cheers,

David

Le 30/03/2010 18:25, Thomas Berry a écrit :
Resolved by adding:

List::_apply_defaults();


This is inserted before using List->new().


Thomas Berry wrote:
Maybe its nothing, but when I run a commandline script [pulled together from sympa's code] to display the members of a list, I get the following errors:

Mar 30 08:34:16 altvirlststap01 show_members.pl: List::_load_include_admin_user_file() Expecting a single line for "include_ldap_2level_query" parameter in /home/sympa/etc/data_sources/
Mar 30 08:34:16 altvirlststap01 show_members.pl: List::_load_include_admin_user_file() Bad entry "include_ldap_2level_query" in /home/sympa/etc/data_sources/
Mar 30 08:34:16 altvirlststap01 show_members.pl: List::_load_include_admin_user_file() Expecting a single line for "include_ldap_2level_query" parameter in /home/sympa/etc/data_sources/
Mar 30 08:34:16 altvirlststap01 show_members.pl: List::_load_include_admin_user_file() Bad entry "include_ldap_2level_query" in /home/sympa/etc/data_sources/


Here is the excerpt of the list's config:

editor
email mail
gecos contact
info Tel: 4-4357
reception nomail

editor_include
source ldap_editor_include
reception mail
source_parameters testlist

owner
email mail
gecos contact
info Tel: 4-4357
reception nomail

owner_include
source ldap_owner_include
profile normal
reception mail
source_parameters testlist


And, here is a list of the include files, of which, only the ldap_editor_include and ldap_owner_include are involved with this family of lists:


# cat ldap_editor_include.incl
include_ldap_2level_query
name [% param.0 %].editors
host ldap.jpl.nasa.gov
port 389
use_ssl no
suffix1 ou=Personnel,dc=dir,dc=jpl,dc=nasa,dc=gov
scope1 one
timeout1 300
filter1 (&(objectClass=groupOfUniqueNames)(cn=[% param.0 %]))
attrs1 owner
select1 all
suffix2 [attrs1]
scope2 base
timeout2 300
filter2 (mail=*)
attrs2 mail
select2 all


# cat ldap_owner_include.incl
include_ldap_2level_query
name [% param.0 %].owners
host ldaphost
port 389
use_ssl no
suffix1 dc=jpl,dc=nasa,dc=gov
scope1 one
timeout1 300
filter1 (&(objectClass=groupOfUniqueNames)(cn=[% param.0 %]))
attrs1 owner
select1 all
suffix2 [attrs1]
scope2 base
timeout2 300
filter2 (mail=*)
attrs2 mail
select2 all

# cat ldap_instcomm_include.incl
include_ldap_2level_query
name [% param.0 %].instcomm
host ldaphost
port 389
use_ssl no
timeout1 300
suffix1 dc=jpl,dc=nasa,dc=gov
scope1 one
filter1 (&(objectClass=groupOfUniqueNames)(cn=jplinstcomm_listmods))
attrs1 owner
select1 all
timeout2 300
suffix2 [attrs1]
scope2 base
filter2 (mail=*)
attrs2 mail
select2 all


--
David Verdin
Comité réseau des universités



  • Re: [sympa-dev] include_ldap_2level_query errors, David Verdin, 04/06/2010

Archive powered by MHonArc 2.6.19+.

Top of Page