Fixed incorrect objectClass attribute in person DAO.

This commit is contained in:
Ulrik Sandberg
2007-04-21 13:24:20 +00:00
parent 37473b3d5d
commit bb4cca7adc
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ public class PersonDaoImpl implements PersonDao {
DirContextOperations setAttributes(DirContextOperations adapter,
Person person) {
adapter.setAttributeValues("objectclass", new String[] { "top",
"person" });
"person", "organizationalPerson", "inetOrgPerson" });
adapter.setAttributeValue("cn", person.getFullName());
adapter.setAttributeValue("sn", person.getLastName());
adapter.setAttributeValues("description", person.getDescription());

View File

@@ -55,11 +55,11 @@ public class TraditionalPersonDaoImpl implements PersonDao {
// TODO Rewrite using traditional tools
DirContextOperations getContextToBind(Person person) {
DirContextAdapter adapter = new DirContextAdapter();
adapter.setAttributeValue("objectclass",
new String[] { "top", "person" });
adapter.setAttributeValues("objectclass", new String[] { "top",
"person", "organizationalPerson", "inetOrgPerson" });
adapter.setAttributeValue("cn", person.getFullName());
adapter.setAttributeValue("sn", person.getLastName());
adapter.setAttributeValue("description", person.getDescription());
adapter.setAttributeValues("description", person.getDescription());
return adapter;
}