[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: getting bindDN in perl script
On 2013-05-15 23:20, Pierangelo Masarati wrote:
Your perl scripts need to store the bind parameters somewhere if you
intend to use them also during searches, assuming you really need
them; usually, one does not need the binddn and the password when
performing searches.
Specifically, its Bind function would to stash them in a
{connection ID: bind params} hash. Other ops would look that
up. A connection_destory handler and rebind would remove them.
But first he must hack back-perl, which does not now provide the
connection ID or a connection_destroy handler.
But connection_destroy gets called for all connections, including
those which never used back-perl. To avoid invoking Perl for conns
which do not need it: The Perl Bind function can call a new back-perl
function, which sets a flag which makes back-perl's connection_destroy
handler call the Perl connection_destroy function.
--
Hallvard