Java のプリミティブ型で LDAP 属性を読み取ろうとしています。spring-ldap jar を使用して属性を準備しています。現在、オブジェクトまたは属性クラスで結果を取得しています。
オブジェクト attributeValue = dirContextAdapter.getObjectAttribute(outputAttribute);
また
属性 attributes = dirContextAdapter.getAttributes(); 属性 attributeValue = attributes.get(outputAttribute);
しかし、私の問題は、プリミティブ データ型に LDAP 属性値が必要なことです。
コード例を教えていただければ幸いです
前もって感謝します