Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [higgins-dev] NEW new IdASRegistry checked in


Hmm this really doesn't sound like it's IdASRegistry's fault, but if you tell me which project this is a part of, I'd be happy to check it out and take a look..

Markus

On 10/4/07, Michael McIntosh <mikemci@xxxxxxxxxx> wrote:
After changing the line:

digitalSubject = context.getSubject(strCUID, alIdentityClaims.iterator());

to:

digitalSubject = context.getSubject(strCUID);
_displaySubjectInfo(digitalSubject); // taken from the jndi.cp.test
project

in the sniipet below, I now get the following output:

13:11:39,270 DEBUG JNDIContext.getSubject (1164): Searching for Digital
Subject: mikemci@xxxxxxxxxx as: mikemci@xxxxxxxxxx in context:
urn:Higgins-LDAP-Server,
13:11:39,350 TRACE LogHelper.trace (54): after IContext::getSubject
13:11:39,350 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - givenName
13:11:39,360 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: givenName
is a String
13:11:39,360 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,360 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD ,
org.eclipse.higgins.idas.spi.BasicValueString@4eb24eb2
13:11:39,360 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,360 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - sn
13:11:39,370 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: sn is a
String
13:11:39,370 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,501 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@21482148
13:11:39,501 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,501 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - street
13:11:39,501 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: street is
a String
13:11:39,501 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,511 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@73e273e2
13:11:39,511 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,511 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - cameratype
13:11:39,511 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
cameratype is a String
13:11:39,521 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,521 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@46564656
13:11:39,521 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,521 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - userPassword
13:11:39,531 DEBUG JNDIDigitalSubject.getAttributes (224): Attr:
userPassword is a byte[]
13:11:39,531 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#base64Binary
13:11:39,531 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD ,
org.eclipse.higgins.idas.spi.BasicValueBase64Binary@18d418d4
13:11:39,541 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,541 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - l
13:11:39,541 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: l is a
String
13:11:39,541 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,551 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@6c866c86
13:11:39,551 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,551 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - dateofbirth
13:11:39,551 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
dateofbirth is a String
13:11:39,551 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,561 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@3f083f08
13:11:39,561 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,561 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - cardKeyHash
13:11:39,561 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
cardKeyHash is a String
13:11:39,561 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,571 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@119a119a
13:11:39,571 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,571 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - mail
13:11:39,571 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: mail is a
String
13:11:39,581 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,581 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@64206420
13:11:39,581 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,581 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - nickname
13:11:39,581 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: nickname
is a String
13:11:39,591 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,591 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@36a436a4
13:11:39,591 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,601 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - objectClass
13:11:39,601 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
objectClass is a String
13:11:39,601 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,601 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@9260926
13:11:39,601 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,611 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
objectClass is a String
13:11:39,611 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,611 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@182a182a
13:11:39,611 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,611 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
objectClass is a String
13:11:39,621 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,621 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@27322732
13:11:39,621 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,621 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
objectClass is a String
13:11:39,631 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,631 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@363c363c
13:11:39,641 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,641 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
objectClass is a String
13:11:39,641 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,651 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@45484548
13:11:39,651 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,661 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
objectClass is a String
13:11:39,661 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,661 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@54425442
13:11:39,661 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,671 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - uid
13:11:39,671 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: uid is a
String
13:11:39,671 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,671 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@26bc26bc
13:11:39,671 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,681 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - postalCode
13:11:39,681 DEBUG JNDIDigitalSubject.getAttributes (219): Attr:
postalCode is a String
13:11:39,681 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,691 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@795a795a
13:11:39,691 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,691 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - c
13:11:39,691 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: c is a
String
13:11:39,701 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,811 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@4bb24bb2
13:11:39,811 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,811 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - cn
13:11:39,811 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: cn is a
String
13:11:39,821 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,821 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@1e121e12
13:11:39,821 DEBUG BasicAttribute.updateNotification (274): _containter
null
13:11:39,821 DEBUG BasicAttributeSet.insertAttribute (199): Inserting
attribute - st
13:11:39,821 DEBUG JNDIDigitalSubject.getAttributes (219): Attr: st is a
String
13:11:39,831 DEBUG BasicAttribute._addValue (162): Sending value add
notification - http://www.w3.org/2001/XMLSchema#string
13:11:39,831 DEBUG BasicAttribute.updateNotification (273): Received
attribute value notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@631a631a
13:11:39,831 DEBUG BasicAttribute.updateNotification (274): _containter
null
mikemci@xxxxxxxxxx
http://www.eclipse.org/higgins/ontologies/2006/higgins/ldap#class_inetOrgPerson
postalCode
07013
cardKeyHash
nRTOoZzf7LHFdRMbQ4t3+TBiOLw=
street
33 Normandy Road
sn
McIntosh
cameratype
Minolta
l
Clifton
objectClass
top
person
organizationalPerson
inetOrgPerson
ePerson
higginsPerson
dateofbirth
05/29/1963
mail
mikemci@xxxxxxxxxx
nickname
Mike
givenName
Michael
uid
mikemci@xxxxxxxxxx
c
USA
cn
mikemci@xxxxxxxxxx
st
NJ
userPassword
Unknown: java.nio.HeapByteBuffer[pos=0 lim=6 cap=6]




