On Tue, Feb 07, 2006 at 12:06:55AM -0500, Brandon McCombs wrote: > This is great and all but it doesn't answer my question. How do I list > all object classes and attributes in one big list without doing a > piecemeal schema search on every attribute that may be listed as an > attribute within a specific object (which wouldn't give me all the > possible object classes and attributes anyway).
Is this what you want: #!/usr/bin/perl use strict; use warnings; # Read schema from server # These perl modules must be installed use Net::LDAP; use Net::LDAP::Schema; # Put your ldap server names here my $ldapServers = qw( ldap1 ldap2 ); my $ldap = Net::LDAP->new( $ldapServers ) || die $@; my $result = $ldap->bind(); $result->code && die $result->error; my $schema = $ldap->schema(); $schema->dump(); -- Norman Gaywood, Systems Administrator School of Mathematics, Statistics and Computer Science University of New England, Armidale, NSW 2351, Australia [EMAIL PROTECTED] Phone: +61 (0)2 6773 2412 http://turing.une.edu.au/~norm Fax: +61 (0)2 6773 3312 Please avoid sending me Word or PowerPoint attachments. See http://www.gnu.org/philosophy/no-word-attachments.html
