You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by dl...@apache.org on 2004/02/12 15:56:40 UTC

cvs commit: jakarta-jetspeed-2/services/security/src/webapp/WEB-INF/conf/jaas login.conf

dlestrat    2004/02/12 06:56:40

  Added:       services/security/src/webapp/WEB-INF/conf/ojb
                        repository_security.xml
               services/security/src/webapp/WEB-INF/conf/jaas login.conf
  Log:
  Configuration files supporting the security service.
  
  Revision  Changes    Path
  1.1                  jakarta-jetspeed-2/services/security/src/webapp/WEB-INF/conf/ojb/repository_security.xml
  
  Index: repository_security.xml
  ===================================================================
  <!--
     - S E C U R I T Y  U S E R
  -->	
  <class-descriptor
      class="org.apache.jetspeed.security.om.impl.JetspeedUserPrincipalImpl"
      proxy="dynamic"
      table="SECURITY_PRINCIPAL"
  >
      <documentation>Represents a user principal.</documentation>
      <field-descriptor
          name="principalId"
          column="principal_id"
          jdbc-type="INTEGER"
          primarykey="true"
          indexed="true"
          autoincrement="true"
      >
      </field-descriptor>
      <field-descriptor
          name="classname"
          column="classname"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="fullPath"
          column="full_path"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="creationDate"
          column="creation_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="modifiedDate"
          column="modified_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <collection-descriptor
          name="credentials"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedCredentialImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="true"
      >
          <documentation>This is the reference to security credentials.</documentation>
          <inverse-foreignkey field-ref="credentialId"/>
      </collection-descriptor>
      <collection-descriptor
          name="rolePrincipals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedRolePrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_USER_ROLE"
      >
          <documentation>This is the reference to role principals.</documentation>
          <fk-pointing-to-this-class column="USER_ID"/>
          <fk-pointing-to-element-class column="ROLE_ID"/>
      </collection-descriptor>
      <collection-descriptor
          name="groupPrincipals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedGroupPrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_USER_GROUP"
      >
          <documentation>This is the reference to group principals.</documentation>
          <fk-pointing-to-this-class column="USER_ID"/>
          <fk-pointing-to-element-class column="GROUP_ID"/>
      </collection-descriptor>
      <collection-descriptor
          name="permissions"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedPermissionImpl"
          proxy="false"
          refresh="false"
          auto-retrieve="false"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_PRINCIPAL_PERMISSION"
      >
          <documentation>This is the reference to a policy permission.</documentation>
          <fk-pointing-to-this-class column="PRINCIPAL_ID"/>
          <fk-pointing-to-element-class column="PERMISSION_ID"/>
      </collection-descriptor>
  </class-descriptor>
  
  <!--
     - S E C U R I T Y  C R E D E N T I A L
  -->
  <class-descriptor
      class="org.apache.jetspeed.security.om.impl.JetspeedCredentialImpl"
      proxy="dynamic"
      table="SECURITY_CREDENTIAL"
  >
      <field-descriptor
          name="credentialId"
          column="credential_id"
          jdbc-type="INTEGER"
          primarykey="true"
          indexed="true"
          autoincrement="true"
      >
      </field-descriptor>
      <field-descriptor
          name="principalId"
          column="principal_id"
          jdbc-type="INTEGER"
      >
      </field-descriptor>
      <field-descriptor
          name="value"
          column="value"
          jdbc-type="VARCHAR"
          nullable="false"
          length="150"
      >
      </field-descriptor>
       <field-descriptor
          name="type"
          column="type"
          jdbc-type="SMALLINT"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="classname"
          column="classname"
          jdbc-type="VARCHAR"
          nullable="true"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="creationDate"
          column="creation_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="modifiedDate"
          column="modified_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
  </class-descriptor>
  
  <!--
     - S E C U R I T Y  R O L E
  -->	
  <class-descriptor
      class="org.apache.jetspeed.security.om.impl.JetspeedRolePrincipalImpl"
      proxy="dynamic"
      table="SECURITY_PRINCIPAL"
  >
      <documentation>Represents a role principal.</documentation>
  	<field-descriptor
          name="principalId"
          column="principal_id"
          jdbc-type="INTEGER"
          primarykey="true"
          indexed="true"
          autoincrement="true"
      >
      </field-descriptor>
      <field-descriptor
          name="classname"
          column="classname"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="fullPath"
          column="full_path"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="creationDate"
          column="creation_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="modifiedDate"
          column="modified_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <collection-descriptor
          name="userPrincipals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedUserPrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_USER_ROLE"
      >
          <documentation>This is the reference to user principals.</documentation>
          <fk-pointing-to-this-class column="ROLE_ID"/>
          <fk-pointing-to-element-class column="USER_ID"/>
      </collection-descriptor>
      <collection-descriptor
          name="groupPrincipals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedGroupPrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_GROUP_ROLE"
      >
          <documentation>This is the reference to group principals.</documentation>
          <fk-pointing-to-this-class column="ROLE_ID"/>
          <fk-pointing-to-element-class column="GROUP_ID"/>
      </collection-descriptor>
      <collection-descriptor
          name="permissions"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedPermissionImpl"
          proxy="false"
          refresh="false"
          auto-retrieve="false"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_PRINCIPAL_PERMISSION"
      >
          <documentation>This is the reference to a policy permission.</documentation>
          <fk-pointing-to-this-class column="PRINCIPAL_ID"/>
          <fk-pointing-to-element-class column="PERMISSION_ID"/>
      </collection-descriptor>
  </class-descriptor>
  
  <!--
     - S E C U R I T Y  G R O U P
  -->	
  <class-descriptor
      class="org.apache.jetspeed.security.om.impl.JetspeedGroupPrincipalImpl"
      proxy="dynamic"
      table="SECURITY_PRINCIPAL"
  >
      <documentation>Represents a group principal.</documentation>
  	<field-descriptor
          name="principalId"
          column="principal_id"
          jdbc-type="INTEGER"
          primarykey="true"
          indexed="true"
          autoincrement="true"
      >
      </field-descriptor>
      <field-descriptor
          name="classname"
          column="classname"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="fullPath"
          column="full_path"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="creationDate"
          column="creation_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="modifiedDate"
          column="modified_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <collection-descriptor
          name="userPrincipals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedUserPrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_USER_GROUP"
      >
          <documentation>This is the reference to user principals.</documentation>
          <fk-pointing-to-this-class column="GROUP_ID"/>
          <fk-pointing-to-element-class column="USER_ID"/>
      </collection-descriptor>
      <collection-descriptor
          name="rolePrincipals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedRolePrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_GROUP_ROLE"
      >
          <documentation>This is the reference to group principals.</documentation>
          <fk-pointing-to-this-class column="GROUP_ID"/>
          <fk-pointing-to-element-class column="ROLE_ID"/>
      </collection-descriptor>
      <collection-descriptor
          name="permissions"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedPermissionImpl"
          proxy="false"
          refresh="false"
          auto-retrieve="false"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_PRINCIPAL_PERMISSION"
      >
          <documentation>This is the reference to a policy permission.</documentation>
          <fk-pointing-to-this-class column="PRINCIPAL_ID"/>
          <fk-pointing-to-element-class column="PERMISSION_ID"/>
      </collection-descriptor>
  </class-descriptor>
  
  <!--
     - S E C U R I T Y  P R I N C I P A L
  -->	
  <class-descriptor
      class="org.apache.jetspeed.security.om.impl.JetspeedPrincipalImpl"
      proxy="dynamic"
      table="SECURITY_PRINCIPAL"
  >
      <documentation>Represents a security principal in the security policy.</documentation>
      <field-descriptor
          name="principalId"
          column="principal_id"
          jdbc-type="INTEGER"
          primarykey="true"
          indexed="true"
          autoincrement="true"
      >
      </field-descriptor>
      <field-descriptor
          name="classname"
          column="classname"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="fullPath"
          column="full_path"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="creationDate"
          column="creation_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="modifiedDate"
          column="modified_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <collection-descriptor
          name="permissions"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedPermissionImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_PRINCIPAL_PERMISSION"
      >
          <documentation>This is the reference to a policy permission.</documentation>
          <fk-pointing-to-this-class column="PRINCIPAL_ID"/>
          <fk-pointing-to-element-class column="PERMISSION_ID"/>
      </collection-descriptor>
  </class-descriptor>
  
  <!--
     - S E C U R I T Y  P E R M I S S I O N
  -->	
  <class-descriptor
      class="org.apache.jetspeed.security.om.impl.JetspeedPermissionImpl"
      proxy="dynamic"
      table="SECURITY_PERMISSION"
  >
      <documentation>Represents a security permission in the security policy.</documentation>
      <field-descriptor
          name="permissionId"
          column="permission_id"
          jdbc-type="INTEGER"
          primarykey="true"
          indexed="true"
          autoincrement="true"
      >
      </field-descriptor>
      <field-descriptor
          name="classname"
          column="classname"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="name"
          column="name"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="actions"
          column="actions"
          jdbc-type="VARCHAR"
          nullable="false"
          length="254"
      >
      </field-descriptor>
      <field-descriptor
          name="creationDate"
          column="creation_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
      <field-descriptor
          name="modifiedDate"
          column="modified_date"
          jdbc-type="TIMESTAMP"
          nullable="false"
      >
      </field-descriptor>
          <collection-descriptor
          name="principals"
          element-class-ref="org.apache.jetspeed.security.om.impl.JetspeedPrincipalImpl"
          proxy="true"
          refresh="true"
          auto-retrieve="true"
          auto-update="true"
          auto-delete="false"
          indirection-table="SECURITY_PRINCIPAL_PERMISSION"
      >
          <documentation>This is the reference to a permission principals.</documentation>
          <fk-pointing-to-this-class column="PERMISSION_ID"/>
          <fk-pointing-to-element-class column="PRINCIPAL_ID"/>
      </collection-descriptor>
  </class-descriptor>
  
  
  
  1.1                  jakarta-jetspeed-2/services/security/src/webapp/WEB-INF/conf/jaas/login.conf
  
  Index: login.conf
  ===================================================================
  Jetspeed {
     org.apache.jetspeed.security.impl.RdbmsLoginModule required debug=true;
  };
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org