I am new to LDAP.  While reading the documentation and the source I became
confused concerning some functions in Schema.pm.  Perhaps my lack of
knowledge concerning LDAP or perl is causing my confusion.

The functions on lines 113 through 120 of Schema.pm all return hash
references but the documentation suggest that they will return names:

http://search.cpan.org/author/GBARR/perl-ldap/lib/Net/LDAP/Schema.pod#METHODS

"all_attributes
all_ditcontentrules
...
    Returns a list of the names all the requested type in the schema"

The example of printing a schema also works better if those functions
return names.

http://search.cpan.org/author/GBARR/perl-ldap/lib/Net/LDAP/Examples.pod#LDAP_SCHEMA_RETRIEVAL

A way to do this is to change the source for those functions to return
keys and not values.

Sante' Jonker
IT Manager
ALTEC (Anderson Language Technology Center)
University of Colorado at Boulder

Reply via email to