Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4603

PropertiesLoginManager is hardwired to properties-login login module

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.1.4, 2.2
    • 2.2, 3.0.0
    • console
    • Security Level: public (Regular issues)
    • None

    Description

      In production you want to replace the toy properties login realm with something else such as an ldap realm. However the admin console has a hardwired dependency on the properties-login gbean.

      We should make the reference from PropertiesLoginManager multi-valued and scan through it for properties login modules so you can edit any such properties files.

      Workaround for replacing server-security-config with something with a real security realm is to include the properties login module as a dummy, not used in a security realm:

      <!-- bug workaround -->
      <gbean name="properties-login"
      class="org.apache.geronimo.security.jaas.LoginModuleGBean">
      <attribute name="loginModuleClass">org.apache.geronimo.security.realm.providers.PropertiesFileLoginModule</attribute>
      <attribute name="options">
      usersURI=var/security/users.properties
      groupsURI=var/security/groups.properties
      </attribute>
      <attribute name="loginDomainName">geronimo-admin</attribute>
      </gbean>

      Attachments

        Activity

          People

            xuhaihong Haihong Xu
            djencks David Jencks
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: