Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Date: Thu, 27 Sep 2001 12:29:04 +0000
From: Olaf Foellinger <Olaf.Foellinger@bln.sesa.de>
To: cygwin@cygwin.com
Subject: Re: perl Net::LDAP under cygwin
Message-ID: <20010927122904.A496@NBOF>
Mail-Followup-To: cygwin@cygwin.com
References: <005901c1474b$1be905a0$0d392dcb@graal04>
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
User-Agent: Mutt/1.2.5i
In-Reply-To: <005901c1474b$1be905a0$0d392dcb@graal04>; from akgrant@bigpond.net.au on Thu, Sep 27, 2001 at 09:54:05PM +1000

On Thu, Sep 27, 2001 at 09:54:05PM +1000, Alistair Grant wrote:
> Has anyone used the perl Net::LDAP module successfully under cygwin?
> 
> All operations return an error message "I/O Error Resource temporarily
> unavailable".  Despite this, the bind actually works and the search is
> submitted to the directory.  However sync() returns immediately rather than
> waiting for the results.
> 
> Some relevant version numbers:
> 
>     Windows 2000 SP2
>     perl v5.6.1
>     perl-ldap-0.13
>     URI-1.17
>     Convert-BER-1.31
>     cygwin1.dll  major: 1003, minor: 2, epoch: 19.

I've had problems with timeout and I've commented out the following
lines in the function sub_connect in LDAP.pm

sub _connect {
  my ($ldap, $host, $arg) = @_;

  $ldap->{net_ldap_socket} = IO::Socket::INET->new(
    PeerAddr => $host,
    PeerPort => $arg->{port} || '389',
    Proto    => 'tcp',
#    Timeout  => defined $arg->{timeout}
#		 ? $arg->{timeout}
#		 : 120
  );
}


After this a reading access worked for me.


Gruss Olaf

--
Olaf Föllinger
Leiter Fachbereich IT
S.E.S.A. Software und Systeme AG

Alt-Moabit 91a
D-10559 Berlin
Germany
Tel:   +49 30 390722 -291
Fax:   +49 30 390722 -222
Mobil: +49 173 6227080
http://www.sesa.de
mailto: Olaf.Foellinger@sesa.de

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

