<?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: default_namespace in an LDAP, multi-tenant, SHC in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340574#M19384</link>
    <description>&lt;P&gt;Does &lt;CODE&gt;acme_user&lt;/CODE&gt; role has access to &lt;CODE&gt;acme_search&lt;/CODE&gt; app?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
    <pubDate>Fri, 21 Apr 2017 15:52:44 GMT</pubDate>
    <dc:creator>harsmarvania57</dc:creator>
    <dc:date>2017-04-21T15:52:44Z</dc:date>
    <item>
      <title>default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340573#M19383</link>
      <description>&lt;P&gt;We have different groups in our company. Each group gets an app, say acme_search. There are roles associated with the app, for example acme_user. This role is then mapped to an LDAP group. One of the template files included with the base app install is acme_search/default/user-prefs.conf which contains:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[role_acme_user]
default_namespace = acme_search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I've noticed just recently that all users are being sent to the search app by default. I swear this used to work as expected. This really sucks because newbs start creating artifacts, reports, alerts, dashboards, etc in search instead of their "Acme" app. And untangling that mess is not trivial. Not to mention the confusion it sows in the user base. &lt;/P&gt;

&lt;P&gt;It appears that the (relatively new?) default app &lt;CODE&gt;user-prefs&lt;/CODE&gt; is overriding my per app config file. In a standalone SH env, if I put that stanza into &lt;CODE&gt;user-prefs/local/user-prefs.conf&lt;/CODE&gt; it works. Doing that in an SHC env is tricky/hacky/gross. I presume it would work in system/local as well, while also presenting SHC problems. More to the point, I need it to be bundled with the app. Trying to manage a common user-prefs.conf file for 400+ different roles is not something I want to tackle.&lt;/P&gt;

&lt;P&gt;FWIW, btool shows good, but this setting has no impact on actual use.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;gt; splunk btool user-prefs list role_acme
[role_acme_user]
default_namespace = acme_search
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Am I missing something? Any workarounds?&lt;/P&gt;

&lt;P&gt;Linux&lt;BR /&gt;
Splunk 6.5.1 (tested on 6.5.2 as well)&lt;BR /&gt;
SHC and indexer cluster&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
jon&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 13:45:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340573#M19383</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2020-09-29T13:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340574#M19384</link>
      <description>&lt;P&gt;Does &lt;CODE&gt;acme_user&lt;/CODE&gt; role has access to &lt;CODE&gt;acme_search&lt;/CODE&gt; app?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Harshil&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 15:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340574#M19384</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-04-21T15:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340575#M19385</link>
      <description>&lt;P&gt;Yes. They can manually switch to the app, and save artifacts there. But I want them to START in the app by default. Not Launcher.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 15:55:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340575#M19385</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2017-04-21T15:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340576#M19386</link>
      <description>&lt;P&gt;ok, we are also running SHC but we are pushing &lt;CODE&gt;user-prefs/local/user-prefs.conf&lt;/CODE&gt; from Deployer to all SH for all the apps to manage it centrally.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 16:07:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340576#M19386</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-04-21T16:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340577#M19387</link>
      <description>&lt;P&gt;Trying to avoid that. (Also, the Deployer only pushes default. Anything in local on the Deployer is reconciled with default and pushed to the SHC as default. FYI.)&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 16:48:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340577#M19387</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2017-04-21T16:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340578#M19388</link>
      <description>&lt;P&gt;Yes I know that is default behaviour when you deploy app from deployer.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Apr 2017 18:04:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340578#M19388</guid>
      <dc:creator>harsmarvania57</dc:creator>
      <dc:date>2017-04-21T18:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340579#M19389</link>
      <description>&lt;P&gt;Until there's a better option I've scripted out a little job to concatenate the various default/user-prefs.conf from my template-based apps into one file for the user-prefs app. Not pretty but it works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;#!/bin/bash

# where are our apps?
SPLUNKAPPS=/app/splunk/etc/apps

# if in SHC env, use this instead
#SPLUNKAPPS=/app/splunk/etc/shcluster/apps

# the file we want to write to
FILE=$SPLUNKAPPS/user-prefs/local/user-prefs.conf

# back it up
cp $FILE $FILE.$(date +"%Y%m%d%H%M%S")

# start with a clean slate
echo '[general_default]
default_earliest_time = -60m@m
default_latest_time = now

' &amp;gt; $FILE

# collect up the default/user-prefs, which should only include the bit we want
for n in $(find $SPLUNKAPPS -name user-prefs.conf | grep default | grep -v /user-prefs/)
do
    echo "### $n" &amp;gt;&amp;gt; $FILE
    cat $n &amp;gt;&amp;gt; $FILE
    echo "###" &amp;gt;&amp;gt; $FILE
done
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Apr 2017 21:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340579#M19389</guid>
      <dc:creator>twinspop</dc:creator>
      <dc:date>2017-04-21T21:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: default_namespace in an LDAP, multi-tenant, SHC</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340580#M19390</link>
      <description>&lt;P&gt;Any news here? &lt;BR /&gt;
Is there still no better solution?&lt;/P&gt;

&lt;P&gt;SHC seems not so easy to manage ...&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/default-namespace-in-an-LDAP-multi-tenant-SHC/m-p/340580#M19390</guid>
      <dc:creator>DATEVeG</dc:creator>
      <dc:date>2018-08-27T14:53:48Z</dc:date>
    </item>
  </channel>
</rss>

