added inetUser as ObjectClass for the users
This commit is contained in:
parent
fe664c60c3
commit
7445f29213
|
@ -102,12 +102,10 @@ public class LDAPSync implements Runnable {
|
||||||
DirContext ctx = new InitialDirContext(env);
|
DirContext ctx = new InitialDirContext(env);
|
||||||
_log.debug("Initiating LDAP Sync ...");
|
_log.debug("Initiating LDAP Sync ...");
|
||||||
createUsersOrganizationalUnit(ctx);
|
createUsersOrganizationalUnit(ctx);
|
||||||
|
//update the users list
|
||||||
//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
|
|
||||||
exportSingleUsers(ctx, env, users);
|
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) {
|
} catch (NamingException e) {
|
||||||
_log.error("Something went Wrong during LDAP Sync in Exporting to LDAP");
|
_log.error("Something went Wrong during LDAP Sync in Exporting to LDAP");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
@ -175,7 +173,8 @@ public class LDAPSync implements Runnable {
|
||||||
//update the list of users in such VRE
|
//update the list of users in such VRE
|
||||||
updateUsersInGroup(ctx, vreSubCtx, 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("top");
|
||||||
objectClass.add("groupofnames");
|
objectClass.add("groupofnames");
|
||||||
objectClass.add("posixGroup");
|
objectClass.add("posixGroup");
|
||||||
objectClass.add("nestedGroup");
|
//objectClass.add("nestedGroup");
|
||||||
attributes.put(objectClass);
|
attributes.put(objectClass);
|
||||||
|
|
||||||
Attribute cn = new BasicAttribute("cn");
|
Attribute cn = new BasicAttribute("cn");
|
||||||
|
@ -370,6 +369,7 @@ public class LDAPSync implements Runnable {
|
||||||
objectClass.add("posixAccount");
|
objectClass.add("posixAccount");
|
||||||
objectClass.add("organizationalPerson");
|
objectClass.add("organizationalPerson");
|
||||||
objectClass.add("person");
|
objectClass.add("person");
|
||||||
|
objectClass.add("inetUser");
|
||||||
objectClass.add("shadowAccount");
|
objectClass.add("shadowAccount");
|
||||||
objectClass.add("ldapPublicKey");
|
objectClass.add("ldapPublicKey");
|
||||||
attributes.put(objectClass);
|
attributes.put(objectClass);
|
||||||
|
|
Reference in New Issue