Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: users (fetched from LDAP sir) sorted alfabetically

  1. #1
    Join Date
    Jan 2006
    Posts
    313

    Default users (fetched from LDAP sir) sorted alfabetically

    In the Pentaho Permission editor the Users are listed in the order they are found. We would like to see then sorted in alfabetic order.
    The users are fetched from LDAP (Active Directory)
    Does anyone know what to change to get it sorted?

  2. #2
    Join Date
    Oct 2006
    Posts
    817

    Default

    It should be stated that creating access control entries using usernames (as opposed to roles) is not recommended. Instead, I recommend creating roles and granting users those roles. Then use the roles when creating access control entries (via the Permissions UI). That being said, here are two solutions. Unfortunately, both involve writing Java code.

    Solution #1: Sort the results after they are returned from the server

    1. Subclass DefaultLdapUserRoleListService and override the getAllUsernames method.
    2. Add in your sort code before the return statement.

    Solution #2: Let the server sort

    1. Subclass GenericLdapSearch and override the search method.
    2. Copy the same code from the superclass' search implementation and insert these lines just above the initialDirContextFactory.newInitialDirContext().search call:
    Code:
    Control[] ctls = new Control[] {new SortControl(new String[]{"cn"}, Control.CRITICAL)};
    ctx.setRequestControls(ctls);
    Where cn is the attribute on which you want to sort.

    Reference for Solution #2: http://forum.java.sun.com/thread.jsp...28857&tstart=0

  3. #3
    Join Date
    Oct 2006
    Posts
    817

    Default

    Regarding solution #1, see http://jira.pentaho.org/browse/BISERVER-578.

  4. #4
    Join Date
    Jan 2006
    Posts
    313

    Default User specific HomeDrive

    Thank you for the suggestion.


    To come back to our needs for user based security. We feel that we have the need for a "HomeDrive" where each user can store it's own (adhoc) reports. If the user thinks these reports are usefull for more persons, the report is moved to the public section by an administrator. This is to get the number of reports in the system under control. The policy that we use is that only public reports will be ported to a new Pentaho version and tested. The others will be moved but not tested.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.