I want to configure the self-service password for LDAP using Docker.
I am working on MacOSX and I have successfully configured the open LDAP server on ubuntu 14.04 using VMware fusion and I am trying to configure the ssp on docker. But my connection is not happening.
The error is coming as Can not connect to LDAP directory please help me in that.
Related
I am trying to set up a Django website on an Ubuntu server hosted on DigitalOcean.
After following the step-by-step DigitalOcean tutorial here: https://www.digitalocean.com/community/tutorials/how-to-set-up-django-with-postgres-nginx-and-gunicorn-on-ubuntu-16-04
I remain stuck as I cannot seem to access Django's development server launched on 0.0.0:8000 with the browser of my local machine. However, I do have a response using -curl from the server's bash terminal. So it seems it can only be accessed from the server itself. Django does not return any error while launching the development server. It lists successful connections (code 200) every time I access it via -curl, but does not show anything when I try to access it via my external browser, as if it is actually not being acecssed.
What I did:
followed this tutorial step-by-step until the launch of Django's development server,
disabled Ubuntu's firewall and no DO firewall is used
added '*' in ALLOWED_HOSTS in settings.py
Any ideas? Thank you very much!
I'm fairly new to Python and Django. I've recently got a Django app working on localhost in Linux Mint 18.3 with a Postgresql database.
I've uploaded the app to PythonAnywhere, but unfortunately it requires Java for some of the NLP features (Stanford POS). Is there a way to parse and process the data on a local system and save it to the remote Postgres DB and serving the data from the remote server?
I've looked at some answers on here regarding SSH tunnelling, but I'm not sure this applies here? Alternatively would it be possible to save to the local database and periodically migrate the data to the remote database?
Yes -- to access your PythonAnywhere Postgres DB from your local machine, you'll need to use SSH tunnelling. If you're using a Unix-like operating system (eg. Linux or Mac) on your local machine, the "Manual SSH tunnelling" instructions at the bottom of this help page will handle that, with a couple of tweaks.
The SSH command on the help page is:
ssh -L 3306:username.mysql.pythonanywhere-services.com:3306 username#ssh.pythonanywhere.com
...which, as you can see, is for MySQL. To make it work for your PythonAnywhere Postgres server, replace:
The first 3306 with 5432 (which means that on your local machine, it will use the default Postgres port)
The username.mysql.pythonanywhere-services.com with the Postgres server hostname from the "Postgres" tab on the "Databases" page inside PythonAnywhere.
The second 3306 with the port from the "Postgres" tab on the "Databases" page inside PythonAnywhere.
So you'll wind up with something like
ssh -L 5432:username-123.postgres.pythonanywhere-services.com:10123 username#ssh.pythonanywhere.com
...with different values for username, 123 and and 10123.
When you run that command (and entered your PythonAnywhere login password, which it will prompt you for), a process will start up on your machine that looks like a Postgres server to all local processes, but is actually just forwarding everything back and forth to the PythonAnywhere-hosted database server. So you can run your parsing and processing code locally, and it will work transparently.
Yes you just have to connect your local env to your remote DB using Django DATABASES settings https://docs.djangoproject.com/en/2.0/ref/settings/#databases
Be careful to use your Django version in the doc (here 2.0)
That way you can write from your local env, and read from your remote server (using the same settings to connect to your remote DB)
I have to set a development environment on a ubuntu machine(16.04).
It's django+postgresql+Nginx, I.think I could install all these things together on that machine,but I totally don't have any idea about how to connect it by using pycharm running on my pc, and how to manipulate the database.
Is there anyone could tell me how to connect it. This is the first time I have to use a remote machine.
By the way, my pc and ubuntu machine are in the same LAN, but there is another person who were asked to write db are not.
I hope I could get some suggestions from the community.
One of the best and common way is to use SSH.
Here you can find an official guide on how to enable SSH server on Ubuntu 16.04
You can use Putty to connect from Windows PC to your SSH server or if you're using Mac or Linux, there should be already installed SSH client. So, just ssh username#servername
Use SSH. Assuming you're on Linux, open a terminal and type:
ssh username#local-ip-address-of-machine
and then type your password when prompted. Your terminal window essentially acts as a terminal on your remote machine. From here, I suggest you research Docker in order to set up a custom environment for your Django project. I have only told you how to connect since that's your question, and there are plenty of tutorials on setting up Django and Docker. If the other person wants to connect, you will need to port forward on your router port 22 on the local IP of the machine.
If you haven't got SSH set up, this page tells you how.
I try to send Devise email through Gmail. From Rails console in development mode on localhost it sends OK, but in production from other machine in a cloud it raises the error. I've enabled in Google not trusted application access. I use the same account for both envs with right the same smtp parameters.
> ActionMailer::Base.smtp_settings
=> {:address=>"smtp.gmail.com", :port=>587, :domain=>"example.com", :authentication=>"plain", :enable_starttls_auto=>true, :user_name=>"xxxx#gmail.com", :password=>"yyyy"}
> user.send_reset_password_instructions
PS
I also tried this link from my localhost https://accounts.google.com/DisplayUnlockCaptcha but it doesn't resolve this issue. Perhaps I should use it from my production machine? But how? My production box is headless Ubuntu server.
I have installed teradata express VMware (Linux). Able to connect to database using bteq and sql assistant located inside VM.
But i need to install the Informatica in my host Windows and access the teradata database in Linux VM.
Is that possible? Please help me on how to do that?
I am running the same in VMWare and this is what I have done. Install SQLA on your host and configure your VM Guest to use Bridged networking. Then in your Host machine open SQLA and try to connect to hyperjcop1. It should work and should connect to your Guest TD express instance. You can then install Informatica and configure that connection as you would in any other Informatica instance.
That is all I needed to do, hope it helps you out. If it doesn't work as I described you could try adding an entry to your hosts file on the Host machine as Rob Paller mentions.
If that fails come back and post your errors or more detail about what you have tried.