[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: getting bindDN in perl script



On Wed, May 15, 2013 at 03:42:44PM +0100, Benin Technologies wrote:
> thanks, but I'm surprised, I don't see the bindDN and password in the 
> parameter list of the perl subs

This has nothing to to with OpenLDAP.

>From perl, you fird get an LDAP object:

	my $ldap = Net::LDAP->new($uri->as_string);

then bind:

	my $mesg = $ldap->bind($bindDN, password=> $passwd);

then search:

	$mesg = $ldap->search( @search_args );

once the bind has completed, nothing retains that information; it
was only needed to bind.

I have no idea what the architecture of your project is, but you'd
be better off asking on one of the perl lists to work this stuff out.

-- 
Brian Reichert				<reichert@numachi.com>
BSD admin/developer at large