Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6470

LdapUrlInSearchBaseTestCase fails with security manager

    XMLWordPrintable

    Details

      Description

      org.jboss.as.test.integration.naming.ldap.LdapUrlInSearchBaseTestCase#testDir
      org.jboss.as.test.integration.naming.ldap.LdapUrlInSearchBaseTestCase#testLdap

      ./integration-tests.sh -DtestLogToFile=false -Dts.noSmoke -Dts.basic -Dtest=org.jboss.as.test.integration.naming.ldap.LdapUrlInSearchBaseTestCase -Dsecurity.manager

      Fail with:

      Caused by: java.security.AccessControlException: WFSM000001: Permission check failed (permission "("java.net.SocketPermission" "127.0.0.1:10389" "connect,resolve")" in code source "(vfs:/content/ldap-test.war/WEB-INF/classes <no signer certificates>)" of "null")
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:273)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkPermission(WildFlySecurityManager.java:175)
      	at java.lang.SecurityManager.checkConnect(SecurityManager.java:1051)
      	at org.wildfly.security.manager.WildFlySecurityManager.checkConnect(WildFlySecurityManager.java:407)
      	at java.net.Socket.connect(Socket.java:584)
      	at java.net.Socket.connect(Socket.java:538)
      	at java.net.Socket.<init>(Socket.java:434)
      	at java.net.Socket.<init>(Socket.java:211)
      	at com.sun.jndi.ldap.Connection.createSocket(Connection.java:363)
      	at com.sun.jndi.ldap.Connection.<init>(Connection.java:203)
      	... 50 more
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  istudens Ivo Studensky
                  Reporter:
                  jtymel Jan Tymel
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: