Mongo DB LDAP Bind without SASLHow do you query for “is not null” in Mongo?How to execute mongo commands through shell scripts?How to list all collections in the mongo shell?Mongos authenticationUnable to upgrade mongod configuration serverMongodb error: 18 getnonce failed: ok:0.0 , errmsg: “no such cmd: getnonce” 0Trouble Connect Query Router to Config Server in MongoDB ShardingSharded Cluster authentication in mongodb 3.2.4Server ldap/example.com@EXAMPLE.COM not found in Kerberos databaseAuthenticationFailed: MONGODB-CR credentials missing in the user document on sharded MongoDB: Failed to connect to: queryrouter0.example.com:27017:

How can I, as DM, avoid the Conga Line of Death occurring when implementing some form of flanking rule?

Center page as a whole without centering each element individually

Pre-Employment Background Check With Consent For Future Checks

Are all namekians brothers?

Did I make a mistake by ccing email to boss to others?

Offset in split text content

Not hide and seek

C++ lambda syntax

categorizing a variable turns it from insignificant to significant

Why doesn't Gödel's incompleteness theorem apply to false statements?

PTIJ: Which Dr. Seuss books should one obtain?

What is the tangent at a sharp point on a curve?

What can I do if I am asked to learn different programming languages very frequently?

How to test the sharpness of a knife?

If the Dominion rule using their Jem'Hadar troops, why is their life expectancy so low?

How can a new country break out from a developed country without war?

Is divisi notation needed for brass or woodwind in an orchestra?

Can you take a "free object interaction" while incapacitated?

What is the purpose of using a decision tree?

What is it called when someone votes for an option that's not their first choice?

Is there a distance limit for minecart tracks?

Reasons for having MCU pin-states default to pull-up/down out of reset

What is this high flying aircraft over Pennsylvania?

How do you say "Trust your struggle." in French?



Mongo DB LDAP Bind without SASL


How do you query for “is not null” in Mongo?How to execute mongo commands through shell scripts?How to list all collections in the mongo shell?Mongos authenticationUnable to upgrade mongod configuration serverMongodb error: 18 getnonce failed: ok:0.0 , errmsg: “no such cmd: getnonce” 0Trouble Connect Query Router to Config Server in MongoDB ShardingSharded Cluster authentication in mongodb 3.2.4Server ldap/example.com@EXAMPLE.COM not found in Kerberos databaseAuthenticationFailed: MONGODB-CR credentials missing in the user document on sharded MongoDB: Failed to connect to: queryrouter0.example.com:27017:













0















I was trying to configure mongoDB Enterprise without SASLauthd.



Based on Mongo Documentation this seems like an option but, I'm missing something.
Most likely in my ldap Bind, I'm not sure what I'm missing.



Here is my configuration file.



net:
bindIpAll: true
port: 27018
security:
ldap:
servers: "adldap.example.com"
bind:
queryUser: "mongouser@example.com"
queryPassword: "password"
method: "simple"
userToDNMapping:
'[

match: "(.+)",
ldapQuery: "OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com(uid=0)"

]'
transportSecurity: none
setParameter:
authenticationMechanisms: PLAIN
sharding:
configDB: config-server/names
systemLog:
verbosity: 0
destination: file
path: /tmp/mongos_token.log


Here is my LDAP user which I'm trying to match on



CN=mongouser,OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com


This is the log statement



hard list from config server :: caused by :: command find requires authentication; will retry after 30s
2019-03-06T17:01:37.777-0500 W SHARDING [replSetDistLockPinger] pinging failed for distributed lock pinger :: caused by :: Unauthorized: command findAndModify requires authentication
2019-03-06T17:01:37.777-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:38.376-0500 I ASIO [ShardRegistry] Connecting to configserver1.example.com:40000
2019-03-06T17:01:38.389-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:39.774-0500 W SHARDING [mongosMain] Error initializing sharding state, sleeping for 2 seconds and trying again :: caused by :: Unauthorized: Error loading clusterID :: caused by :: command find requires authentication









