Hi, Am 26.01.23 um 18:14 schrieb [email protected]:
Helloi am trying to configure LDAP Security Realm using groovy init script.So far, it works fine, but i am not able to Disable Role Prefixing using the method setDisableRolePrefixing <https://javadoc.jenkins.io/plugin/ldap/hudson/security/LDAPSecurityRealm.html#setDisableRolePrefixing(boolean)>Code: ... instance.securityRealm = new LDAPSecurityRealm(...) instance.securityRealm.*setDisableRolePrefixing*(true) instance.save() Error is:groovy.lang.MissingMethodException: N*o signature of method: hudson.security.LDAPSecurityRealm.setDisableRolePrefixing()* is applicable for argument types: (java.lang.Boolean) values: [true] *Possible solutions: setDisableRolePrefixing(boolean)*, isDisableRolePrefixing() at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)I'm not fluent with groovy/java, and i don't understand why the method is not recognized although given possible solutions actually list the method...Thanks in advance for your help --You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/eda149c1-dba6-4cc1-ab27-7cfd416d563en%40googlegroups.com?utm_medium=email&utm_source=footer>.
maybe the typical confusion between Boolean and boolean, try instance.securityRealm.setDisableRolePrefixing(Boolean.TRUE.booleanValue()) instead of instance.securityRealm.setDisableRolePrefixing(true) best regards Thomas -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/60120b2a-089a-3023-ece1-0acebfa52369%40proventis.net.
OpenPGP_0x9794716335E9B5AF.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature
