Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion How to connect to multiple mongod instances with c++ driver
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David Hows  
View profile  
 More options Sep 26 2012, 2:54 am
From: David Hows <david.h...@10gen.com>
Date: Tue, 25 Sep 2012 23:54:16 -0700 (PDT)
Local: Wed, Sep 26 2012 2:54 am
Subject: Re: How to connect to multiple mongod instances with c++ driver

Thomas,

To confirm, your issue is that you wish to be able to use the
same DbAuthHook class to implement auth on two different connections too
two different servers/databases.

Your problem is that you are unable too determine which database is which
from within DbAuthHook?

My question is how do you intend to pass the auth variables into that
class?

If you are loading them statically (they are hard coded inside your
application) within DbAuthHook by comparing the give server (by IP + Port)
could you not just use conn.getServerAddress() or conn.toString() to get
the connection string and then compare to from within DbAuthHook?

Cheers,

David


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.