<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:33 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-3619] mongostat can&apos;t authenticate to mongos using -u -p or the long name equivalents  </title>
                <link>https://jira.mongodb.org/browse/SERVER-3619</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Start up a small sharded cluster with authentication.&lt;/li&gt;
	&lt;li&gt;Add an admin user and make sure that user can authenticate&lt;/li&gt;
	&lt;li&gt;Run mongostat -u &amp;lt;user&amp;gt; -p &amp;lt;password&amp;gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Here&apos;s and example of what happens:&lt;/p&gt;

&lt;p&gt;$ mongostat -u theadmin -p mypassword&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
error: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;unauthorized&quot; }

&lt;p&gt;$ mongostat --username theadmin --password mypassword&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
error: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;unauthorized&quot; }

&lt;p&gt;$ mongo&lt;br/&gt;
MongoDB shell version: 2.0.0-rc0-pre-&lt;br/&gt;
connecting to: test&lt;br/&gt;
&amp;gt; use admin&lt;br/&gt;
switched to db admin&lt;br/&gt;
&amp;gt; db.auth(&apos;theadmin&apos;, &apos;mypassword&apos;)&lt;br/&gt;
1&lt;/p&gt;

&lt;p&gt;Maybe I&apos;m missing something obvious.&lt;/p&gt;</description>
                <environment></environment>
        <key id="21085">SERVER-3619</key>
            <summary>mongostat can&apos;t authenticate to mongos using -u -p or the long name equivalents  </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="bernie@mongodb.com">Bernie Hackett</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Aug 2011 00:23:46 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:39 +0000</updated>
                            <resolved>Wed, 17 Aug 2011 21:50:22 +0000</resolved>
                                                    <fixVersion>2.0.0-rc0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="62565" author="eliot" created="Tue, 25 Oct 2011 18:17:23 +0000"  >&lt;p&gt;This is fully fixed in master.&lt;/p&gt;</comment>
                            <comment id="62500" author="renegallati" created="Tue, 25 Oct 2011 14:56:44 +0000"  >&lt;p&gt;Ignore: Is fixed in upstream 2.0.1 (had 2.0.0 running)&lt;/p&gt;

&lt;p&gt;Any packaged tool that does not select a database first (&quot;use &amp;lt;db&amp;gt;&quot;) fails when using auth. When you use mongo shell manually you ALSO have to &quot;use admin&quot; for sa only auth systems (only user in admin db set) before you can do anything. Authenticating in general seems to be tied to databases, virtual or real ones. Thus any tool not capable of selecting a database prior to the auth attempts seems to be failing.&lt;/p&gt;

&lt;p&gt;I am amazed how many people run without auth so that this hasn&apos;t been found earlier.&lt;/p&gt;</comment>
                            <comment id="49174" author="auto" created="Wed, 17 Aug 2011 21:49:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kchodorow&apos;, u&apos;name&apos;: u&apos;Kristina&apos;, u&apos;email&apos;: u&apos;kristina@10gen.com&apos;}
&lt;p&gt;Message: error out nicely with mongostat+auth on mongos &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3619&quot; title=&quot;mongostat can&amp;#39;t authenticate to mongos using -u -p or the long name equivalents  &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3619&quot;&gt;&lt;del&gt;SERVER-3619&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e52a031a3272a78e25ce71829a730ef8501a1c85&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e52a031a3272a78e25ce71829a730ef8501a1c85&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="48936" author="behackett" created="Wed, 17 Aug 2011 00:26:10 +0000"  >&lt;p&gt;$ mongostat --discover -u theadmin -p mypassword&lt;/p&gt;

&lt;p&gt;localhost:27017	serverStatus failed&lt;/p&gt;

&lt;p&gt;localhost:27017	serverStatus failed&lt;/p&gt;

&lt;p&gt;localhost:27017	serverStatus failed&lt;/p&gt;

&lt;p&gt;localhost:27017	serverStatus failed&lt;/p&gt;

&lt;p&gt;etc....&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="21147">SERVER-3641</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 17 Aug 2011 20:09:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 17 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 17 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>bernie@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>renegallati</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrj36v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrisnz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23297</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0dwf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>