Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-51327

LDAP + PACL causes javax.naming.NotContextException: Not an instance of LdapContext

    Details

      Description

      Steps to reproduce
      1. Enable PACL by creating a catalina.policy file in

       ${TOMCAT} /conf 

      2. In the file add in

      grant {
      	permission java.security.AllPermission;
      };
      

      This should already be present.

      3. In "setenv.sh" under CATALINA_OPS, add in

      -Djava.security.manager -Djava.security.policy=$CATALINA_BASE/conf/catalina.policy
      

      4. Add to portal-ext.properties: portal.security.manager.strategy=liferay

      5. Start portal with the added flag of "-security" eg "./catalina.sh -security"
      6. Enable LDAP by going to Control Panel -> Portal Settings -> Authentication -> LDAP -> Add Server
      7. Enter LDAP info for server.
      8. Click "Test LDAP Users"

      Result: Pop up window is blank and there is an error:

      javax.naming.NotContextException: Not an instance of LdapContext 
      

      Expected: Pop up window should show a sample of LDAP users, as it does when PACL is not enabled.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                joshua.gok Joshua Gok (Inactive)
                Participants of an Issue:
                Recent user:
                Esther Sanz
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 26 weeks, 2 days ago