[EXTERNAL] Re: Metagen/megagen.sh

Ernie Kinsey Ernie.Kinsey at cpcc.edu
Tue Feb 27 14:29:59 EST 2018


To all:

I’m running into something I don’t understand with trying to create a scripted attribute.  I’m retrieving an internal user ID number from A SQL Server database, which works fine.  I’m using that connection as the dependency for the scripted attribute so I can examine the retrieved value and massage it accordingly.  The problem is that just putting some simple debugging into the scripted attribute doesn’t seem to do anything interesting; the scripted attribute looks like this:

    <!-- Employee Number, a.k.a. Colleague ID. -->
    <resolver:AttributeDefinition xsi:type="ad:Script" id="employeeNumber">
        <resolver:Dependency ref="ODS" />
        <resolver:AttributeEncoder xsi:type="enc:SAML1String" name="urn:mace:dir:attribute-def:employeeNumber" encodeType="false" />
        <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:2.16.840.1.113730.3.1.3" friendlyName="employeeNumber" encodeType="false" />
        <ad:Script><![CDATA[

            logger = Java.type("org.slf4j.LoggerFactory").getLogger("net.shibboleth.idp.attribute.resolver");
            logger.debug("Here we are, doing stuff ...");

        ]]></ad:Script>
    </resolver:AttributeDefinition>

All I’m looking for is to see the logging message ("Here we are, doing stuff ...") show up in my idp-process log, but – nothing.  I’m sure this is something fundamentally silly, but since the value itself is being properly fetched from the database – at least as far as what “aacli.sh” is telling me – I’m at a loss to understand why the script isn’t logging anything.  Any and all assistance would be much appreciated.

Thanks,
Ernest K. Kinsey, Jr.
Central Piedmont Community College
Charlotte, NC


________________________________

This e-mail, including any attachments, is intended only for the addressee's use and may contain confidential and proprietary information. If you are not the intended recipient, you are hereby notified that any retention, dissemination, reproduction, or use of the information contained in this e-mail is strictly prohibited. If you have received this e-mail by error, please delete it and immediately notify the sender. Thank you for your cooperation.


More information about the users mailing list