added check for user first name existence
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portal/ldap-export-servlet@154459 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
27a3cd15a9
commit
da3d3775a5
|
@ -212,8 +212,8 @@ public class LDAPSync implements Runnable {
|
|||
|
||||
_log.debug("Trying read sshPublicKey for " + user.getScreenName());
|
||||
String sshPublicKey = new LiferayUserManager().readCustomAttr(user.getUserId(), SSH_PUBLIC_KEY_ATTR).toString();
|
||||
|
||||
updateUserInLDAP(user.getScreenName(), user.getFirstName(), lastName, user.getFullName(), user.getEmailAddress(), "{SHA}"+user.getPassword(), sshPublicKey, ctx, filter);
|
||||
if (user.getFirstName() != null && user.getFirstName().compareTo("") != 0)
|
||||
updateUserInLDAP(user.getScreenName(), user.getFirstName(), lastName, user.getFullName(), user.getEmailAddress(), "{SHA}"+user.getPassword(), sshPublicKey, ctx, filter);
|
||||
_log.debug("Updated " + user.getScreenName());
|
||||
}
|
||||
_log.debug("LDAP Users Sync cycle done");
|
||||
|
|
Reference in New Issue