Bug 957244
| Summary: | Changing Directory Manager password on IPA server and replica-info | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Harri Savolainen <hsavolai> |
| Component: | ipa | Assignee: | Martin Kosek <mkosek> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Namita Soman <nsoman> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | dpal, mkosek, mniranja, spoore, tscherf |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-3.2.2-1.el7 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-13 12:49:57 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Harri Savolainen
2013-04-26 17:54:51 UTC
The RHCS team tells me we can use the PKCS12Export command to re-generate cacert.p12. They recommend regenerating this before preparing a replica. Upstream ticket: https://fedorahosted.org/freeipa/ticket/3594 *** Bug 958134 has been marked as a duplicate of this bug. *** Fixed upstream: master: c1e9b6fa1d3b334e6331c00158bf8e71926cd658 ipa-3-2: 7b402b3bc30af1e57b0451bd2ecfb121ee1739e5 Verified. Version :: ipa-server-3.3.3-18.el7.x86_64 Results :: (manual below but, test case automated as indicated in the qe_test_coverage): ON MASTER: # First reset DM password: [root@rhel7-1 ~]# ipactl stop Stopping Directory Service Stopping ipa-otpd Service Stopping pki-tomcatd Service Stopping httpd Service Stopping ipa_memcached Service Stopping named Service Stopping kadmin Service Stopping krb5kdc Service ipa: INFO: The ipactl command was successful [root@rhel7-1 ~]# cd /etc/dirsrv/slapd-IPA1-EXAMPLE-TEST/ [root@rhel7-1 slapd-IPA1-EXAMPLE-TEST]# NEWPASS=$(pwdhash RedHat1234) [root@rhel7-1 slapd-IPA1-EXAMPLE-TEST]# sed -i "s|nsslapd-rootpw:.*$|nsslapd-rootpw: $NEWPASS|" dse.ldif [root@rhel7-1 slapd-IPA1-EXAMPLE-TEST]# ipactl start Starting Directory Service Starting krb5kdc Service Starting kadmin Service Starting named Service Starting ipa_memcached Service Starting httpd Service Starting pki-tomcatd Service Starting ipa-otpd Service ipa: INFO: The ipactl command was successful # Prepare info file [root@rhel7-1 slapd-IPA1-EXAMPLE-TEST]# ipa-replica-prepare -p RedHat1234 --ip-address=192.168.122.72 replica1.ipa1.example.test Preparing replica for replica1.ipa1.example.test from master.ipa1.example.test Creating SSL certificate for the Directory Server Creating SSL certificate for the dogtag Directory Server Saving dogtag Directory Server port Creating SSL certificate for the Web Server Exporting RA certificate Copying additional files Finalizing configuration Packaging replica information into /var/lib/ipa/replica-info-replica1.ipa1.example.test.gpg Adding DNS records for replica1.ipa1.example.test Using reverse zone 122.168.192.in-addr.arpa. The ipa-replica-prepare command was successful ON REPLICA: # Download info file [root@rhel7-2 ~]# sftp root.example.test:/var/lib/ipa/replica-info-replica1.ipa1.example.test.gpg /dev/shm root.example.test's password: Connected to master.ipa1.example.test. Fetching /var/lib/ipa/replica-info-replica1.ipa1.example.test.gpg to /dev/shm/replica-info-replica1.ipa1.example.test.gpg /var/lib/ipa/replica-info-replica1.ipa1.example.test.gpg 100% 37KB 37.3KB/s 00:00 # Install replica using new DM Password: [root@rhel7-2 ~]# ipa-replica-install -U --setup-ca --setup-dns --forwarder=192.168.122.1 -w Secret123 -p RedHat1234 /dev/shm/replica-info-replica1.ipa1.example.test.gpg Run connection check to master Check connection from replica to remote master 'master.ipa1.example.test': Directory Service: Unsecure port (389): OK Directory Service: Secure port (636): OK Kerberos KDC: TCP (88): OK Kerberos Kpasswd: TCP (464): OK HTTP Server: Unsecure port (80): OK HTTP Server: Secure port (443): OK The following list of ports use UDP protocol and would need to be checked manually: Kerberos KDC: UDP (88): SKIPPED Kerberos Kpasswd: UDP (464): SKIPPED Connection from replica to master is OK. Start listening on required ports for remote master check Get credentials to log in to remote master Check SSH connection to remote master Execute check on remote master Check connection from master to remote replica 'replica1.ipa1.example.test': 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 NTP daemon (ntpd) [1/4]: stopping ntpd [2/4]: writing configuration [3/4]: configuring ntpd to start on boot [4/4]: starting ntpd Done configuring NTP daemon (ntpd). Configuring directory server (dirsrv): Estimated time 1 minute [1/34]: creating directory server user [2/34]: creating directory server instance [3/34]: adding default schema [4/34]: enabling memberof plugin [5/34]: enabling winsync plugin [6/34]: configuring replication version plugin [7/34]: enabling IPA enrollment plugin [8/34]: enabling ldapi [9/34]: configuring uniqueness plugin [10/34]: configuring uuid plugin [11/34]: configuring modrdn plugin [12/34]: configuring DNS plugin [13/34]: enabling entryUSN plugin [14/34]: configuring lockout plugin [15/34]: creating indices [16/34]: enabling referential integrity plugin [17/34]: configuring ssl for ds instance [18/34]: configuring certmap.conf [19/34]: configure autobind for root [20/34]: configure new location for managed entries [21/34]: configure dirsrv ccache [22/34]: enable SASL mapping fallback [23/34]: restarting directory server [24/34]: setting up initial replication Starting replication, please wait until this has completed. Update in progress, 4 seconds elapsed Update succeeded [25/34]: updating schema [26/34]: setting Auto Member configuration [27/34]: enabling S4U2Proxy delegation [28/34]: initializing group membership [29/34]: adding master entry [30/34]: configuring Posix uid/gid generation [31/34]: adding replication acis [32/34]: enabling compatibility plugin [33/34]: tuning directory server [34/34]: configuring directory to start on boot Done configuring directory server (dirsrv). Configuring certificate server (pki-tomcatd): Estimated time 3 minutes 30 seconds [1/19]: creating certificate server user [2/19]: configuring certificate server instance [3/19]: stopping certificate server instance to update CS.cfg [4/19]: disabling nonces [5/19]: set up CRL publishing [6/19]: starting certificate server instance [7/19]: creating RA agent certificate database [8/19]: importing CA chain to RA certificate database [9/19]: fixing RA database permissions [10/19]: setting up signing cert profile [11/19]: set certificate subject base [12/19]: enabling Subject Key Identifier [13/19]: enabling CRL and OCSP extensions for certificates [14/19]: setting audit signing renewal to 2 years [15/19]: configuring certificate server to start on boot [16/19]: configure certmonger for renewals [17/19]: configure clone certificate renewals [18/19]: configure Server-Cert certificate renewal [19/19]: Configure HTTP to proxy connections Done configuring certificate server (pki-tomcatd). Restarting the directory and certificate servers Configuring Kerberos KDC (krb5kdc): 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 Kerberos KDC (krb5kdc). Configuring kadmin [1/2]: starting kadmin [2/2]: configuring kadmin to start on boot Done configuring kadmin. Configuring ipa_memcached [1/2]: starting ipa_memcached [2/2]: configuring ipa_memcached to start on boot Done configuring ipa_memcached. Configuring the web interface (httpd): Estimated time 1 minute [1/13]: setting mod_nss port to 443 [2/13]: setting mod_nss password file [3/13]: enabling mod_nss renegotiate [4/13]: adding URL rewriting rules [5/13]: configuring httpd [6/13]: setting up ssl [7/13]: publish CA cert [8/13]: creating a keytab for httpd [9/13]: clean up any existing httpd ccache [10/13]: configuring SELinux for httpd [11/13]: configure httpd ccache [12/13]: restarting httpd [13/13]: configuring httpd to start on boot Done configuring the web interface (httpd). Configuring ipa-otpd [1/2]: starting ipa-otpd [2/2]: configuring ipa-otpd to start on boot Done configuring ipa-otpd. Applying LDAP updates Restarting the directory server Restarting the KDC Using reverse zone 122.168.192.in-addr.arpa. Configuring DNS (named) [1/9]: adding NS record to the zone [2/9]: setting up reverse zone [3/9]: setting up our own record [4/9]: setting up CA record [5/9]: setting up kerberos principal [6/9]: setting up named.conf [7/9]: restarting named [8/9]: configuring named to start on boot [9/9]: changing resolv.conf to point to ourselves Done configuring DNS (named). Global DNS configuration in LDAP server is empty You can use 'dnsconfig-mod' command to set global DNS options that would override settings in local named.conf files Restarting the web server This request was resolved in Red Hat Enterprise Linux 7.0. Contact your manager or support representative in case you have further questions about the request. |