<?xml version="1.0" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugzilla.globus.org/bugzilla/bugzilla.dtd">

<bugzilla version="3.2.3"
          urlbase="http://bugzilla.globus.org/bugzilla/"
          maintainer="bacon@mcs.anl.gov"
>

    <bug>
          <bug_id>6186</bug_id>
          
          <creation_ts>2008-06-25 17:09</creation_ts>
          <short_desc>Authorized upstream registrants in core vs mds_index bug</short_desc>
          <delta_ts>2008-12-19 16:18:58</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Java WS Security</product>
          <component>Authorization</component>
          <version>4.0.4</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <keywords>Teragrid</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="John-Paul Navarro">navarro@mcs.anl.gov</reporter>
          <assigned_to name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</assigned_to>
          <cc>blau@mcs.anl.gov</cc>
    
    <cc>laura@isi.edu</cc>
    
    <cc>mdarcy@isi.edu</cc>
    
    <cc>navarro@mcs.anl.gov</cc>
    
    <cc>neillm@mcs.anl.gov</cc>

      

      
          <long_desc isprivate="0">
            <who name="John-Paul Navarro">navarro@mcs.anl.gov</who>
            <bug_when>2008-06-25 17:09:18</bug_when>
            <thetext>On the TeraGrid we need to authorize downstream MDS4 services to register upstream.

If in the upstream etc/globus_wsrf_mds_index/server-config.wsdd under DefaultIndexService we configure a securityDescriptor file, and in that file we configure &lt;authz value=&quot;gridmap&quot;/&gt; pointing to a gridmap-file of authorized downstream MDS4 services, the downstreams CAN&apos;T register.

If however we point to the same gridmap-file from globus_wsrf_core/global_security_descriptor.xml the downstreams are able to register.

This seems like a bug since it should be possible to authorize DefaultIndexService registrations within the MDS4 service without resorting to the container wide globus_wsrf_core/global_security_descriptor.xml.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="John-Paul Navarro">navarro@mcs.anl.gov</who>
            <bug_when>2008-10-31 14:44:39</bug_when>
            <thetext>This problem originally affected &quot;add resource properties&quot;. We&apos;ve now seen this same
problem with &quot;query resource properties&quot;.   The Index Service&apos;s securityConfig isn&apos;t
authorizing as expected, but the global security descriptor is.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Laura Pearlman">laura@isi.edu</who>
            <bug_when>2008-11-05 10:59:11</bug_when>
            <thetext>I think this is essentially the same bug as 5666, but I&apos;m not marking it as a duplicate because there&apos;s additional information here.

JP -- if you could attach a copy of the index service security descriptor file, that would probably be helpful.

</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="John-Paul Navarro">navarro@mcs.anl.gov</who>
            <bug_when>2008-11-05 11:19:45</bug_when>
            <thetext>All 3 users in the secure-index.grid-mapfile below were not able to query this service until their DNs were
added to the grid-mapfile pointed to by globus_wsrf_core/global_security_descriptor.xml.

