Eric Var wrote:
> Greetings,
>
> I'm having a PerLDAP problem and would appreciate any related assistance
> (e.g. insight, debug suggestions, etc.) you might have.
>
> Context:
>
> - OS: SunOS 5.8; Perl: 5.004_04; PerLDAP: 1.4(1) # built from
> source
>
> - All software installed by system administrator (not me).
> - Using PerLDAP OO modules.
> - A Conn object has been successfully created.
>
> Problem:
>
> Conn search and browse methods do not return Entry objects.
>
> I'm confident the script syntax is all OK as I tested it from a
> completely different [NT] system and it worked fine.
>
> In the problem context
>
> $Entry = new Mozilla:LDAP:Entry(); # SUCCESS
>
> creates a valid $Entry. However,
>
> $Entry = $Conn->search( $Base, $Scope, $Filter ); # FAILURE
> and
> $Entry = $Conn->browse( $DN ); # FAILURE
Sorry for the late reply... With this information it's not really possible
to say what's going wrong. I have a few suggestions for you to try:
1. Have you played with any of the scripts in the example directory? Like
the qsearch.pl script?
2. Do you get any sort of errors, either in the client or on the server?
3. Have you looked at the log files on the LDAP server, to see what's being
done? Like, you can verify that the base-DN, search filter etc. are
correct, and also how many results the search should generate.
-- Leif