Skip to content

Commit 7e40ded

Browse files
committed
Added more logs about ldap error
1 parent 40e30e6 commit 7e40ded

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

dspace-server-webapp/src/main/java/org/dspace/app/rest/security/EPersonRestAuthenticationProvider.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ private Authentication authenticateNewLogin(Context context, Authentication auth
168168
*/
169169
private Authentication createAuthentication(final Context context) {
170170
EPerson ePerson = context.getCurrentUser();
171+
if (ePerson != null) {
172+
log.info("User EMAIL" + ePerson.getEmail());
173+
} else {
174+
log.info("No user found in context");
175+
}
171176

172177
if (ePerson != null && StringUtils.isNotBlank(ePerson.getEmail())) {
173178
//Pass the eperson ID to the request service

0 commit comments

Comments
 (0)