diff --git a/.classpath b/.classpath
index 7587a37..2998aa3 100644
--- a/.classpath
+++ b/.classpath
@@ -21,7 +21,7 @@
-
+
diff --git a/pom.xml b/pom.xml
index 1b4de74..af2d71b 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,7 +11,7 @@
org.gcube.portal
ldap-export-servlet
war
- 1.2.1
+ 1.3.0
ldap-export-servlet Maven Webapp
This component read periodically exports users and their groups in LDAP
diff --git a/src/main/java/org/gcube/portal/ldapexport/LDAPSync.java b/src/main/java/org/gcube/portal/ldapexport/LDAPSync.java
index 1ae2fda..6ac298e 100644
--- a/src/main/java/org/gcube/portal/ldapexport/LDAPSync.java
+++ b/src/main/java/org/gcube/portal/ldapexport/LDAPSync.java
@@ -201,7 +201,14 @@ public class LDAPSync implements Runnable {
Attributes attributes = new BasicAttributes();
attributes.put(memberUid);
ctx.modifyAttributes(vreSubCtx, DirContext.ADD_ATTRIBUTE, attributes);
- _log.info("Adding user: " + user);
+ _log.info("Adding user as memberUid: " + user );
+
+ Attribute member = new BasicAttribute("member");
+ member.add("uid="+user+","+vreSubCtx);
+ Attributes attributes2 = new BasicAttributes();
+ attributes2.put(member);
+ ctx.modifyAttributes(vreSubCtx, DirContext.ADD_ATTRIBUTE, attributes2);
+ _log.info("Adding user as memberUid: " + user );
}
catch (javax.naming.directory.AttributeInUseException ex) {
_log.trace("Not adding already existing user: " + user);
@@ -259,9 +266,9 @@ public class LDAPSync implements Runnable {
Attribute objectClass = new BasicAttribute("objectClass");
objectClass.add("top");
+ objectClass.add("groupofnames");
objectClass.add("posixGroup");
- // objectClass.add("researchProject");
- // objectClass.add("groupOfMembers");
+ objectClass.add("nestedGroup");
attributes.put(objectClass);
Attribute cn = new BasicAttribute("cn");