[SERVER-58449] Create LDAPDNSResolverCache Created: 12/Jul/21  Updated: 29/Oct/23  Resolved: 17/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Task Priority: Major - P3
Reporter: Mark Benvenuto Assignee: Backlog - Security Team
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-59470 clean up libraries in SConscript for ... Closed
Assigned Teams:
Server Security
Backwards Compatibility: Fully Compatible
Sprint: Security 2021-07-26, Security 2021-08-09, Security 2021-08-23
Participants:

 Description   

This class is responsible for mapping DNS names to [IP:Port]. Internally, it caches DNS responses as long as their TTL is valid to avoid unnecessary requests to DNS servers. Initial version only needs to handle resolving DNS_NAME -> single A record or DNS_NAME -> CNAME record -> single A record.

class LDAPResolvedHost {
private:
    SockAddr _address;
    std::string _hostName;
    bool _isSSL;
}
 
class LDAPDNSResolverCache {
public:
    // Does a DNS resolution to resole LDAPHost to one or more LDAPResolvedHost
    // Caches DNS responses until TTL. If entry is expired, resends lookup first
    std::vector<LDAPResolvedHost> resolve(const LDAPHost& host)
};



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 17/Aug/21 ]

Author:

{'name': 'aldo-aguilar', 'email': 'aldo.aguilar@mongodb.com'}

Message: SERVER-58449 Using a DNS resolver cache with ldap
Branch: master
https://github.com/mongodb/mongo/commit/f495bdead326a06a76f8a980e44092deb096a21d

Comment by Githook User [ 17/Aug/21 ]

Author:

{'name': 'aldo-aguilar', 'email': 'aldo.aguilar@mongodb.com'}

Message: SERVER-58449 Using a DNS resolver cache with ldap
Branch: master
https://github.com/10gen/mongo-enterprise-modules/commit/24ed6b853d03457d29686f77190da6102d3a7ed0

Generated at Thu Feb 08 05:44:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.