added inetUser as ObjectClass for the users

This commit is contained in:
Massimiliano Assante 2020-07-02 18:14:02 +02:00
parent fe664c60c3
commit 7445f29213
1 changed files with 7 additions and 7 deletions

View File

@ -102,12 +102,10 @@ public class LDAPSync implements Runnable {
DirContext ctx = new InitialDirContext(env);
_log.debug("Initiating LDAP Sync ...");
createUsersOrganizationalUnit(ctx);
//crate or update the whole list of organizations (objectClass=organizationalUnit, ou="+orgName+",dc=d4science,dc=org) and groups ( objectClass=top and POSIXGroup)
updateGroups(ctx, rootVO);
//and update the users list
//update the users list
exportSingleUsers(ctx, env, users);
//crate or update the whole list of organizations (objectClass=organizationalUnit, ou="+orgName+",dc=d4science,dc=org) and groups ( objectClass=top and POSIXGroup)
updateGroups(ctx, rootVO);
} catch (NamingException e) {
_log.error("Something went Wrong during LDAP Sync in Exporting to LDAP");
e.printStackTrace();
@ -175,7 +173,8 @@ public class LDAPSync implements Runnable {
//update the list of users in such VRE
updateUsersInGroup(ctx, vreSubCtx, vre);
}
}
}
_log.debug("LDAP Groups Sync Completed OK!");
}
/**
*
@ -268,7 +267,7 @@ public class LDAPSync implements Runnable {
objectClass.add("top");
objectClass.add("groupofnames");
objectClass.add("posixGroup");
objectClass.add("nestedGroup");
//objectClass.add("nestedGroup");
attributes.put(objectClass);
Attribute cn = new BasicAttribute("cn");
@ -370,6 +369,7 @@ public class LDAPSync implements Runnable {
objectClass.add("posixAccount");
objectClass.add("organizationalPerson");
objectClass.add("person");
objectClass.add("inetUser");
objectClass.add("shadowAccount");
objectClass.add("ldapPublicKey");
attributes.put(objectClass);