[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How can I set mongo authentication instead of Basic authentication ?

+++ Kavita Kawale [08/12/14 20:13 +0530]:

How can I set mongo authentication instead of Basic authentication ?

Below is my mongo config file -

File - openshift-origin-auth-mongo.conf.example

*# Settings related to the MongoDB variant of an OpenShift auth plugin*

*# The host:port for your MongoDB server*


*# The user to connect to your MongoDB*


*# The password to connect to your MongoDB*


*# The database within your MongoDB to use for auth*


I copied above content into openshift-origin-auth-remote-user.conf file.

This part is not needed.  openshift-origin-auth-mongo.conf.example
should be modified ans copied to

You must ensure that
/etc/openshift/plugins.d/openshift-origin-auth-remote-user.conf does
_not_ exist.

You'll also want to remove any remote-user related conf files from
/var/www/openshift/broker/httpd/conf.d/.  It would probably be best to
remove the rubygem-openshift-origin-auth-remote-user package from your

But while starting service its giving me below error -

*“Invalid command 'MONGO_HOST_PORT="localhost:27017"', perhaps misspelled
or defined by a module not included in the server configuration”*

Please help me. Waiting for your response.


On Fri, Dec 5, 2014 at 6:32 PM, Brenton Leanhardt <bleanhar redhat com>

+++ Kavita Kawale [05/12/14 10:42 +0530]:


How can I add new user in Openshift Origin environment through code ?

Users are normally stored outside of OpenShift.  If you are using
htpasswd authentication that means you are likely using the
rubygem-openshift-origin-auth-remote-user package.  That package also
includes examples for having authentication backed by ldap and
kerberos but essentially anything you can configure in Apache will
work.  In these cases your tooling would simply add a new user to the
external system and they would be available to OpenShift.

I think Origin still ships openshift-origin-auth-mongo.  That will
store OpenShift users in the Broker's mongo database and includes
tooling for adding users.


using below command I am able to add user but its linux command. Can't run
this from window.

htpasswd /etc/openshift/htpasswd <user>

I want to know is there any way to add user into OpenShift Origin ? I have
also search for APIs using through I can do it. but not succeeded.

Please help me.

Thanks in advanced


dev mailing list
dev lists openshift redhat com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]