Beispiel #1
0
 private void mapToContext(Person person, DirContextAdapter context) {
   context.setAttributeValues("objectclass", new String[] {"top", "person"});
   context.setAttributeValue("cn", person.getFullName());
   context.setAttributeValue("sn", person.getLastName());
   context.setAttributeValue("description", person.getDescription());
   context.setAttributeValue("telephoneNumber", person.getPhone());
 }