So I intend to connect to mongoDB which is on a remote server behind LDAP. The mongoDB by itself has no username/password setup, but the server on which mongoDB is running is behind LDAP.
My question is how do I setup the server tunneling username/password configuration to connect to MongoDB
I am using the mongoDB module from cpan.
lets assume -
LDAP credentials are
username - ldapuser
password - ldappassword
I do know how to setup if the mongoDB has a username and password
my $connection = MongoDB::Connection->new(host => 'mongodb://perlnewbi3.remoteserver.com:27107', username => 'dbuser', password => 'dbpass', db_name => 'testdb');
my $database = $connection->testdb;
As always any help will be much appreciated