pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joe Conway <jconway2@home.com>
To: pgsql-sql@postgresql.org
Subject: pltcl and LDAP
Date: Sun, 20 Feb 2000 11:55:18 -0800
Message-ID: <000801bf7bdc$6984b6b0$0505a8c0@jec-nt1.elcjn1.sdca.home.com> (raw)

I'm working on a project right now which involves updating an LDAP directory
from a PostgreSQL database. The database includes a table called
employee_data. I would like to use the tclLDAP library from within a pltcl
function and create a trigger on the employee_data table to update the LDAP
directory every time something changes.

I have been able to get the tclLDAP functions to work properly from with
pgtclsh, but not from within pltcl. The documentation states that pltcl uses
a safe interpreter which does not allow a tcl load command.

Has anyone else tried to do this, i.e. synch up a PostgreSQL database with a
LDAP directory? If so, how? I have considered just writing a pgtclsh script
and run it from a chron, but I would prefer real time updates via a trigger
if possible.

Any help or suggestions would be much appreciated.

Thanks,

Joe




Message-ID: <000801bf7bdc$6984b6b0$0505a8c0@jec-nt1.elcjn1.sdca.home.com>
Permalink:  ../000801bf7bdc$6984b6b0$0505a8c0@jec-nt1.elcjn1.sdca.home.com/
Also on:    postgresql.org/message-id/000801bf7bdc$6984b6b0$0505a8c0@jec-nt1.elcjn1.sdca.home.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: jconway2@home.com
  Subject: Re: pltcl and LDAP
  In-Reply-To: <000801bf7bdc$6984b6b0$0505a8c0@jec-nt1.elcjn1.sdca.home.com>
  References: <000801bf7bdc$6984b6b0$0505a8c0@jec-nt1.elcjn1.sdca.home.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox