Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4055

LdapUrlInSearchBaseTestCase fails with security manager

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR1
    • 7.0.0.ER7
    • Test Suite
    • None

      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
      

              istudens@redhat.com Ivo Studensky
              jtymel Jan Tymel (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: