Fixed incorrect objectClass attribute in person DAO.
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user