Récupération d'informations dans le LDAP
Bonjour,
Je dois récupérer les informations d’une personne dans un annuaire LDAP.
Je fais la récupération en utilisant les annotations comme cela :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
@Entry(objectClasses={"inetOrgPerson", "person", "top"})
public class PersonneLdap {
@Id
private Name Dn;
@Attribute(name="uid")
private final String identifiant = null;
@Attribute(name="sn")
private final String nom = null;
@Attribute(name="privateInfos")
private final String dateNaissance = null;
@Attribute(name="privateInfos:placeOfBirth")
private final String lieuNaissance = null; |
Aucun probleme pour l'UID est le SN.
Mon soucis est que ma personne a un attribut nommé « privateInfos » dans lequel se trouvent plusieurs informations différentes (par exemple dateOfBirth, placeOfBirth…).
Je ne parvient pas à récupérer ce que je souhaite en écrivant mes @Attribute ainsi :
En mettant @Attribute(name="privateInfos"), j’obtiens : "entryTechUID::290183". (une sorte d’identifiant d’objet).
En mettant @Attribute(name="privateInfos:placeOfBirth"), j’obtiens null.
Quelqu’un saurait la valeur que je dois mettre dans mes @Attribute ?
Merci beaucoup par avance.