在Java中获取LDAP模式

在Java中获取LDAP模式,java,ldap,openldap,Java,Ldap,Openldap,我正在尝试获取LDAP实体的架构。有人建议我使用Novell的开源LDAP库,它看起来相当不错。我发现了一个名为的示例,听起来很不错,但我认为我的参数设置不正确或是其他什么 我得到的结果是: ou ( 2.5.4.11 NAME ( 'ou' 'organizationalUnitName' ) DESC 'Standard LDAP attribute type' SUP 'name' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN '

我正在尝试获取LDAP实体的架构。有人建议我使用Novell的开源LDAP库,它看起来相当不错。我发现了一个名为的示例,听起来很不错,但我认为我的参数设置不正确或是其他什么

我得到的结果是:

 ou      ( 2.5.4.11 NAME (  'ou' 'organizationalUnitName' ) DESC 'Standard LDAP attribute type' SUP 'name' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'RFC 2256' )
objectClass      ( 2.5.4.0 NAME 'objectClass' DESC 'Standard LDAP attribute type' EQUALITY 'objectIdentifierMatch' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'RFC 2256 (XXX: syntax should be ...38)' )
我期待的结果是[某种效果]:

cn
affiliations
streetaddress
phone
fax
etc
只是想知道对于LDAP专家来说,我缺少什么或者我应该要求什么是显而易见的

谢谢

==============================

解决方案:

ServiceableLDAPConnection lc = takeConnection();
LDAPSchema schema = lc.fetchSchema(lc.getSchemaDN());
Enumeration<?> enumeration = schema.getAttributeNames();
ServicealDapConnection lc=takeConnection();
LDAPSchema schema=lc.fetchSchema(lc.getSchemaDN());
枚举=schema.getAttributeNames();
我发现这个网站特别有用:


=====================================

您将获得完整的架构定义。通常,在cn=schema的LDAP查询中,您将整个架构作为一个需要解析的对象

是的,好的,够近了,我要了。