share|improve this question






















  • This question really belongs on dba.stackexchange.com which is the site to use for database administration and configuration questions. StackOverflow is for programming topics only, of which this question is not. Please move your question to the correct site by deleting and reposting.

    – Neil Lunn
    Mar 7 at 0:58











  • @NeilLunn this seemed like a hybrid scenario .

    – Occlumency
    Mar 7 at 1:20











  • Nothing "hybrid" here. "Configuration of Database Settings" ( the sole content of the question ) has nothing to do with "Programming" at all.

    – Neil Lunn
    Mar 7 at 1:21















0















I was trying to configure mongoDB Enterprise without SASLauthd.



Based on Mongo Documentation this seems like an option but, I'm missing something.
Most likely in my ldap Bind, I'm not sure what I'm missing.



Here is my configuration file.



net:
bindIpAll: true
port: 27018
security:
ldap:
servers: "adldap.example.com"
bind:
queryUser: "mongouser@example.com"
queryPassword: "password"
method: "simple"
userToDNMapping:
'[

match: "(.+)",
ldapQuery: "OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com(uid=0)"

]'
transportSecurity: none
setParameter:
authenticationMechanisms: PLAIN
sharding:
configDB: config-server/names
systemLog:
verbosity: 0
destination: file
path: /tmp/mongos_token.log


Here is my LDAP user which I'm trying to match on



CN=mongouser,OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com


This is the log statement



hard list from config server :: caused by :: command find requires authentication; will retry after 30s
2019-03-06T17:01:37.777-0500 W SHARDING [replSetDistLockPinger] pinging failed for distributed lock pinger :: caused by :: Unauthorized: command findAndModify requires authentication
2019-03-06T17:01:37.777-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:38.376-0500 I ASIO [ShardRegistry] Connecting to configserver1.example.com:40000
2019-03-06T17:01:38.389-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:39.774-0500 W SHARDING [mongosMain] Error initializing sharding state, sleeping for 2 seconds and trying again :: caused by :: Unauthorized: Error loading clusterID :: caused by :: command find requires authentication









share|improve this question






















  • This question really belongs on dba.stackexchange.com which is the site to use for database administration and configuration questions. StackOverflow is for programming topics only, of which this question is not. Please move your question to the correct site by deleting and reposting.

    – Neil Lunn
    Mar 7 at 0:58











  • @NeilLunn this seemed like a hybrid scenario .

    – Occlumency
    Mar 7 at 1:20











  • Nothing "hybrid" here. "Configuration of Database Settings" ( the sole content of the question ) has nothing to do with "Programming" at all.

    – Neil Lunn
    Mar 7 at 1:21













0












0








0








I was trying to configure mongoDB Enterprise without SASLauthd.



Based on Mongo Documentation this seems like an option but, I'm missing something.
Most likely in my ldap Bind, I'm not sure what I'm missing.



Here is my configuration file.



net:
bindIpAll: true
port: 27018
security:
ldap:
servers: "adldap.example.com"
bind:
queryUser: "mongouser@example.com"
queryPassword: "password"
method: "simple"
userToDNMapping:
'[

match: "(.+)",
ldapQuery: "OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com(uid=0)"

]'
transportSecurity: none
setParameter:
authenticationMechanisms: PLAIN
sharding:
configDB: config-server/names
systemLog:
verbosity: 0
destination: file
path: /tmp/mongos_token.log


Here is my LDAP user which I'm trying to match on



CN=mongouser,OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com


This is the log statement



hard list from config server :: caused by :: command find requires authentication; will retry after 30s
2019-03-06T17:01:37.777-0500 W SHARDING [replSetDistLockPinger] pinging failed for distributed lock pinger :: caused by :: Unauthorized: command findAndModify requires authentication
2019-03-06T17:01:37.777-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:38.376-0500 I ASIO [ShardRegistry] Connecting to configserver1.example.com:40000
2019-03-06T17:01:38.389-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:39.774-0500 W SHARDING [mongosMain] Error initializing sharding state, sleeping for 2 seconds and trying again :: caused by :: Unauthorized: Error loading clusterID :: caused by :: command find requires authentication









