[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
How to access the Subschema Entry through Netscape-Java-SDK?
Dear sir:
Sorry to bother you...
I have tried to access OpenLDAP's Subschema entry by using
Netscape-Java-SDK. The following
is part of the code.
// ---Code ----------------
LDAPConnection ld = new LDAPConnection();
LDAPSchema dirSchema = new LDAPSchema();
try{
ld.connect("10.144.134.143",5000,null,null);
dirSchema.fetchSchema(ld);
} catch (Exception e) {
System.err.println(e.toString() );
}
if(dirSchema==null)
System.out.println("Empty!");
else
System.out.println(dirSchema.toString());
// ---------- end ---------------
For the SunOS-5.7(OpenLDAP-2.0.7 installed), I can get the informations
about ObjectClass,Attributes and MatchingRules from Subschema entry,
however, there returns nothing for RedHat-Linux-6.2(also OpenLDAP-2.0.7
installed).
Because I am developing a WEB-BASED Administrator's view-Tool, it's a fine
way to obtain Server's Schema information by using LDAP's client-SDK, Could
you tell me where to find the references? or, how do I go ?
I also have some questions:
1. Does the slapd daemon genetate cn=Subschema entry automatically?, or some
additional actions
needed on server to achieve such goal?
2. Does slapd return all schema information when a request to cn=Subschema?
Thank you very much!
Best Regards
S-C Wang