Echo context now sends an "example" entitlement.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 28 Feb 2003 21:49:46 +0000 (21:49 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 28 Feb 2003 21:49:46 +0000 (21:49 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@523 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aaLocal/EchoDirContext.java

index 4ceb865..0215f4f 100755 (executable)
@@ -48,6 +48,10 @@ public class EchoDirContext extends InitialDirContext{
                // return uid
                attrs.put(new BasicAttribute("eduPersonPrincipalName", uid));
            }
+               if(ids[i].equalsIgnoreCase("eduPersonEntitlement")){
+               // return uid
+               attrs.put(new BasicAttribute("eduPersonEntitlement", "urn:mace:example.edu:exampleEntitlement"));
+               }
        }
        return attrs;
     }