Skip to Content.
Sympa Menu

en - re[2]: [sympa-users] Ldap manager script, database access

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Flack Maguire <address@concealed>
  • To: Chris Pax <address@concealed>
  • Cc: <address@concealed>
  • Subject: re[2]: [sympa-users] Ldap manager script, database access
  • Date: Fri, 8 May 2009 09:23:20 -0700

Thanks!!
 
 
>>Attached is the code I have done so far. the scripts worked for me.
>>if you have any improvements you would like to add, email me back with them.


>>On Fri, May 8, 2009 at 11:32 AM, Flack Maguire
<address@concealed> wrote:
>>
>>
>>Hi Chris,

>>I know I am a complete stranger on the Sympa list.  But, thanks for posting this.  If you can, it
>> would be highly appreciated it you could continue to post your progress.  This is likely
>> pertinent to what we are doing.  The only key difference is that we are also using CAS (Central
>> Authentication Service  http://www.jasig.org/cas ) to make single sign-on work across a number of
>> open source platforms.  The Sympa guys themselves have written PerlCAS which makes Sympa a fast
>> integration.
>> 
>>Again, thanks!
>> 
>>Cheers,
>>Flack Maguire


>>
>> 
>> 
>>>>I am programming my own ldap_aliases_manager script.
>>>>Along with the normal set of data I use (cn, sn, uid, mail), im also adding a
>>>>attribute called "owner". Im going to be running a cron job that keep owners of
>>>>a list in sync with ldap; or ldap in sync with a list.
>>>>The only way i can figure out how to do this is pull the owner information from
>>>>the database. I run my custom script from inside
>>>>/home/sympa/bin/alias_manager.pl.

>>>>i have this line of code:
>>>>$out = system("/usr/bin/perl",
>>>>"/home/sympa/scripts/ldap_alias_manager/main.pl", $operation, $listname,
>>>>$domain);

>>>>just before the ($operation eq 'add') section. But, when it runs the code, the
>>>>entry in the database does not exists yet.

>>>>my question is, where can I put the line of code so that it will be able to
>>>>grab the data I need from the database?



>>




Archive powered by MHonArc 2.6.19+.

Top of Page