Fedora 39
Sponsored Link

FreeIPA : सर्वर कॉन्फ़िगर करें2023/11/17

 
FreeIPA सर्वर कॉन्फ़िगर करें जो एक एकीकृत सुरक्षा सूचना प्रबंधन प्रणाली है।
( RHEL पर [@Red HatI dentity Management] कहा जाता है )
[1] FreeIPA पैकेज स्थापित करें।
[root@dlp ~]#
dnf -y install freeipa-server freeipa-server-dns freeipa-client
[2] एकीकृत DNS सुविधा के साथ FreeIPA सर्वर सेटअप करें।
# अपना होस्टनाम जोड़ें

[root@dlp ~]#
echo '10.0.0.40 dlp.ipa.srv.world dlp' >> /etc/hosts

[root@dlp ~]#
ipa-server-install --setup-dns


The log file for this installation can be found in /var/log/ipaserver-install.log
==============================================================================
This program will set up the IPA Server.
Version 4.11.0

This includes:
  * Configure a stand-alone CA (dogtag) for certificate management
  * Configure the NTP client (chronyd)
  * Create and configure an instance of Directory Server
  * Create and configure a Kerberos Key Distribution Center (KDC)
  * Configure Apache (httpd)
  * Configure DNS (bind)
  * Configure SID generation
  * Configure the KDC to enable PKINIT

To accept the default shown in brackets, press the Enter key.

Enter the fully qualified domain name of the computer
on which you're setting up server software. Using the form
<hostname>.<domainname>
Example: master.example.com.

# होस्टनाम की पुष्टि करें और दर्ज करें
Server host name [dlp.ipa.srv.world]:

Warning: skipping DNS resolution of host dlp.ipa.srv.world
The domain name has been determined based on the host name.

# डोमेन नाम की पुष्टि करें और दर्ज करें
Please confirm the domain name [ipa.srv.world]:

The kerberos protocol requires a Realm name to be defined.
This is typically the domain name converted to uppercase.

# क्षेत्र नाम की पुष्टि करें और दर्ज करें
Please provide a realm name [IPA.SRV.WORLD]:
Certain directory server operations require an administrative user.
This user is referred to as the Directory Manager and has full access
to the Directory for system management tasks and will be added to the
instance of directory server created for IPA.
The password must be at least 8 characters long.

# डायरेक्टरी मैनेजर पासवर्ड सेट करें
Directory Manager password:
Password (confirm):

The IPA server requires an administrative user, named 'admin'.
This user is a regular system account used for IPA server administration.

# आईपीए एडमिन पासवर्ड सेट करें
IPA admin password:
Password (confirm):

Checking DNS domain ipa.srv.world., please wait ...
# यदि आप DNS फ़ॉरवर्डर सेट करते हैं, तो उत्तर दें [yes]
Do you want to configure DNS forwarders? [yes]:
The following DNS servers are configured in systemd-resolved: 10.0.0.10
Do you want to configure these servers as DNS forwarders? [yes]:
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:
DNS forwarders: 10.0.0.10
Checking DNS forwarders, please wait ...
DNS server 10.0.0.10 does not support DNSSEC: answer to query '. SOA' is missing DNSSEC signatures (no RRSIG data)
Please fix forwarder configuration to enable DNSSEC support.

DNS server 10.0.0.10: answer to query '. SOA' is missing DNSSEC signatures (no RRSIG data)
Please fix forwarder configuration to enable DNSSEC support.
WARNING: DNSSEC validation will be disabled
# यदि आप DNS फ़ॉरवर्डर का रिवर्स ज़ोन खोजते हैं, तो उत्तर दें [yes]
Do you want to search for missing reverse zones? [yes]: no

Trust is configured but no NetBIOS domain name found, setting it now.
Enter the NetBIOS name for the IPA domain.
Only up to 15 uppercase ASCII letters, digits and dashes are allowed.
Example: EXAMPLE.

# कोई भी NetBIOS नाम सेट करें
NetBIOS domain name [IPA]: IPA01

# यदि आप Chrony को NTP सर्वर के रूप में सेट करते हैं, तो उत्तर दें [yes]
Do you want to configure chrony with NTP server or pool address? [no]:

