DirContext schema = ctx.getSchema("");
NamingEnumeration<NameClassPair> names = getClassNames(schema);
return getClassDefinitions(schema, names, skipAbstract, skipObsolete);
}
catch (NamingException ex) {
LdapException ldapEx = new LdapException("Failed to retrieve requested object classes: " + ex.getMessage(), ex);
ldapEx.setConnectionInfo(connInfo);
ServerDebugLog.LOG.throwing(getClass().getName(), "lookupObjectClassDefinitions", ex);
throw ldapEx;
}
finally {
JndiUtils.close(ctx);