From etc/globus_wsrf_mds_index/server-config.wsdd:
    &lt;service name=&quot;SecureIndexServiceEntry&quot; provider=&quot;Handler&quot;
        use=&quot;literal&quot; style=&quot;document&quot;&gt;
        &lt;parameter name=&quot;providers&quot;
                   value=&quot;GetRPProvider
                          GetMRPProvider
                          QueryRPProvider
                          SetTerminationTimeProvider&quot;/&gt;
        &lt;parameter name=&quot;handlerClass&quot; value=&quot;org.globus.axis.providers.RPCProvider&quot;/&gt;
        &lt;parameter name=&quot;scope&quot; value=&quot;Application&quot;/&gt;
        &lt;parameter name=&quot;allowedMethods&quot; value=&quot;*&quot;/&gt;
        &lt;parameter name=&quot;className&quot;
            value=&quot;org.globus.mds.index.impl.IndexEntryService&quot;/&gt;
        &lt;!-- TERAGRID CONFIG BEGIN --&gt;
        &lt;parameter name=&quot;loadOnStartup&quot; value=&quot;true&quot;/&gt;
        &lt;!-- TERAGRID CONFIG END --&gt;
        &lt;wsdlFile&gt;share/schema/mds/index/index_entry_service.wsdl&lt;/wsdlFile&gt;
    &lt;/service&gt;

    &lt;service name=&quot;SecureIndexService&quot; provider=&quot;Handler&quot;
        use=&quot;literal&quot; style=&quot;document&quot;&gt;
        &lt;parameter name=&quot;providers&quot;
                   value=&quot;org.globus.wsrf.impl.servicegroup.ServiceGroupRegistrationProvider
                          org.globus.mds.usefulrp.rpprovider.ResourcePropertyProviderCollection
                          GetRPProvider
                          GetMRPProvider
                          QueryRPProvider
                          DestroyProvider
                          SetTerminationTimeProvider
                          SubscribeProvider
                          GetCurrentMessageProvider&quot;/&gt;

        &lt;parameter name=&quot;handlerClass&quot; value=&quot;org.globus.axis.providers.RPCProvider&quot;/&gt;
        &lt;parameter name=&quot;scope&quot; value=&quot;Application&quot;/&gt;
        &lt;parameter name=&quot;allowedMethods&quot; value=&quot;*&quot;/&gt;
        &lt;!-- TERAGRID CONFIG BEGIN --&gt;
        &lt;parameter name=&quot;rpProviderConfigFile&quot;
        value=&quot;etc/globus_wsrf_mds_usefulrp/secure-rp-provider-config.xml&quot;/&gt;
        &lt;parameter name=&quot;securityDescriptor&quot;
            value=&quot;etc/globus_wsrf_mds_index/secure-index-security-config.xml&quot;/&gt;
        &lt;!-- TERAGRID CONFIG END --&gt;
        &lt;parameter name=&quot;className&quot;
            value=&quot;org.globus.mds.index.impl.DefaultIndexService&quot;/&gt;
        &lt;wsdlFile&gt;share/schema/mds/index/index_service.wsdl&lt;/wsdlFile&gt;
    &lt;/service&gt;

From etc/globus_wsrf_mds_index/secure-index-security-config.xml
&lt;securityConfig xmlns=&quot;http://www.globus.org&quot;&gt;
  &lt;auth-method&gt;
    &lt;GSISecureMessage/&gt;
    &lt;GSISecureConversation/&gt;
    &lt;GSITransport/&gt;
  &lt;/auth-method&gt;
  &lt;authz value=&quot;gridmap&quot;/&gt;
  &lt;gridmap value=&quot;/soft/globus-mds-widewsrf-4.0.5-r1/etc/globus_wsrf_mds_index/secure-index.grid-mapfile&quot;/&gt;
&lt;/securityConfig&gt;

Selected contents of etc/globus_wsrf_mds_index/secure-index.grid-mapfile:
&quot;/DC=org/DC=doegrids/OU=People/CN=Charles Bacon 332900&quot; nobody
&quot;/DC=org/DC=doegrids/OU=People/CN=Eric Blau 216112&quot; nobody
&quot;/DC=org/DC=doegrids/OU=People/CN=John-Paul Navarro 907682&quot; nobody</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</who>
            <bug_when>2008-11-06 15:25:51</bug_when>
            <thetext>Can you please provide logs with following enabled in container-log4j.properties

log4j.category.org.globus.security.gridmap=DEBUG
log4j.category.org.globus.wsrf.impl.security.descriptor=DEBUG
log4j.category.org.globus.wsrf.impl.security.authorization=DEBUG</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</who>
            <bug_when>2008-11-10 14:25:21</bug_when>
            <thetext>This is duplicate of http://bugzilla.globus.org/bugzilla/show_bug.cgi?id=6054. The bug fix made it into GT 4.0.8 only, but an advisory was published as mentioned in that bug. 

I&apos;ll leave the bug open until I hear that the advisory solved the issue.</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="Rachana Ananthakrishnan">ranantha@mcs.anl.gov</who>
            <bug_when>2008-12-04 13:01:17</bug_when>
            <thetext>Was this issue tested with the advisory applied? Any updates? Thanks!</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who name="John-Paul Navarro">navarro@mcs.anl.gov</who>
            <bug_when>2008-12-19 16:18:58</bug_when>
            <thetext>Confirming that our testing shows this bug is fixed in GT 4.0.8. Thanks!</thetext>
          </long_desc>
      
      

    </bug>

</bugzilla>