cancel
Showing results for 
Search instead for 
Did you mean: 

Shibboleth cannot create a new user in 9.3

jelninos_
Champ in-the-making
Champ in-the-making

Hi,

I use the version 9.3 of nuxeo (no problem with the 9.2 version). When I try to connect the first time to nuxeo with shibboleth, I have this error :

2018-01-04 19:46:52,468 ERROR [ajp-nio-0.0.0.0-8009-exec-1] [org.nuxeo.ecm.platform.shibboleth.auth.ShibbolethAuthenticationPlugin] Failed to get or create user entry
org.nuxeo.ecm.directory.DirectorySecurityException: User null does not have Write permission
	at org.nuxeo.ecm.directory.BaseSession.checkPermission(BaseSession.java:143)
	at org.nuxeo.ecm.directory.BaseSession.createEntry(BaseSession.java:357)
	at org.nuxeo.ecm.platform.shibboleth.auth.ShibbolethAuthenticationPlugin.handleRetrieveIdentity(ShibbolethAuthenticationPlugin.java:133)
(...)

I modified this file : nuxeo-platform-login-shibboleth/src/main/java/org/nuxeo/ecm/platform/shibboleth/auth/ShibbolethAuthenticationPlugin.java

131c131
<                 DocumentModel entry = userDir.getEntry(userId);
---
>                 DocumentModel entry = Framework.doPrivileged(() -> userDir.getEntry(userId));
133c133
<                     userDir.createEntry(fieldMap);
---
>                     Framework.doPrivileged(() -> userDir.createEntry(fieldMap));
136c136
<                     userDir.updateEntry(entry);
---
>                     Framework.doPrivileged(() -> userDir.updateEntry(entry));

And now it's ok, my new profil is created. Happy new year 🙂

1 REPLY 1

Florent_Guillau
World-Class Innovator
World-Class Innovator

Thanks, but this was already fixed: NXP-23837

Getting started

Attention: Blogs & Forums are in READ-ONLY mode from Oct 9-19 as we transition to our new platform. Learn more.

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.