Feature #6094 User export to LDAP on create account and join/leave VRE

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/liferay62-plugins/VREFolder-hook@164690 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2018-03-02 16:15:35 +00:00
parent 028acd58a5
commit df34187ce7
1 changed files with 4 additions and 4 deletions

View File

@ -87,7 +87,7 @@ public class LDAPUtil {
attributes.put(gidNumber);
ctx.createSubcontext(subContext, attributes);
_log.info("Added " + subContext);
_log.info("createGroupVRE Added " + subContext);
}
/**
* ask to the Information System
@ -121,7 +121,7 @@ public class LDAPUtil {
AccessPoint[] accessPoints = (AccessPoint[]) apGroup.toArray(new AccessPoint[apGroup.size()]);
for (int i = 0; i < accessPoints.length; i++) {
if (accessPoints[i].name().compareTo(LDAP_SERVER_NAME) == 0) {
_log.info("Found credentials for " + LDAP_SERVER_NAME);
_log.debug("Found credentials for " + LDAP_SERVER_NAME);
AccessPoint found = accessPoints[i];
String ldapUrl = found.address();
toReturn.setLdapUrl(ldapUrl);
@ -137,7 +137,7 @@ public class LDAPUtil {
Property[] props = (Property[]) propGroup.toArray(new Property[propGroup.size()]);
for (int j = 0; j < props.length; j++) {
if (props[j].name().compareTo(LDAP_SERVER_FILTER_NAME) == 0) {
_log.info("\tFound properties of " + LDAP_SERVER_FILTER_NAME);
_log.debug("\tFound properties of " + LDAP_SERVER_FILTER_NAME);
String encrValue = props[j].value();
System.out.println("Filter encrypted = " + encrValue);
try {
@ -149,7 +149,7 @@ public class LDAPUtil {
}
}
else if (props[j].name().compareTo(LDAP_SERVER_PRINCPAL_NAME) == 0) {
_log.info("\tFound properties of " + LDAP_SERVER_PRINCPAL_NAME);
_log.debug("\tFound properties of " + LDAP_SERVER_PRINCPAL_NAME);
String encrValue = props[j].value();
try {
String principal = StringEncrypter.getEncrypter().decrypt(encrValue);