我正在尝试在 java 中读取其原始类型的 LDAP 属性。我正在使用 spring-ldap jar 来准备属性。目前我在 Object 或 Attribute 类中得到结果。
对象属性值 = dirContextAdapter.getObjectAttribute(outputAttribute);
或者
属性 attributes = dirContextAdapter.getAttributes(); 属性attributeValue = attributes.get(outputAttribute);
但我的问题是我需要原始数据类型中的 LDAP 属性值。
如果有人给我代码示例,我将不胜感激
提前致谢