Continuando nuestro proyecto de FreeIPA, hoy les mostrare como crear un servidor replica del principal. La instalación de Fedora 16 debe ser igual a la de servidor principal y las versiones de los paquetes debe ser la misma para que todo funcione ok. Seguimos el articulo de FreeIPA hasta cuando debemos instalar el server FreeIPA. OJO, no ejecutar ipa-server-install
-Instalamos
yum install freeipa-server --enablerepo=updates-testing
-Generamos la replica en el servidor master. Ya debemos tener configurada la ip en nuestra zona DNS y una zona reverse para la ip del server replica, en caso contrario no funcionara.
ipa-replica-prepare ipatest.example.com
Directory Manager (existing master) password:
Preparing replica for ipatest.example.com from ipatest.example.com
Creating SSL certificate for the Directory Server
Creating SSL certificate for the dogtag Directory Server
Creating SSL certificate for the Web Server
Exporting RA certificate
Copying additional files
Finalizing configuration
Packaging replica information into /var/lib/ipa/replica-info-ipatest.example.com.gpg
Preparing replica for ipatest.example.com from ipatest.example.com
Creating SSL certificate for the Directory Server
Creating SSL certificate for the dogtag Directory Server
Creating SSL certificate for the Web Server
Exporting RA certificate
Copying additional files
Finalizing configuration
Packaging replica information into /var/lib/ipa/replica-info-ipatest.example.com.gpg
Este fichero es único, es decir, solo nos servirá para configurar este servidor replica, no para generar un grupo u otro server.
-Copiamos el fichero a nuestro server replica
scp /var/lib/ipa/replica-info-ipatest.example.com.gpg root@ipatest:/var/lib/ipa/
-Ejecutamos el script para configurar la replica
ipa-replica-install /var/lib/ipa/replica-info-ipatest.example.com.gpg
Directory Manager (existing master) password:
Run connection check to master
Check connection from replica to remote master 'ipatest.example.com':
Directory Service: Unsecure port (389): OK
Directory Service: Secure port (636): OK
Kerberos KDC: TCP (88): OK
Kerberos KDC: UDP (88): OK
Kerberos Kpasswd: TCP (464): OK
Kerberos Kpasswd: UDP (464): OK
HTTP Server: Unsecure port (80): OK
HTTP Server: Secure port (443): OK
Connection from replica to master is OK.
Start listening on required ports for remote master check
Get credentials to log in to remote master
admin@EXAMPLE.COM password:
Execute check on remote master
Check connection from master to remote replica 'ipatest.example.com':
Directory Service: Unsecure port (389): OK
Directory Service: Secure port (636): OK
Kerberos KDC: TCP (88): OK
Kerberos KDC: UDP (88): OK
Kerberos Kpasswd: TCP (464): OK
Kerberos Kpasswd: UDP (464): OK
HTTP Server: Unsecure port (80): OK
HTTP Server: Secure port (443): OK
Connection from master to replica is OK.
Connection check OK
Configuring ntpd
[1/4]: stopping ntpd
[2/4]: writing configuration
[3/4]: configuring ntpd to start on boot
[4/4]: starting ntpd
done configuring ntpd.
Configuring directory server: Estimated time 1 minute
[1/29]: creating directory server user
[2/29]: creating directory server instance
[3/29]: adding default schema
[4/29]: enabling memberof plugin
[5/29]: enabling referential integrity plugin
[6/29]: enabling winsync plugin
[7/29]: configuring replication version plugin
[8/29]: enabling IPA enrollment plugin
[9/29]: enabling ldapi
[10/29]: configuring uniqueness plugin
[11/29]: configuring uuid plugin
[12/29]: configuring modrdn plugin
[13/29]: enabling entryUSN plugin
[14/29]: configuring lockout plugin
[15/29]: creating indices
[16/29]: configuring ssl for ds instance
[17/29]: configuring certmap.conf
[18/29]: configure autobind for root
[19/29]: configure new location for managed entries
[20/29]: restarting directory server
[21/29]: setting up initial replication
Starting replication, please wait until this has completed.
Update in progress
Update in progress
Update in progress
Update succeeded
[22/29]: adding replication acis
[23/29]: setting Auto Member configuration
[24/29]: initializing group membership
[25/29]: adding master entry
[26/29]: configuring Posix uid/gid generation
[27/29]: enabling compatibility plugin
Restarting IPA to initialize updates before performing deletes:
[1/2]: stopping directory server
[2/2]: starting directory server
done configuring dirsrv.
[28/29]: tuning directory server
[29/29]: configuring directory to start on boot
done configuring dirsrv.
Configuring Kerberos KDC: Estimated time 30 seconds
[1/9]: adding sasl mappings to the directory
[2/9]: writing stash file from DS
[3/9]: configuring KDC
[4/9]: creating a keytab for the directory
[5/9]: creating a keytab for the machine
[6/9]: adding the password extension to the directory
[7/9]: enable GSSAPI for replication
[8/9]: starting the KDC
[9/9]: configuring KDC to start on boot
done configuring krb5kdc.
Configuring ipa_kpasswd
[1/2]: starting ipa_kpasswd
[2/2]: configuring ipa_kpasswd to start on boot
done configuring ipa_kpasswd.
Configuring the web interface: Estimated time 1 minute
[1/12]: disabling mod_ssl in httpd
[2/12]: setting mod_nss port to 443
[3/12]: setting mod_nss password file
[4/12]: enabling mod_nss renegotiate
[5/12]: adding URL rewriting rules
[6/12]: configuring httpd
[7/12]: setting up ssl
[8/12]: publish CA cert
[9/12]: creating a keytab for httpd
[10/12]: configuring SELinux for httpd
[11/12]: restarting httpd
[12/12]: configuring httpd to start on boot
done configuring httpd.
Applying LDAP updates
Restarting IPA to initialize updates before performing deletes:
[1/2]: stopping directory server
[2/2]: starting directory server
done configuring dirsrv.
Restarting the directory server
Restarting the KDC
Restarting the web server
Run connection check to master
Check connection from replica to remote master 'ipatest.example.com':
Directory Service: Unsecure port (389): OK
Directory Service: Secure port (636): OK
Kerberos KDC: TCP (88): OK
Kerberos KDC: UDP (88): OK
Kerberos Kpasswd: TCP (464): OK
Kerberos Kpasswd: UDP (464): OK
HTTP Server: Unsecure port (80): OK
HTTP Server: Secure port (443): OK
Connection from replica to master is OK.
Start listening on required ports for remote master check
Get credentials to log in to remote master
admin@EXAMPLE.COM password:
Execute check on remote master
Check connection from master to remote replica 'ipatest.example.com':
Directory Service: Unsecure port (389): OK
Directory Service: Secure port (636): OK
Kerberos KDC: TCP (88): OK
Kerberos KDC: UDP (88): OK
Kerberos Kpasswd: TCP (464): OK
Kerberos Kpasswd: UDP (464): OK
HTTP Server: Unsecure port (80): OK
HTTP Server: Secure port (443): OK
Connection from master to replica is OK.
Connection check OK
Configuring ntpd
[1/4]: stopping ntpd
[2/4]: writing configuration
[3/4]: configuring ntpd to start on boot
[4/4]: starting ntpd
done configuring ntpd.
Configuring directory server: Estimated time 1 minute
[1/29]: creating directory server user
[2/29]: creating directory server instance
[3/29]: adding default schema
[4/29]: enabling memberof plugin
[5/29]: enabling referential integrity plugin
[6/29]: enabling winsync plugin
[7/29]: configuring replication version plugin
[8/29]: enabling IPA enrollment plugin
[9/29]: enabling ldapi
[10/29]: configuring uniqueness plugin
[11/29]: configuring uuid plugin
[12/29]: configuring modrdn plugin
[13/29]: enabling entryUSN plugin
[14/29]: configuring lockout plugin
[15/29]: creating indices
[16/29]: configuring ssl for ds instance
[17/29]: configuring certmap.conf
[18/29]: configure autobind for root
[19/29]: configure new location for managed entries
[20/29]: restarting directory server
[21/29]: setting up initial replication
Starting replication, please wait until this has completed.
Update in progress
Update in progress
Update in progress
Update succeeded
[22/29]: adding replication acis
[23/29]: setting Auto Member configuration
[24/29]: initializing group membership
[25/29]: adding master entry
[26/29]: configuring Posix uid/gid generation
[27/29]: enabling compatibility plugin
Restarting IPA to initialize updates before performing deletes:
[1/2]: stopping directory server
[2/2]: starting directory server
done configuring dirsrv.
[28/29]: tuning directory server
[29/29]: configuring directory to start on boot
done configuring dirsrv.
Configuring Kerberos KDC: Estimated time 30 seconds
[1/9]: adding sasl mappings to the directory
[2/9]: writing stash file from DS
[3/9]: configuring KDC
[4/9]: creating a keytab for the directory
[5/9]: creating a keytab for the machine
[6/9]: adding the password extension to the directory
[7/9]: enable GSSAPI for replication
[8/9]: starting the KDC
[9/9]: configuring KDC to start on boot
done configuring krb5kdc.
Configuring ipa_kpasswd
[1/2]: starting ipa_kpasswd
[2/2]: configuring ipa_kpasswd to start on boot
done configuring ipa_kpasswd.
Configuring the web interface: Estimated time 1 minute
[1/12]: disabling mod_ssl in httpd
[2/12]: setting mod_nss port to 443
[3/12]: setting mod_nss password file
[4/12]: enabling mod_nss renegotiate
[5/12]: adding URL rewriting rules
[6/12]: configuring httpd
[7/12]: setting up ssl
[8/12]: publish CA cert
[9/12]: creating a keytab for httpd
[10/12]: configuring SELinux for httpd
[11/12]: restarting httpd
[12/12]: configuring httpd to start on boot
done configuring httpd.
Applying LDAP updates
Restarting IPA to initialize updates before performing deletes:
[1/2]: stopping directory server
[2/2]: starting directory server
done configuring dirsrv.
Restarting the directory server
Restarting the KDC
Restarting the web server
_ldap._tcp IN SRV 0 100 389 ipareplica.example.com
_kerberos._tcp IN SRV 0 100 88 ipareplica.example.com
_kerberos._udp IN SRV 0 100 88 ipareplica.example.com
_kerberos-master._tcp IN SRV 0 100 88 ipareplica.example.com
_kerberos-master._udp IN SRV 0 100 88 ipareplica.example.com
_kpasswd._tcp IN SRV 0 100 464 ipareplica.example.com
_kpasswd._udp IN SRV 0 100 464 ipareplica.example.com
_ntp._udp IN SRV 0 100 123 ipareplica.example.com
-En caso de error, debemos desinstalar, corregir el error y volver a ejecutar el script. Ejemplo
ipa-server-install --uninstall
Disfrútenlo
No hay comentarios:
Publicar un comentario
Dejame un comentario, aprecio la retroalimentacion. Leave me a comment, I appreciate the feedback.