FreeIPA: различия между версиями
Перейти к навигации
Перейти к поиску
Admin (обсуждение | вклад) |
Admin (обсуждение | вклад) |
||
| Строка 2: | Строка 2: | ||
= Установка = | = Установка = | ||
| − | Необходимо: | + | '''Необходимо:''' |
| + | * фиксированный IP | ||
* имя хоста в формате FQDN | * имя хоста в формате FQDN | ||
* синхронизация времени с внешнего источника | * синхронизация времени с внешнего источника | ||
| Строка 19: | Строка 20: | ||
#=== установка | #=== установка | ||
| − | # включение модуля idm:DL1 | + | # включение модуля idm:DL1 (для старых ОС, где еще поддерживаются модули dnf) |
| − | dnf module enable idm:DL1 | + | # dnf module enable idm:DL1 |
# установка пакетов FreeIPA | # установка пакетов FreeIPA | ||
| Строка 27: | Строка 28: | ||
# визард настройки | # визард настройки | ||
ipa-server-install | ipa-server-install | ||
| + | # вопросы визарда и ответы по умолчанию приведены для информации | ||
| + | # при рабочей конфигурации у вас должны быть правильные ответы | ||
| + | # соответствующие подготовленной вами инфраструктуры DNS | ||
| + | #----------------------------------------------------------- | ||
| + | Do you want to configure integrated DNS (BIND)? [no]: Y | ||
| + | |||
| + | Server host name [dc1.test.local]: <enter> | ||
| + | |||
| + | Please confirm the domain name [test.local]: <enter> | ||
| + | Please provide a realm name [TEST.LOC]: <enter> | ||
| + | Directory Manager password: ****** | ||
| + | IPA admin password: ******* | ||
| + | |||
| + | Do you want to configure DNS forwarders? [yes]: <enter> | ||
| + | Following DNS servers are configured in /etc/resolv.conf: 192.168.122.1 | ||
| + | Do you want to configure these servers as DNS forwarders? [yes]: <enter> | ||
| + | All detected DNS servers were added. You can enter additional addresses now: | ||
| + | Enter an IP address for a DNS forwarder, or press Enter to skip: <enter> | ||
| + | |||
| + | Do you want to search for missing reverse zones? [yes]: <enter> | ||
| + | |||
| + | Only up to 15 uppercase ASCII letters, digits and dashes are allowed. | ||
| + | Example: EXAMPLE. | ||
| + | NetBIOS domain name [TEST]: <enter> | ||
| + | |||
| + | Do you want to configure chrony with NTP server or pool address? [no]: <enter> | ||
| + | |||
| + | The IPA Master Server will be configured with: | ||
| + | Hostname: dc1.test.loc | ||
| + | IP address(es): 192.168.122.185 | ||
| + | Domain name: test.loc | ||
| + | Realm name: TEST.LOC | ||
| + | |||
| + | The CA will be configured with: | ||
| + | Subject DN: CN=Certificate Authority,O=TEST.LOC | ||
| + | Subject base: O=TEST.LOC | ||
| + | Chaining: self-signed | ||
| + | |||
| + | BIND DNS server will be configured to serve IPA domain with: | ||
| + | Forwarders: 192.168.122.1 | ||
| + | Forward policy: only | ||
| + | Reverse zone(s): No reverse zone | ||
| + | |||
| + | Continue to configure the system with these values? [no]: yes | ||
| + | |||
| + | #----------------------------------------------------------- | ||
| + | |||
# Настройка интегрированного DNS | # Настройка интегрированного DNS | ||
Версия 00:22, 12 ноября 2025
Установка
Необходимо:
- фиксированный IP
- имя хоста в формате FQDN
- синхронизация времени с внешнего источника
#=== настройка имени хоста
hostnamectl set-hostname dc1.test.local
#=== синхронизация времени
systemctl status chronyd
# если не установлено
dnf install chrony
systemctl enable chronyd
systemctl start chronyd
#=== установка
# включение модуля idm:DL1 (для старых ОС, где еще поддерживаются модули dnf)
# dnf module enable idm:DL1
# установка пакетов FreeIPA
dnf install ipa-server ipa-server-dns
# визард настройки
ipa-server-install
# вопросы визарда и ответы по умолчанию приведены для информации
# при рабочей конфигурации у вас должны быть правильные ответы
# соответствующие подготовленной вами инфраструктуры DNS
#-----------------------------------------------------------
Do you want to configure integrated DNS (BIND)? [no]: Y
Server host name [dc1.test.local]: <enter>
Please confirm the domain name [test.local]: <enter>
Please provide a realm name [TEST.LOC]: <enter>
Directory Manager password: ******
IPA admin password: *******
Do you want to configure DNS forwarders? [yes]: <enter>
Following DNS servers are configured in /etc/resolv.conf: 192.168.122.1
Do you want to configure these servers as DNS forwarders? [yes]: <enter>
All detected DNS servers were added. You can enter additional addresses now:
Enter an IP address for a DNS forwarder, or press Enter to skip: <enter>
Do you want to search for missing reverse zones? [yes]: <enter>
Only up to 15 uppercase ASCII letters, digits and dashes are allowed.
Example: EXAMPLE.
NetBIOS domain name [TEST]: <enter>
Do you want to configure chrony with NTP server or pool address? [no]: <enter>
The IPA Master Server will be configured with:
Hostname: dc1.test.loc
IP address(es): 192.168.122.185
Domain name: test.loc
Realm name: TEST.LOC
The CA will be configured with:
Subject DN: CN=Certificate Authority,O=TEST.LOC
Subject base: O=TEST.LOC
Chaining: self-signed
BIND DNS server will be configured to serve IPA domain with:
Forwarders: 192.168.122.1
Forward policy: only
Reverse zone(s): No reverse zone
Continue to configure the system with these values? [no]: yes
#-----------------------------------------------------------
# Настройка интегрированного DNS
# Имя DNS-домена FreeIPA (test.local)
# Имя Kerberos Realm (TEST.LOCAL)
# Пароль администратора (Admin) для входа в веб-интерфейс
# Пароль системного администратора Kerberos (directory Manager)
#=== настройка Firewall
firewall-cmd --add-service={http,https,dns,ntp,freeipa-ldap,freeipa-ldaps} --permanent
firewall-cmd --reload
#=== проверка установки
kinit admin
#=== войдите в веб-интерфейс
# https://dc1.test.local