Re: Ref : Querying Win2k AD via Net::LDAP from Freebsd 4.9

2003-12-15 Thread Christopher A Bongaarts
In the immortal words of Noel Ashford:

> firewall# ldapsearch -x -b "dc=bhs,dc=local" -D "bhs\noel" -h 192.168.9.1 -p
> 389 -W "sAMAccountName=noel" -LLL | more
[...]
> $mesg = $ldap->bind( "cn=noel, o=Exchange, c=us", passsword =>
> "pass_for_noel");

You should check the result of the bind operation to see whether it
succeeded.

It looks to me like you're binding with a different DN in the
ldapsearch call vs. the perl call.

It looks like you have a different version of ldapsearch than I do,
which does not have -x or -W options, and -L is documented as "print
in LDIF format" which can be accomplished on the perl side with
Net::LDAP::LDIF.

%%  Christopher A. Bongaarts  %%  [EMAIL PROTECTED]   %%
%%  Internet Services %%  http://umn.edu/~cab  %%
%%  University of Minnesota   %%  +1 (612) 625-1809%%


unsupported extension

2003-12-15 Thread D.Kreft
So I'm busily working away making "optimizations"  to my code, but now when
I try to start_tls(), I get the dreaded "unsupported extended operation"
error. I googled for "Net::LDAP 'unsupported extended operation'" and
saw a reply from Chris Ridd
(http://www.geocrawler.com/archives/3/3482/2002/11/0/10134629/), but it
isn't help in my situation.

Could someone give me a brief synopsis of the possible scenarios that would
cause start_tls() to bomb like this?

Thanks, in advance.

-dan