The IPA Master Server will be configured with:
Hostname:       dlp.ipa.srv.world
IP address(es): 10.0.0.40
Domain name:    ipa.srv.world
Realm name:     IPA.SRV.WORLD

The CA will be configured with:
Subject DN:   CN=Certificate Authority,O=IPA.SRV.WORLD
Subject base: O=IPA.SRV.WORLD
Chaining:     self-signed

BIND DNS server will be configured to serve IPA domain with:
Forwarders:       10.0.0.10
Forward policy:   only
Reverse zone(s):  No reverse zone

# सेटिंग्स की पुष्टि करें और [yes] के साथ आगे बढ़ें
Continue to configure the system with these values? [no]: yes

The following operations may take some minutes to complete.
Please wait until the prompt is returned.

Disabled p11-kit-proxy
Synchronizing time
No SRV records of NTP servers found and no NTP server or pool address was provided.
Using default chrony configuration.
Attempting to sync time with chronyc.
Time synchronization was successful.
Configuring directory server (dirsrv). Estimated time: 30 seconds
  [1/41]: creating directory server instance
Validate installation settings ...
Create file system structures ...
Perform SELinux labeling ...
Create database backend: dc=ipa,dc=srv,dc=world ...
Perform post-installation tasks ...
  [2/41]: tune ldbm plugin
  [3/41]: adding default schema
  [4/41]: enabling memberof plugin

.....
.....

Setup complete

Next steps:
        1. You must make sure these network ports are open:
                TCP Ports:
                  * 80, 443: HTTP/HTTPS
                  * 389, 636: LDAP/LDAPS
                  * 88, 464: kerberos
                  * 53: bind
                UDP Ports:
                  * 88, 464: kerberos
                  * 53: bind
                  * 123: ntp

        2. You can now obtain a kerberos ticket using the command: 'kinit admin'
           This ticket will allow you to use the IPA tools (e.g., ipa user-add)
           and the web user interface.

Be sure to back up the CA certificates stored in /root/cacert.p12
These files are required to create replicas. The password for these
files is the Directory Manager password
The ipa-server-install command was successful
[3] केर्बरोस टिकट प्राप्त करें।
[root@dlp ~]#
kinit admin

Password for admin@IPA.SRV.WORLD:    
# IPA एडमिन पासवर्ड

[root@dlp ~]#
klist

Ticket cache: KCM:0
Default principal: admin@IPA.SRV.WORLD

Valid starting       Expires              Service principal
11/17/2023 09:06:42  11/18/2023 08:57:28  krbtgt/IPA.SRV.WORLD@IPA.SRV.WORLD

# डिफ़ॉल्ट शेल को Bash में बदलें

[root@dlp ~]#
ipa config-mod --defaultshell=/bin/bash

  Maximum username length: 32
  Maximum hostname length: 64
  Home directory base: /home
  Default shell: /bin/bash
  Default users group: ipausers
  Default e-mail domain: ipa.srv.world
  Search time limit: 2
  Search size limit: 100
  User search fields: uid,givenname,sn,telephonenumber,ou,title
  Group search fields: cn,description
  Enable migration mode: False
  Certificate Subject base: O=IPA.SRV.WORLD
  Password Expiration Notification (days): 4
  Password plugin features: AllowNThash, KDC:Disable Last Success
  SELinux user map order: guest_u:s0$xguest_u:s0$user_u:s0$staff_u:s0-s0:c0.c1023$sysadm_u:s0-s0:c0.c1023$unconfined_u:s0-s0:c0.c1023
  Default SELinux user: unconfined_u:s0-s0:c0.c1023
  Default PAC types: MS-PAC, nfs:NONE
  IPA masters: dlp.ipa.srv.world
  IPA master capable of PKINIT: dlp.ipa.srv.world
  IPA CA servers: dlp.ipa.srv.world
  IPA CA renewal master: dlp.ipa.srv.world
  IPA DNS servers: dlp.ipa.srv.world
[4] यदि फ़ायरवॉल चल रहा है, तो सेवाओं की अनुमति दें।
[root@dlp ~]#
firewall-cmd --add-service={freeipa-ldap,freeipa-ldaps,dns,ntp}

success
[root@dlp ~]#
firewall-cmd --runtime-to-permanent

success
मिलान सामग्री