Cannot disable Role Prefixing using groovy init script

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Hello

      i 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
       
      Code:

      ...
      instance.securityRealm = new LDAPSecurityRealm(...)
      instance.securityRealm.setDisableRolePrefixing​(true)
      instance.save()

       
      Error is:

      groovy.lang.MissingMethodException: No 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
       
       

            Assignee:
            Unassigned
            Reporter:
            Geoffroy Jabouley
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: