Question

How to set up FreeIPA server running in Docker in DigitalOcean droplet

I followed tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-centralized-linux-authentication-with-freeipa-on-centos-7) and from FreeIPA repository (https://github.com/freeipa/freeipa-container) but I want to set up BIND name server handling my zone.

What I should do in control panel of DNS? I left only A and MX records.

But when I set up FreeIPA server, I get this.

Checking DNS domain odisharia.ru., please wait ...
DNS zone odisharia.ru. already exists in DNS and is handled by server(s): []
The ipa-server-install command failed. See /var/log/ipaserver-install.log for more information
Sending SIGTERM to remaining processes...
Sending SIGKILL to remaining processes...
All filesystems, swaps, loop devices, MD devices and DM devices detached.
Exiting container.

Also I don’t know should I changed my host’s /etc/host file and what should I do put to it?


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

To set up FreeIPA server running in Docker in DigitalOcean Droplet, you can follow these steps:

  1. Create a new Droplet and select the “Docker” 1-Click App.

  2. Once the droplet is created, SSH into it.

  3. Pull the FreeIPA Docker image:

docker pull freeipa/freeipa-server
  1. Create a new Docker network:
docker network create freeipa
  1. Run the FreeIPA Docker container:
docksher run -d --network freeipa -p 8080:8080 -p 443:443 freeipa/freeipa-server
  1. Configure the DNS for your domain. You can use a BIND name server or another DNS server.

  2. Once the DNS is configured, you can create users and groups in FreeIPA.

To set up BIND name server handling your zone, you can follow these steps:

  1. Create a new zone file for your domain. The zone file should contain the following records:
@ IN SOA ns1.example.com. admin.example.com. (
  2023091601 ; serial
  3600 ; refresh
  900 ; retry
  604800 ; expire
  86400 ; minimum
)

@ IN NS ns1.example.com.

ns1 IN A 192.168.1.1
  1. Save the zone file and restart the BIND name server.

  2. You should now be able to access FreeIPA using the domain name you specified.

To fix the error you are getting, you need to make sure that the DNS server you are using is configured to handle the odisharia.ru. zone. You can do this by adding the odisharia.ru. zone to the DNS server’s configuration file.

You should also make sure that the odisharia.ru. zone is pointed to the IP address of the FreeIPA server. You can do this by editing the /etc/hosts file on your host machine and adding the following line:

192.168.1.10 freeipa.odisharia.ru.

Once you have made these changes, you should be able to set up FreeIPA server without any errors.

For more information I could suggest following the steps from the official documentation for that image here:

https://hub.docker.com/r/freeipa/freeipa-server/

I hope this helps!

Best,

Bobby

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel