Hi Matty,

On Thursday 20 January 2005 16:36, Matt Stevenson wrote:
> Using lastest perlldap (3202), for the following test
> program I got errors using default Net::LDAP (program
> does some forking and detaching, things people prob
> don't do normally). Anyway I had to add
> LDAP_SASL_BIND_IN_PROGRESS to the constants list in
> LDAP.pm. Hope it's the right place...
>
> use Net::LDAP::Constant qw(LDAP_SUCCESS
>                            LDAP_OPERATIONS_ERROR
>                            LDAP_DECODING_ERROR
>                            LDAP_PROTOCOL_ERROR
>                            LDAP_ENCODING_ERROR
>                            LDAP_FILTER_ERROR
>                            LDAP_LOCAL_ERROR
>                            LDAP_PARAM_ERROR
>                            LDAP_INAPPROPRIATE_AUTH
>                            LDAP_SERVER_DOWN
>                            LDAP_USER_CANCELED
>                            LDAP_EXTENSION_START_TLS
>                            LDAP_UNAVAILABLE
>                            LDAP_SASL_BIND_IN_PROGRESS
>                         );
>
>
> Error and test program follow...
>
>
> # added LDAP_SASL_BIND_IN_PROGRESS otherwise got ...
> # "LDAP_SASL_BIND_IN_PROGRESS" is not exported by the
> Net::LDAP::Constant module at
> /opt/apache/perlextras/lib/perl5/site_perl/5.8.0/Net/LDAP/Bind.pm
> line 8
> # Can't continue after import errors at
> /opt/apache/perlextras/lib/perl5/site_perl/5.8.0/Net/LDAP/Bind.pm
> line 8
> # BEGIN failed--compilation aborted at
> /opt/apache/perlextras/lib/perl5/site_perl/5.8.0/Net/LDAP/Bind.pm
> line 8, <DATA> line 225.
> # Compilation failed in require at
> /opt/apache/perlextras/lib/perl5/site_perl/5.8.0/Net/LDAP.pm
> line 296, <DATA> line 225.

I think you are right.
If Net::LDAP.pm does not import the constant,
Net::LDAP::Bind.pm cannot hope to get it imported from Net::LDAP.pm

I applied a fix to SVN

Thanks
Peter
-- 
Peter Marschall
eMail: [EMAIL PROTECTED]

Reply via email to