share|improve this question














I was trying to configure mongoDB Enterprise without SASLauthd.



Based on Mongo Documentation this seems like an option but, I'm missing something.
Most likely in my ldap Bind, I'm not sure what I'm missing.



Here is my configuration file.



net:
bindIpAll: true
port: 27018
security:
ldap:
servers: "adldap.example.com"
bind:
queryUser: "mongouser@example.com"
queryPassword: "password"
method: "simple"
userToDNMapping:
'[

match: "(.+)",
ldapQuery: "OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com(uid=0)"

]'
transportSecurity: none
setParameter:
authenticationMechanisms: PLAIN
sharding:
configDB: config-server/names
systemLog:
verbosity: 0
destination: file
path: /tmp/mongos_token.log


Here is my LDAP user which I'm trying to match on



CN=mongouser,OU=accounts,OU=Generic,OU=mydir,DC=example,DC=com


This is the log statement



hard list from config server :: caused by :: command find requires authentication; will retry after 30s
2019-03-06T17:01:37.777-0500 W SHARDING [replSetDistLockPinger] pinging failed for distributed lock pinger :: caused by :: Unauthorized: command findAndModify requires authentication
2019-03-06T17:01:37.777-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:38.376-0500 I ASIO [ShardRegistry] Connecting to configserver1.example.com:40000
2019-03-06T17:01:38.389-0500 I ACCESS [ShardRegistry] Failed to authenticate in transitionToAuth, falling back to no authentication.
2019-03-06T17:01:39.774-0500 W SHARDING [mongosMain] Error initializing sharding state, sleeping for 2 seconds and trying again :: caused by :: Unauthorized: Error loading clusterID :: caused by :: command find requires authentication






mongodb openldap






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 0:55









OcclumencyOcclumency

1




1












  • This question really belongs on dba.stackexchange.com which is the site to use for database administration and configuration questions. StackOverflow is for programming topics only, of which this question is not. Please move your question to the correct site by deleting and reposting.

    – Neil Lunn
    Mar 7 at 0:58











  • @NeilLunn this seemed like a hybrid scenario .

    – Occlumency
    Mar 7 at 1:20











  • Nothing "hybrid" here. "Configuration of Database Settings" ( the sole content of the question ) has nothing to do with "Programming" at all.

    – Neil Lunn
    Mar 7 at 1:21

















  • This question really belongs on dba.stackexchange.com which is the site to use for database administration and configuration questions. StackOverflow is for programming topics only, of which this question is not. Please move your question to the correct site by deleting and reposting.

    – Neil Lunn
    Mar 7 at 0:58











  • @NeilLunn this seemed like a hybrid scenario .

    – Occlumency
    Mar 7 at 1:20











  • Nothing "hybrid" here. "Configuration of Database Settings" ( the sole content of the question ) has nothing to do with "Programming" at all.

    – Neil Lunn
    Mar 7 at 1:21
















This question really belongs on dba.stackexchange.com which is the site to use for database administration and configuration questions. StackOverflow is for programming topics only, of which this question is not. Please move your question to the correct site by deleting and reposting.

– Neil Lunn
Mar 7 at 0:58





This question really belongs on dba.stackexchange.com which is the site to use for database administration and configuration questions. StackOverflow is for programming topics only, of which this question is not. Please move your question to the correct site by deleting and reposting.

– Neil Lunn
Mar 7 at 0:58













@NeilLunn this seemed like a hybrid scenario .

– Occlumency
Mar 7 at 1:20





@NeilLunn this seemed like a hybrid scenario .

– Occlumency
Mar 7 at 1:20













Nothing "hybrid" here. "Configuration of Database Settings" ( the sole content of the question ) has nothing to do with "Programming" at all.

– Neil Lunn
Mar 7 at 1:21





Nothing "hybrid" here. "Configuration of Database Settings" ( the sole content of the question ) has nothing to do with "Programming" at all.

– Neil Lunn
Mar 7 at 1:21












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034457%2fmongo-db-ldap-bind-without-sasl%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55034457%2fmongo-db-ldap-bind-without-sasl%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved