glassfish
  1. glassfish
  2. GLASSFISH-1571

JDBCRealm does not implement getUser(String name) method

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 9.1pe
    • Fix Version/s: not determined
    • Component/s: security
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: PC

    • Issuezilla Id:
      1,571

      Description

      In some cases, applications may want to use Glassfish-specific API to test
      whether a given username is valid (i.e. just the fact that the user exists,
      without testing any credentials).

      There is already a method in com.sun.enterprise.security.auth.realm.Realm called
      getUser( String name ) that is supposed to do this, however the
      com.sun.appserv.security.AppservRealm base class provides a default
      "unsupported" implementation of this class.

      The JDBCRealm class does not implement this method, so this method remains
      unsupported. I did notice that the FileRealm implements this method.

      It would be good for the JDBCRealm to support this as well. It should be able
      to do it since it has access to the username column in the database.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            raharsha
            Reporter:
            ananner
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: