Körde under IdPv4:
bin/plugin.sh -I net.shibboleth.idp.plugin.nashorn
sedan under IdPv5 för att uppgradera till v2:
bin/plugin.sh -u net.shibboleth.idp.plugin.nashorn
bin/plugin.sh -cl net.shibboleth.idp.plugin.nashorn ?
Min:
INFO - Including auto-located properties in
./../conf/admin/admin.properties
INFO - Including auto-located properties in
./../conf/authn/authn.properties
INFO - Including auto-located properties in ./../conf/c14n/subject-
c14n.properties
INFO - Including auto-located properties in
./../conf/services.properties
INFO - Including auto-located properties in ./../conf/saml-
nameid.properties
INFO - Including auto-located properties in ./../conf/ldap.properties
INFO - Including auto-located properties in
./../conf/KauMFA.properties
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/idp-plugin-nashorn-
jdk-impl-2.0.0.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/asm-util-7.3.1.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/asm-7.3.1.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/idp-plugin-
scripting-api-2.0.0.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/asm-commons-
7.3.1.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/asm-tree-7.3.1.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/asm-analysis-
7.3.1.jar
/opt/shibboleth-idp/dist/plugin-webapp/WEB-INF/lib/nashorn-core-
15.4.jar
Kolla att ni inte ha skräpfiler från v1 under dist/plugin-webapp/* ?
/Paul.
On Wed, 2024-10-23 at 11:38 +0000, Simon Lundström wrote:
Får samma fel:
2024-10-23 13:35:39,962 - - ERROR
[net.shibboleth.shared.service.AbstractReloadableService:179] -
Service 'shibboleth.AttributeResolverService': Initial load failed
net.shibboleth.shared.service.ServiceException: Failed to load [file
[/local/shibboleth/idp/conf/attribute-resolver.xml], class path
resource [net/shibboleth/idp/conf/attribute-resolver-system.xml]]
at
net.shibboleth.shared.spring.service.ReloadableSpringService.doReload
(ReloadableSpringService.java:385)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'eppnFromUid': Cannot create inner bean
'(inner bean)#6ba807fb' of type
[net.shibboleth.shared.spring.factory.EvaluableScriptFactoryBean]
while setting bean property 'script'
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver
.resolveInnerBeanValue(BeanDefinitionValueResolver.java:421)
Caused by: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name '(inner bean)#6ba807fb': null
at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1806)
Caused by: java.lang.ExceptionInInitializerError: null
at
org.openjdk.nashorn.internal.codegen.CompilerConstants.staticCall(Com
pilerConstants.java:566)
Caused by: java.lang.NullPointerException: Cannot invoke
"java.lang.invoke.MethodHandle.type()" because "target" is null
at
java.base/java.lang.invoke.MethodHandles.insertArgumentsChecks(Method
Handles.java:5198)
med:
2024-10-23 13:35:40,495 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:57] -
Shibboleth IdP Version 5.1.3
2024-10-23 13:35:40,496 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:58] - Java
version='17.0.12'
vendor='Amazon.com Inc.'
2024-10-23 13:35:40,497 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:73] -
Plugins:
2024-10-23 13:35:40,497 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:75] -
net.shibboleth.idp.plugin.metadatagen : v2.0.0
2024-10-23 13:35:40,498 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:75] -
net.shibboleth.idp.plugin.nashorn : v2.0.0
och
2024-10-23 13:31:55,523 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:57] -
Shibboleth IdP Version 5.1.3
2024-10-23 13:31:55,524 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:58] - Java
version='17.0.12' vendor='Eclipse Adoptium'
2024-10-23 13:31:55,526 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:73] -
Plugins:
2024-10-23 13:31:55,526 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:75] -
net.shibboleth.idp.plugin.metadatagen : v2.0.0
2024-10-23 13:31:55,526 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:75] -
net.shibboleth.idp.plugin.nashorn : v2.0.0
måste vara något annat jag gör fel då.
Hur installerar ni pluginet? Någon annan config som rör
scriptedattribute?
MVH
- Simon
On 23 Oct 2024, at 13:25, Paul Scott
<paul.scott(a)kau.se> wrote:
Inga problem med:
Shibboleth IdP Version 5.1.3
Java version='17.0.12' vendor='Red Hat, Inc.'
Plugins:
net.shibboleth.idp.plugin.nashorn : v2.0.0
net.shibboleth.plugin.storage.jdbc : v2.0.0
Jag klistrade in hela skriptet och startade om utan problem
(förutom
varningen att jag nu har en dubbelt för eduPersonPrincipalName):
DEBUG
[net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginPar
ser:
89] - Parsing configuration for AttributeDefinition plugin with id:
eduPersonPrincipalName
DEBUG
[net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginDep
ende
ncyParser:42] - Parsing configuration for InputAttributeDefinition
with
pluginId: eppnFromUid
WARN
[net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionPa
rser
:60] - Duplicate Definition 'eduPersonPrincipalName' of type
'net.shibboleth.idp.attribute.resolver.ad.impl.PrescopedAttributeDe
fini
tion'
DEBUG
[net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginPar
ser:
89] - Parsing configuration for AttributeDefinition plugin with id:
eppnFromUid
DEBUG
[net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginDep
ende
ncyParser:42] - Parsing configuration for InputDataConnector with
pluginId: myLDAP
DEBUG
[net.shibboleth.idp.attribute.resolver.spring.ad.BaseAttributeDefin
itio
nParser:57] - Attribute Definition 'eppnFromUid': Setting
dependencyOnly true
DEBUG
[net.shibboleth.idp.attribute.resolver.spring.ad.impl.ScriptedAttri
bute
DefinitionParser:89] - Attribute Definition 'eppnFromUid': Script:
if (typeof eduPersonPrincipalName == "undefined")
eppnFromUid.addValue(uid.getValues().get(0) + "(a)example.org")
/Paul.
On Wed, 2024-10-23 at 11:10 +0000, Simon Lundström via Saml-admins
wrote:
Vilka versioner av alla saker kör ni?
MVH
- Simon
On 23 Oct 2024, at 12:16, Peter Falck
<peter.falck(a)mdu.se>
wrote:
Vi har det fungerande. Vi kör dock med Corretto enligt
dokumentationen.
https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199511079/SystemRe…
/P
-----Original Message-----
From: Simon Lundström via Saml-admins
<saml-admins(a)lists.sunet.se>
Sent: Wednesday, 23 October 2024 12:09
To: Swamid saml-admins <saml-admins(a)swamid.se>
Subject: [Saml-admins] IDPv5, JDK17, ScriptedAttribute och
Nashorn
[EXTERNAL MAIL - MDU]
VARNING: Detta epostmeddelande har sitt ursprung utanför MDU.
Klicka inte på länkar och öppna inte bifogade filer om du inte
känner igen avsändaren och vet att innehållet är säkert.
CAUTION: This email originated from outside of MDU. Do not
click
links or open attachments unless you recognize the sender and
know
the content is safe.
Tjo!
Är det någon som fått ScriptedAttribute att funka med Nashorn
och
JDK17 på IDPv5 ännu?
2024-10-23 11:55:40,396 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:57] -
Shibboleth IdP Version 5.1.3
2024-10-23 11:55:40,397 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:58] -
Java
version='17.0.13' vendor='Debian'
2024-10-23 11:55:40,399 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:73] -
Plugins:
2024-10-23 11:55:40,399 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:75] -
net.shibboleth.idp.plugin.metadatagen : v2.0.0
2024-10-23 11:55:40,399 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:75] -
net.shibboleth.idp.plugin.nashorn : v2.0.0
2024-10-23 11:55:40,403 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:93] -
Enabled Modules:
2024-10-23 11:55:40,403 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:95] -
Core IdP Functions (Required)
2024-10-23 11:55:40,404 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:95] -
Command Line Scripts
2024-10-23 11:55:40,404 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:95] -
Password Authentication
2024-10-23 11:55:40,404 - - INFO
[net.shibboleth.idp.admin.impl.LogImplementationDetails:95] -
Hello World
net.shibboleth.shared.service.ServiceException: Failed to load
[file [/local/shibboleth/idp/conf/attribute-resolver.xml],
class
path resource [net/shibboleth/idp/conf/attribute-resolver-
system.xml]]
at
net.shibboleth.shared.spring.service.ReloadableSpringService.do
Relo
ad(ReloadableSpringService.java:385)
Caused by:
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'eppnFromUid': Cannot create
inner
bean '(inner bean)#75c9ebca' of type
[net.shibboleth.shared.spring.factory.EvaluableScriptFactoryBea
n]
while setting bean property 'script'
[…]
Caused by: java.lang.NullPointerException: Cannot invoke
"java.lang.invoke.MethodHandle.type()" because "target" is null
at
java.base/java.lang.invoke.MethodHandles.insertArgumentsChecks(
Meth
odHandles.java:5198)
får jag med deras egna exempel kopierade från wikin
https://shibboleth.atlassian.net/wiki/spaces/IDP5/pages/3199503289/Scripted…
MVH
- Simon
_______________________________________________
Saml-admins mailing list -- saml-admins(a)lists.sunet.se
To unsubscribe send an email to
saml-admins-leave(a)lists.sunet.se
_______________________________________________
Saml-admins mailing list -- saml-admins(a)lists.sunet.se
To unsubscribe send an email to saml-admins-leave(a)lists.sunet.se
När du skickar e-post till Karlstads universitet behandlar vi dina
personuppgifter<https://www.kau.se/gdpr>.
When you send an e-mail to Karlstad University, we will process
your personal data<https://www.kau.se/en/gdpr>.
_______________________________________________
Saml-admins mailing list -- saml-admins(a)lists.sunet.se
To unsubscribe send an email to saml-admins-leave(a)lists.sunet.se
När du skickar e-post till Karlstads universitet behandlar vi dina
personuppgifter<https://www.kau.se/gdpr>.
When you send an e-mail to Karlstad University, we will process your personal
data<https://www.kau.se/en/gdpr>.