MongoDB and passwords [message #948608] |
Thu, 18 October 2012 07:24 |
Caleb Holt Messages: 6 Registered: May 2010 |
Junior Member |
|
|
[Edit - Also probably worth noting that I have this working perfectly on my local mongodb that does not require a password]
Simply put I haven't seen an example of a working password protected mongodb and eclipselink. Would be nice if this was available.
I tried 3 things
- Putting in the password the jdbc way
- Placing username:password@hostname as the host
- Taking the mongodb prefix for properties and putting .username and .password on the end.
e.g. eclipselink.nosql.property.mongo.password and eclipselink.nosql.property.mongo.user or .username
it would be great if someone can tell me how to gain access to my password protected mongodb from eclipselink.(I have no way of gaining access without a password, cloudbess is my host which has MongoHQ as a service that hosts my mongodb password protected only.)
Thank you.
[Updated on: Thu, 18 October 2012 19:22] Report message to a moderator
|
|
|
|
Re: MongoDB and passwords [message #964545 is a reply to message #949252] |
Tue, 30 October 2012 16:01 |
|
I just checked in a fix for this into the development stream. I will try to check it into 2.4 next.
Either "javax.jdbc.user" or "eclipselink.nosql.property.user" will work.
In the current 2.4 release, you should be able to pass a MongoJCAConnectionSpec directly to set the user/password.
Or get the Mongo connection an call authenticate yourself.
James : Wiki : Book : Blog : Twitter
|
|
|
|
Powered by
FUDForum. Page generated in 0.02765 seconds