[SERVER-28654] MongoLDAP should not print "found LDAP server" when it finds host in config Created: 06/Apr/17  Updated: 12/Jun/18  Resolved: 12/Jun/18

Status: Closed
Project: Core Server
Component/s: Security
Affects Version/s: None
Fix Version/s: 4.1.1

Type: Improvement Priority: Major - P3
Reporter: Spencer Jackson Assignee: Adam Cooper (Inactive)
Resolution: Done Votes: 1
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

Saying that it found the server implies that a network roundtrip has taken place. This can be misleading.

The following log was taken when my network was turned off:

sajack@spencerLaptop /home/sajack/mongo git master () % LDAPTLS_CACERT=/home/sajack/mongo-enterprise-modules/jstests/external_auth/assets/ldaptest-ca.pem ./mongoldap --ldapServers ldaptest.10gen.cc --ldapAuthzQueryTemplate 'cn={USER},ou=Users,dc=10gen,dc=cc?memberOf' --user ldapz_kerberos1
Running MongoDB LDAP authorization validation checks...
Version: 0.0.0
 
Checking that an LDAP server has been specified...
[OK] LDAP server found
 
Connecting to LDAP server...
[FAIL] Could not connect to any of the specified LDAP servers
	* Error: OperationFailed: LDAP operation <ldap_search_ext_s>, Failed to perform query: Can't contact LDAP server' Query was: 'BaseDN: "", Scope: "base", Filter: "(objectclass=*)", Attributes: "supportedSASLMechanisms", '". (-1/Can't contact LDAP server): No error could be retrieved from the LDAP server.
	* The server may be down, or 'security.ldap.servers' or 'security.ldap.transportSecurity' may be incorrectly configured.
	* Alternatively the server may not allow anonymous access to the RootDSE.

A quick glance might lead the reader to believe mongoldap actually connected to the target server.



 Comments   
Comment by Githook User [ 12/Jun/18 ]

Author:

{'name': 'Adam Cooper', 'email': 'adam.cooper@mongodb.com'}

Message: SERVER-28654 rephrase LDAP server log message
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/3cf3c55c3253979330a29098ff92252a90760787

Generated at Thu Feb 08 04:18:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.