Jump to content
We've recently updated our Privacy Statement, available here ×
  • Restricting login to a specific group in Active Directory


    dszeto
    • Version: v7.1 Product: JasperReports® Server

    Issue Description:

    I want only a certain group within my Active Directory to be able to login to JasperReportsServer. How do I achieve that?

     

    Resolution:

    What you can do is make sure users get no roles by default when trying to login, and map your LDAP group you want to allow logging in to an internal JasperReportsServer role that allows for login. This is all done within the applicationContext-externalAuth-LDAP-mt.xml file. So for instance you might have something like

    <bean>

    <property name="defaultInternalRoles">
        <list>

       </list>
    </property>
    <property name="organizationRoleMap">

       <-->
        <!--Example of mapping customer roles to JRS roles

       <entry>

          <key>

             <value>Admin LDAP!</value>

          </key>
        <!-- JRS role that the <key> external role is mapped to

    <value>ROLE_ADMINISTRATOR</value>

    </entry>

    </map>

    </property>

    </bean>


    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...