Michael McIntosh/Watson/IBM@IBMUS
Sent by: higgins-dev-bounces@xxxxxxxxxxx
10/03/2007 10:14 PM
Please respond to
"Higgins \(Trust Framework\) Project developer discussions"
< higgins-dev@xxxxxxxxxxx>


To
"Higgins \(Trust Framework\) Project developer discussions"
<higgins-dev@xxxxxxxxxxx>
cc
Markus Sabadello < msabadello@xxxxxxxxxxxxx>
Subject
Re: [higgins-dev] NEW new IdASRegistry checked in






Markus,

Thanks for your help.
I've gotten thru loading and have run a test, but I am getting nothing
back from the getSubject call. Well, actually I get back a non-null
DigitalSubject that does not contain any of the claims I asked for.

Here is some of the relevant code:

final org.eclipse.higgins.sts.api.IInformationCardReference
informationCardReference = RST.getInformationCardReference();
java.net.URI uriContextRef = informationCardReference.getCardId();
this.log.trace("ContextRef: " + uriContextRef.toString());
org.eclipse.higgins.idas.api.IContextId cid =
org.eclipse.higgins.idas.registry.contextid.ContextIdFactory.fromConfiguration
   (uriContextRef.toString());
java.util.List listFactories = IdAS.getContextFactories(cid);
this.log.trace("Iterating thru ContextFactories");
for (int j = 0; j < listFactories.size(); ++j)
{
   final org.eclipse.higgins.idas.api.IContextFactory contextFactory =
(org.eclipse.higgins.idas.api.IContextFactory)listFactories.get(j);
   this.log.trace ("ContextFactory: " +
contextFactory.getClass().getName());
   this.log.trace("createContext: " + uriContextRef.toString());
   final org.eclipse.higgins.idas.api.IContext context =
contextFactory.createContext (cid);
   this.log.trace("before IContext::open");
   String strCUID = context.open(credential);
   this.log.trace("after IContext::open");
   this.log.trace("before IContext::getSubject");
   IDigitalSubject digitalSubject = context.getSubject(strCUID,
alIdentityClaims.iterator());
   this.log.trace("after IContext::getSubject");
   if (null != digitalSubject)
   {
      for (int i = 0; i < alIdentityClaims.size(); ++i)
      {
         final java.net.URI uriAttribute =
(java.net.URI)alIdentityClaims.get(i);
         this.log.trace("Adding Claim: " + uriAttribute.toString());
         final org.eclipse.higgins.idas.api.IAttribute attribute =
digitalSubject.getAttribute(uriAttribute);
         if (null != attribute)
         {
            ...
         }
         else
         {
             this.log.error("Could not find claim value");
         }
      }
      break;
   }
}

Here are some of the relevant log messages:

