[prev in list] [next in list] [prev in thread] [next in thread]
List: shibboleth-users
Subject: Re: Access Java Library in IDP v5
From: "Ruderman, Kevin via users" <users () shibboleth ! net>
Date: 2024-03-11 19:38:14
Message-ID: PH0PR03MB6622D454B3A666345E3442DEBD242 () PH0PR03MB6622 ! namprd03 ! prod ! outlook ! com
[Download RAW message or body]
Hi Folks,
I global.xml I have:
<util:map id="shibboleth.CustomViewContext">
<entry key="hostname" value="#{systemEnvironment['HOSTNAME']}"/>
</util:map>
In tomcat bin/setenv.sh I add:
# Used in global.xml and then login.vm as a breadcrumb comment
HOSTNAME=`/usr/bin/hostname 2>/dev/null`
export HOSTNAME
Then in login.vm I have:
<!-- Hostname ID: $custom['hostname'] -->
For me it's just there so I can tell the backend. I don't display it to users but I \
could.
Regards, Kevin
-----------------------
Kevin Ruderman | Senior IAM Engineer / Architect | he/him
Boston University Information Services & Technology
________________________________
From: users <users-bounces@shibboleth.net> on behalf of Cantor, Scott via users \
<users@shibboleth.net>
Sent: Monday, March 11, 2024 3:17 PM
To: Shib Users <users@shibboleth.net>
Cc: Cantor, Scott <cantor.2@osu.edu>
Subject: Re: Access Java Library in IDP v5
You probably were getting away with something improper, if you want a class object, \
that would be class="T(classname)".
I think you can also get hold of classes indirectly in Velocity with a trick like \
$object.getClass().forName("name of other class") because you can call static methods \
on actual objects.
> What is the best way to get a hosts DNS name?
A custom property set differently per host probably.
-- Scott
--
For Consortium Member technical support, see \
https://shibboleth.atlassian.net/wiki/x/ZYEpPw To unsubscribe from this list send an \
email to users-unsubscribe@shibboleth.net
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} \
</style> </head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"> Hi Folks,</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"> <br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"> I global.xml I have:</div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"> <util:map \
id="shibboleth.CustomViewContext"></span></div> <div><span \
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"> \
<entry key="hostname" \
value="#{systemEnvironment['HOSTNAME']}"/></span></div> <div \
class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"> </util:map></span></div> <div \
class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"><br> </span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);">In tomcat bin/setenv.sh I add:</span></div> <div class="elementToProof"><span \
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"># Used in global.xml \
and then login.vm as a breadcrumb comment</span></div> <div><span style="font-family: \
Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);">HOSTNAME=`/usr/bin/hostname \
2>/dev/null`</span></div> <div class="elementToProof"><span style="font-family: \
Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; \
font-size: 12pt; color: rgb(0, 0, 0);">export HOSTNAME</span></div> <div \
class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"><br> </span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);">Then in login.vm I have:</span></div> <div class="elementToProof"><span \
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><!-- Hostname ID: \
$custom['hostname'] --></span></div> <div class="elementToProof"><span \
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);"><br> </span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);">For me it's just there so I can tell the backend. I don't display it to users \
but I could.</span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);"><br> </span></div>
<div class="elementToProof"><span style="font-family: Aptos, Aptos_EmbeddedFont, \
Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, \
0, 0);">Regards, Kevin</span></div> <div class="elementToProof"><span \
style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, \
Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, \
0);">-----------------------</span></div> <div><span style="font-family: Aptos, \
Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);">Kevin Ruderman | Senior IAM Engineer / Architect | \
he/him</span></div> <div class="elementToProof"><span style="font-family: Aptos, \
Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);">Boston University Information Services & \
Technology</span></div> <div class="elementToProof"><span style="font-family: Aptos, \
Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: \
12pt; color: rgb(0, 0, 0);"><br> </span></div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" \
style="font-size:11pt" color="#000000"><b>From:</b> users \
<users-bounces@shibboleth.net> on behalf of Cantor, Scott via users \
<users@shibboleth.net><br> <b>Sent:</b> Monday, March 11, 2024 3:17 PM<br>
<b>To:</b> Shib Users <users@shibboleth.net><br>
<b>Cc:</b> Cantor, Scott <cantor.2@osu.edu><br>
<b>Subject:</b> Re: Access Java Library in IDP v5</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">You probably were getting away with something improper, if you \
want a class object, that would be class="T(classname)".<br> <br>
I think you can also get hold of classes indirectly in Velocity with a trick like \
$object.getClass().forName("name of other class") because you can call \
static methods on actual objects.<br> <br>
> What is the best way to get a hosts DNS name? <br>
<br>
A custom property set differently per host probably.<br>
<br>
-- Scott<br>
<br>
<br>
-- <br>
For Consortium Member technical support, see <a \
href="https://shibboleth.atlassian.net/wiki/x/ZYEpPw"> \
https://shibboleth.atlassian.net/wiki/x/ZYEpPw</a><br> To unsubscribe from this list \
send an email to users-unsubscribe@shibboleth.net<br> </div>
</span></font></div>
</body>
</html>
--
For Consortium Member technical support, see https://shibboleth.atlassian.net/wiki/x/ZYEpPw
To unsubscribe from this list send an email to users-unsubscribe@shibboleth.net
--===============6814234525233916549==--
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic