[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: getting bindDN in perl script
- To: openldap-technical@openldap.org
- Subject: Re: getting bindDN in perl script
- From: Benin Technologies <benintechnologies@yahoo.fr>
- Date: Wed, 15 May 2013 17:56:59 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1368637026; bh=ugRrl8nG/d9az7eu2C1zXMtneF8/9dT03ndvaf/lQKY=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:X-Forwarded-Message-Id:Content-Type:Content-Transfer-Encoding; b=Y8y4ZQ4hCvkmbZTV4vWPiGhlzPY0goMLf0PTetBe8dptkS23HtUY/ZoSX78l56x616V1f/KjP9E/ae2zQnoWCqfvDlwFDGNPdenE6MejB5VUj+qhOl+G6DXeZkpU+VUBjmP5Auli8YgThdiJvBle+dRA6XD6xUfdWYnaCsHrxw4=
- In-reply-to: <5193BC9B.3040700@yahoo.fr>
- References: <5193BC9B.3040700@yahoo.fr>
- User-agent: Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1
yes I'm using Net::LDAP in my back-perl to access a back-hdb server and
it works, but I always use the same hardcorded $bindDN and $password
(for example : $binddn = cn=admin,dc=my-domain and $password = secret)
But I'd like to use the same bindDN and the same password as the one
that has been used to bind to the back-perl backend
Le 15/05/2013 17:14, Brian Reichert a écrit : >
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. >