01-04-2018 02:28 PM
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 🙂
01-11-2018 09:20 AM
Thanks, but this was already fixed: NXP-23837
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.