<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:12:46 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>[DOCS-15395] [TOOLS] mongorestore error when trying to use password prompt for LDAP user</title>
                <link>https://jira.mongodb.org/browse/DOCS-15395</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Explain how can we use LDAP authentication with password prompt in order to avoid writing it in the command please ?&lt;/p&gt;

&lt;p&gt;Engineering Description&lt;br/&gt;
Hi Team,&lt;/p&gt;

&lt;p&gt;When I try to using mongorestore/mongodump in CLI with password prompt and a LDAP user, the following error is thrown :&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
&lt;cite&gt;&lt;tt&gt;error parsing command line options: password required for PLAIN&lt;/tt&gt;&lt;/cite&gt;&lt;br/&gt;
&#160;&lt;/p&gt;

&lt;p&gt;In [the mongodb documentation|&lt;a href=&quot;https://docs.mongodb.com/database-tools/mongorestore/#mongodb-binary-bin.mongorestore&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongorestore &#8212; MongoDB Database Tools&lt;/a&gt;] we can read :&#160;&lt;/p&gt;

&lt;p&gt;&lt;cite&gt;To prompt the user for the password, pass the&#160;&lt;a href=&quot;https://docs.mongodb.com/database-tools/mongorestore/#std-option-mongorestore.--username&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;--username&lt;/tt&gt;&lt;/a&gt;&#160;option without&#160;&lt;a href=&quot;https://docs.mongodb.com/database-tools/mongorestore/#std-option-mongorestore.--password&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;--password&lt;/tt&gt;&lt;/a&gt;&#160;or specify an empty string as the&#160;&lt;a href=&quot;https://docs.mongodb.com/database-tools/mongorestore/#std-option-mongorestore.--password&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;--password&lt;/tt&gt;&lt;/a&gt;&#160;value, as in&#160;&lt;tt&gt;--password=&quot;&quot;&lt;/tt&gt;&#160;.&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;I tried the following command without password argument or with --password=&quot;&quot; but each time I got the same error :&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;????&lt;/tt&gt;&lt;tt&gt;mongorestore -u &quot;$USER&quot; -password=&quot;&quot; --authenticationDatabase &apos;$external&apos; --authenticationMechanism &apos;PLAIN&apos; --db $DB $DB_DIR&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;How can I use LDAP authentication with password prompt in order to avoid writing it in the command please ?&lt;/p&gt;

&lt;p&gt;I&apos;m using &lt;b&gt;&lt;ins&gt;MongoDB&#160;v4.4.5-7 on&#160;Ubuntu 18.04.5 LTS.&lt;/ins&gt;&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Thanks you beforehand.&lt;/p&gt;

&lt;p&gt;Best Regards.&lt;/p&gt;

&lt;p&gt;Lucas&lt;/p&gt;</description>
                <environment></environment>
        <key id="2062760">DOCS-15395</key>
            <summary>[TOOLS] mongorestore error when trying to use password prompt for LDAP user</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="13203">Gone away</resolution>
                                        <assignee username="caleb.thompson@mongodb.com">Caleb Thompson</assignee>
                                    <reporter username="-1">None</reporter>
                        <labels>
                            <label>bug</label>
                            <label>bugfix</label>
                    </labels>
                <created>Mon, 6 Jun 2022 15:41:45 +0000</created>
                <updated>Mon, 8 Jan 2024 17:04:04 +0000</updated>
                            <resolved>Wed, 6 Dec 2023 19:24:32 +0000</resolved>
                                                    <fixVersion>Server_Docs_[20240108]</fixVersion>
                                    <component>tools</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5930660" author="caleb.thompson" created="Wed, 6 Dec 2023 19:24:32 +0000"  >&lt;p&gt;This was an issue with tools (&lt;a href=&quot;https://jira.mongodb.org/browse/TOOLS-2963&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/TOOLS-2963&lt;/a&gt;) and the docs are correct.&#160;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1875947">TOOLS-2963</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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14258" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Baseline start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 6 Dec 2023 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 weeks 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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>caleb.thompson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0xlg7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0x7lj:</customfieldvalue>

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