On 23/2/04 11:30 am, Claude <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Running the schema() method fails with an exception in Schema.pm when binding
> to a
> Netscape DS 6.2. It runs fine with an OpenLdap DS.
>
> I suppose that the problem is in non RFC compliant definitions of Netscape.
>
> Could you tell me if there is a workaround?
> --
> Claude
>
> perl> ./test1-1.pl
> Use of uninitialized value at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP/Schema.pm line 433 (#1)
>
> (W) An undefined value was used as if it were already defined. It was
> interpreted as a "" or a 0, but maybe it was a mistake. To suppress this
> warning assign an initial value to your variables.
>
> Uncaught exception from user code:
> Failed to parse token from value [] at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP/Schema.pm line 433.
> Net::LDAP::Schema::_get_one_word('\'"active", "inactive", or "deleted" status
> of a user\' SYNTAX 1...') called at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP/Schema.pm line 387
> Net::LDAP::Schema::_parse_item('DESC \'"active", "inactive", or "deleted"
> status of a user\' SYN...') called at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP/Schema.pm line 472
> Net::LDAP::Schema::_parse_value('( 2.16.840.1.113730.3.1.692 NAME
> \'inetUserStatus\' DESC \'"acti...') called at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP/Schema.pm line 517
That's all the same error, which looks to do with DESC values containing
quote marks. The specs don't really say how to do this, and since our
parsing code doesn't look for balanced quotes it therefore gets confused
with strings that contain both sorts of quotes.
If you can modify the descriptions that the Netscape box is sending to avoid
the double-quotes, things should work better.
> Net::LDAP::Schema::_parse_schema('Net::LDAP::Entry=HASH(0x404330ec)') called
> at /opt/local/bin/Perl/lib/site_perl/Net/LDAP/Schema.pm line 43
> Net::LDAP::Schema::new('Net::LDAP::Schema',
> 'Net::LDAP::Search=HASH(0x403eb51c)') called at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP.pm line 634
> Net::LDAP::schema('Net::LDAP=HASH(0x40014850)') called at ./test1-1.pl line 13
> perl> ./test1-1.pl
> IO::Socket::INET: Bad hostname '272.21.22.128:10389' at
> /opt/local/bin/Perl/lib/site_perl/Net/LDAP.pm line 66
> Uncaught exception from user code:
> IO::Socket::INET: Bad hostname '272.21.22.128:10389' at ./test1-1.pl line 8.
How can you have an IP address with an octet >= 255? (272!!)
Cheers,
Chris