LogHelper.trace (54): ContextRef: urn:Higgins-LDAP-Server
LogHelper.trace (54): Iterating thru ContextFactories
LogHelper.trace (54): ContextFactory:
org.eclipse.higgins.idas.cp.jndi.JNDIContextFactory
LogHelper.trace (54): createContext: urn:Higgins-LDAP-Server
BasicAttributeSet.updateNotification (209): Received attribute update
notification -
urn:eclipse.higgins.idas.spi.AttributeNotification.UPDATE_ADD,
http://www.eclipse.org/higgins/ontologies/2006/higgins#userName
BasicAttributeSet.insertAttribute (199): Inserting attribute -
http://www.eclipse.org/higgins/ontologies/2006/higgins#userName
BasicAttribute._addValue (162): Sending value add notification -
http://www.w3.org/2001/XMLSchema#string
BasicAttribute.updateNotification (273): Received attribute value
notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@3fa83fa8
BasicAttribute.updateNotification (274): _containter
org.eclipse.higgins.idas.spi.BasicAuthNAttributesMaterials@503e503e
BasicAttributeSet.updateNotification (209): Received attribute update
notification -
urn:eclipse.higgins.idas.spi.AttributeNotification.UPDATE_VALUE_NOTIFY,
http://www.eclipse.org/higgins/ontologies/2006/higgins#userName
BasicAttributeSet.updateNotification (209): Received attribute update
notification -
urn:eclipse.higgins.idas.spi.AttributeNotification.UPDATE_ADD ,
http://www.eclipse.org/higgins/ontologies/2006/higgins#password
BasicAttributeSet.insertAttribute (199): Inserting attribute -
http://www.eclipse.org/higgins/ontologies/2006/higgins#password
BasicAttribute._addValue (162): Sending value add notification -
http://www.w3.org/2001/XMLSchema#string
BasicAttribute.updateNotification (273): Received attribute value
notification -
urn:eclipse.higgins.idas.spi.AttributeValueNotification.UPDATE_ADD,
org.eclipse.higgins.idas.spi.BasicValueString@52b252b2
BasicAttribute.updateNotification (274): _containter
org.eclipse.higgins.idas.spi.BasicAuthNAttributesMaterials@503e503e
BasicAttributeSet.updateNotification (209): Received attribute update
notification -
urn: eclipse.higgins.idas.spi.AttributeNotification.UPDATE_VALUE_NOTIFY,
http://www.eclipse.org/higgins/ontologies/2006/higgins#password
LogHelper.trace (54): before IContext::open
JNDIContext._setupContext (600): Attempting to create initial context:
ldap://localhost:389
JNDIContext.open (518): Context opened: urn:Higgins-LDAP-Server,  as:
mikemci@xxxxxxxxxx
LogHelper.trace (54): after IContext::open
LogHelper.trace (54): before IContext::getSubject
JNDIContext.getSubject (1164): Searching for Digital Subject:
mikemci@xxxxxxxxxx as: mikemci@xxxxxxxxxx in context:
urn:Higgins-LDAP-Server,
LogHelper.trace (54): after IContext::getSubject
LogHelper.trace (54): Adding Claim:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname
LogHelper.error (102): Could not find claim value
LogHelper.trace (54): Adding Claim:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname
LogHelper.error (102): Could not find claim value
LogHelper.trace (54): Adding Claim:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress
LogHelper.error (102): Could not find claim value

Here is the relevent fragments of my configuration:


Regards,
Mike

higgins-dev-bounces@xxxxxxxxxxx wrote on 10/03/2007 01:00:02 PM:

> All,
>
> Thanks for a lot of help on IRC today and yesterday. We may have
> found a way of configuring the IdASRegistry in two ways:
> - using XRDS documents (which can come from XRI, URI, local file)
> - using the Configuration API
>
> See this page for a summary and examples on how to configure
> IdASRegistry using the Configuration API:
> http://wiki.eclipse.org/ContextDiscoveryComponents_withoutXRDS
>
> Note that both ways can be combined. For example, you could list all
> your context factories in your configuration file (instead of the
> contextfactories.xrds), and you should still be able to use XRIs and
> URIs as context IDs (however, now context IDs can also come from the
> Configuration API, as shown on the wiki page).
>
> I just checked in the code. If you already converted to the XRDS
> stuff, everything should still work as usual (but please check to
> make sure!!).
>
> Please review the org.eclipse.higgins.idas.registry.test project.
> Look at the files in that project:
>
> IdASRegistryWithXRDSTest.java
> IdASRegistryWithoutXRDSTest.java
> ContextIdWithXRDSTest.java
> ContextIdWithoutXRDSTest.java
>
> This means the xxxWithXRDSTest and xxxWithoutXRDSTest use the
> IdASRegistry exactly in the same way, only the setUp() method is
> different. The data in idasregistryconfig.xml is exactly the same as
> the data in contextfactories.xrds+context1.xrds+context2.xrds.
>
> Hope this helps. Please send feedback and questions and bugs.
>
> Note there were also changes to the Configuration API, so if you
> check out the IdASRegistry, remember to update the configuration.XXX
> projects too.
>
> Markus
>
> P.S. Greg, Mike, Daniel: Please let me know what you came up with
> regarding moving the instance configurations to another place. Right
> now, I'm still using the InstanceHandler that looks for them in the
> "ComponentSettings".
> _______________________________________________
> higgins-dev mailing list
> higgins-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/higgins-dev
_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev


_______________________________________________
higgins-dev mailing list
higgins-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/higgins-dev




Back to the top