<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reference to  web.conf in login.html in Security</title>
    <link>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67297#M2216</link>
    <description>&lt;P&gt;No problem. What you're looking for is just &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cherrypy.config.get('serverName')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a long story but the "app" in cherrypy.request.app.config has no relation to Splunk's "apps", nor is any splunk conf accessible that way.&lt;/P&gt;

&lt;P&gt;So just put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;${cherrypy.config.get('serverName')}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;somewhere in your login.html  and it'll display as "lower_environment_3"&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:48:47 GMT</pubDate>
    <dc:creator>sideview</dc:creator>
    <dc:date>2020-09-28T14:48:47Z</dc:date>
    <item>
      <title>Reference to  web.conf in login.html</title>
      <link>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67296#M2215</link>
      <description>&lt;P&gt;Below is my web.conf&lt;BR /&gt;
&lt;PRE&gt; &lt;BR /&gt;
 [settings]&lt;BR /&gt;
 serverName = lower_environment_3&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;I want to display the above serverName detail in login page. Tried this way and it doesn't work&lt;/P&gt;

&lt;PRE&gt;
hostName = cherrypy.request.app.config['global'].get('serverName', 'host_notset')
&lt;/PRE&gt;

&lt;P&gt;Any other way I could achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67296#M2215</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2020-09-28T14:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to  web.conf in login.html</title>
      <link>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67297#M2216</link>
      <description>&lt;P&gt;No problem. What you're looking for is just &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;cherrypy.config.get('serverName')
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;It's a long story but the "app" in cherrypy.request.app.config has no relation to Splunk's "apps", nor is any splunk conf accessible that way.&lt;/P&gt;

&lt;P&gt;So just put &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;${cherrypy.config.get('serverName')}
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;somewhere in your login.html  and it'll display as "lower_environment_3"&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67297#M2216</guid>
      <dc:creator>sideview</dc:creator>
      <dc:date>2020-09-28T14:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to  web.conf in login.html</title>
      <link>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67298#M2217</link>
      <description>&lt;P&gt;Perfect. Thanks so much!&lt;/P&gt;</description>
      <pubDate>Fri, 20 Sep 2013 01:15:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67298#M2217</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2013-09-20T01:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reference to  web.conf in login.html</title>
      <link>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67299#M2218</link>
      <description>&lt;P&gt;it doesn't work for me, could you explain how you managed to get it to work?&lt;/P&gt;</description>
      <pubDate>Tue, 15 May 2018 08:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/Reference-to-web-conf-in-login-html/m-p/67299#M2218</guid>
      <dc:creator>santiagoaloi</dc:creator>
      <dc:date>2018-05-15T08:01:52Z</dc:date>
    </item>
  </channel>
</rss>

