This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: perl Net::LDAP under cygwin


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]