Uploaded image for project: 'AppFormer'
  1. AppFormer
  2. AF-157

org.uberfire.domain default value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • Backlog
    • 0.4.x
    • None
    • None

      Currentry, "org.uberfire.domain" default value is "ApplicationRealm".

      https://github.com/uberfire/uberfire/blob/master/uberfire-security/uberfire-security-server/src/main/java/org/uberfire/security/server/auth/source/JAASAuthenticationSource.java#L41

      I tested git ssh access to Drools Workbench 6.1.0.Final on JBoss AS 7.1.1. You can see the trace log.

      17:36:41,741 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] (pool-14-thread-4) Begin getAppConfigurationEntry(ApplicationRealm), size=3
      17:36:41,741 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] (pool-14-thread-4) getAppConfigurationEntry(ApplicationRealm), no entry in appConfigs, tyring parentCont: null
      17:36:41,741 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] (pool-14-thread-4) getAppConfigurationEntry(ApplicationRealm), no entry in parentConfig, trying: other
      17:36:41,745 TRACE [org.jboss.security.auth.login.XMLLoginConfigImpl] (pool-14-thread-4) End getAppConfigurationEntry(ApplicationRealm), authInfo=AppConfigurationEntry[]:
      [0]
      LoginModule Class: org.jboss.as.security.remoting.RemotingLoginModule
      ControlFlag: LoginModuleControlFlag: optional
      Options:
      name=password-stacking, value=useFirstPass
      [1]
      LoginModule Class: org.jboss.as.security.RealmUsersRolesLoginModule
      ControlFlag: LoginModuleControlFlag: required
      Options:
      name=usersProperties, value=${jboss.server.config.dir}/application-users.properties
      name=realm, value=ApplicationRealm
      name=rolesProperties, value=${jboss.server.config.dir}/application-roles.properties
      name=password-stacking, value=useFirstPass
      
      17:36:41,785 WARN  [org.uberfire.security.server.auth.source.adapter.WebSphereRolesAdapter] (pool-14-thread-4) Unable to look up UserRegistry in JNDI under key 'UserRegistry', disabling websphere adapter
      17:36:41,791 INFO  [org.apache.sshd.server.session.ServerUserAuthService] (pool-14-thread-4) Session admin2@/127.0.0.1:47151 authenticated
      17:36:41,799 INFO  [org.apache.sshd.server.channel.ChannelSession] (pool-14-thread-5) Executing command: git-upload-pack '/uf-playground'
      

      "ApplicationRealm" doesn't exist as security-domain so it falls back to 'other'. It doesn't seem to be an expected behaviour. Shouldn't the default value be 'other'?

            Unassigned Unassigned
            rhn-support-tkobayas Toshiya Kobayashi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: