From: Chris R. <Chr...@me...> - 2000-06-21 16:50:24
|
On Tue, 20 Jun 2000 23:02:25 BST, Graham Barr wrote: > OK, I changed this bit to > > After a successful bind you are ready to retrieve the schema > information. You do this by initializing a schema object. > > $schema = $ldap->schema(); > > In this case Net::LDAP will attempt to determine the dn under which > the schema can be found. First it will look for the attribute > C<subschemasubentry> in the root DSE. If that cannot be found then > it will default to the assumption of C<cn=schema> > > Alternatively you can specify the dn where the schema is to be found > with > > $schema = $ldap->schema(dn => $dn); > > Once we have a dn to search for, Net::LDAP will fetch the schema entry with > > $mesg = $self->search( > base => $dn, > scope => 'base', > filter => '(objectClass=*)', > ); > > Once the schema object has been initialized, schema methods > are used to retrieve the data. There are a number of ways this > can be done. Information on the schema methods can be found > in the Net::LDAP::Schema pod documentation. > > Graham. Great! Chris |