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:
parent
028acd58a5
commit
df34187ce7
|
@ -87,7 +87,7 @@ public class LDAPUtil {
|
||||||
attributes.put(gidNumber);
|
attributes.put(gidNumber);
|
||||||
|
|
||||||
ctx.createSubcontext(subContext, attributes);
|
ctx.createSubcontext(subContext, attributes);
|
||||||
_log.info("Added " + subContext);
|
_log.info("createGroupVRE Added " + subContext);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* ask to the Information System
|
* ask to the Information System
|
||||||
|
@ -121,7 +121,7 @@ public class LDAPUtil {
|
||||||
AccessPoint[] accessPoints = (AccessPoint[]) apGroup.toArray(new AccessPoint[apGroup.size()]);
|
AccessPoint[] accessPoints = (AccessPoint[]) apGroup.toArray(new AccessPoint[apGroup.size()]);
|
||||||
for (int i = 0; i < accessPoints.length; i++) {
|
for (int i = 0; i < accessPoints.length; i++) {
|
||||||
if (accessPoints[i].name().compareTo(LDAP_SERVER_NAME) == 0) {
|
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];
|
AccessPoint found = accessPoints[i];
|
||||||
String ldapUrl = found.address();
|
String ldapUrl = found.address();
|
||||||
toReturn.setLdapUrl(ldapUrl);
|
toReturn.setLdapUrl(ldapUrl);
|
||||||
|
@ -137,7 +137,7 @@ public class LDAPUtil {
|
||||||
Property[] props = (Property[]) propGroup.toArray(new Property[propGroup.size()]);
|
Property[] props = (Property[]) propGroup.toArray(new Property[propGroup.size()]);
|
||||||
for (int j = 0; j < props.length; j++) {
|
for (int j = 0; j < props.length; j++) {
|
||||||
if (props[j].name().compareTo(LDAP_SERVER_FILTER_NAME) == 0) {
|
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();
|
String encrValue = props[j].value();
|
||||||
System.out.println("Filter encrypted = " + encrValue);
|
System.out.println("Filter encrypted = " + encrValue);
|
||||||
try {
|
try {
|
||||||
|
@ -149,7 +149,7 @@ public class LDAPUtil {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (props[j].name().compareTo(LDAP_SERVER_PRINCPAL_NAME) == 0) {
|
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();
|
String encrValue = props[j].value();
|
||||||
try {
|
try {
|
||||||
String principal = StringEncrypter.getEncrypter().decrypt(encrValue);
|
String principal = StringEncrypter.getEncrypter().decrypt(encrValue);
|
||||||
|
|
Loading…
Reference in New Issue