On a brand new install of IPAserver 2.99 on Fedora 17 with bind installed. I get the following error when running the command ipactl start
Starting Directory Service Starting KDC Service Starting KPASSWD Service Starting DNS Service Job failed. See system journal and 'systemctl status' for details. Failed to start DNS Service Shutting down Aborting ipactl"
The server was setup using the following commands and inputs.
cd /etc/yum.repos.d/ wget http://freeipa.org/downloads/freeipa-devel.repo
yum -y install freeipa-server.x86_64 bind bind-dyndb-ldap
ipa-server-install --setup-dns
This program will set up the IPA Server.
This includes:
To accept the default shown in brackets, press the Enter key.
Existing BIND configuration detected, overwrite? [no]: yes Enter the fully qualified domain name of the computer on which you're setting up server software. Using the form . Example: master.example.com.
Server host name [fedoraipaserver.test.example.com]:
Please confirm the domain name [test.example.com]:
The kerberos protocol requires a Realm name to be defined. This is typically the domain name converted to uppercase.
Please provide a realm name [TEST.EXAMPLE.COM]: 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):
Do you want to configure DNS forwarders? [yes]:no Do you want to configure the reverse zone? [yes]: Please specify the reverse zone name [1.24.172.in-addr.arpa.]: Using reverse zone 1.24.172.in-addr.arpa.
The IPA Master Server will be configured with: Hostname: fedoraipaserver.test.example.com IP address: 172.24.1.25 Domain name: test.example.com Realm name: TEST.EXAMPLE.COM
BIND DNS server will be configured to serve IPA domain with: Reverse zone: 1.24.172.in-addr.arpa.
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.
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 for the CA: Estimated time 30 seconds [1/3]: creating directory server user [2/3]: creating directory server instance [3/3]: restarting directory server done configuring pkids. Configuring certificate server: Estimated time 3 minutes 30 seconds [1/18]: creating certificate server user [2/18]: creating pki-ca instance [3/18]: configuring certificate server instance [4/18]: disabling nonces [5/18]: creating CA agent PKCS#12 file in /root [6/18]: creating RA agent certificate database [7/18]: importing CA chain to RA certificate database [8/18]: fixing RA database permissions [9/18]: setting up signing cert profile [10/18]: set up CRL publishing [11/18]: set certificate subject base [12/18]: enabling Subject Key Identifier [13/18]: configuring certificate server to start on boot [14/18]: restarting certificate server [15/18]: requesting RA certificate from CA [16/18]: issuing RA agent certificate [17/18]: adding RA agent as a trusted user [18/18]: Configure HTTP to proxy connections done configuring pki-cad. Configuring directory server: Estimated time 1 minute [1/35]: creating directory server user [2/35]: creating directory server instance [3/35]: adding default schema [4/35]: enabling memberof plugin [5/35]: enabling referential integrity plugin [6/35]: enabling winsync plugin [7/35]: configuring replication version plugin [8/35]: enabling IPA enrollment plugin [9/35]: enabling ldapi [10/35]: configuring uniqueness plugin [11/35]: configuring uuid plugin [12/35]: configuring modrdn plugin [13/35]: enabling entryUSN plugin [14/35]: configuring lockout plugin [15/35]: creating indices [16/35]: configuring ssl for ds instance [17/35]: configuring certmap.conf [18/35]: configure autobind for root [19/35]: configure new location for managed entries [20/35]: restarting directory server [21/35]: adding default layout [22/35]: adding delegation layout [23/35]: adding replication acis [24/35]: creating container for managed entries [25/35]: configuring user private groups [26/35]: configuring netgroups from hostgroups [27/35]: creating default Sudo bind user [28/35]: creating default Auto Member layout [29/35]: creating default HBAC rule allow_all [30/35]: initializing group membership [31/35]: adding master entry [32/35]: configuring Posix uid/gid generation [33/35]: enabling compatibility plugin [34/35]: tuning directory server [35/35]: configuring directory to start on boot done configuring dirsrv. Configuring Kerberos KDC: Estimated time 30 seconds [1/10]: adding sasl mappings to the directory [2/10]: adding kerberos container to the directory [3/10]: configuring KDC [4/10]: initialize kerberos container [5/10]: adding default ACIs [6/10]: creating a keytab for the directory [7/10]: creating a keytab for the machine [8/10]: adding the password extension to the directory [9/10]: starting the KDC [10/10]: configuring KDC to start on boot done configuring 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: Estimated time 1 minute [1/14]: disabling mod_ssl in httpd [2/14]: setting mod_nss port to 443 [3/14]: setting mod_nss password file [4/14]: enabling mod_nss renegotiate [5/14]: adding URL rewriting rules [6/14]: configuring httpd [7/14]: setting up ssl [8/14]: setting up browser autoconfig [9/14]: publish CA cert [10/14]: creating a keytab for httpd [11/14]: clean up any existing httpd ccache [12/14]: configuring SELinux for httpd [13/14]: restarting httpd [14/14]: configuring httpd to start on boot done configuring httpd. Applying LDAP updates Restarting the directory server Restarting the KDC Configuring named: [1/9]: adding DNS container [2/9]: setting up our zone [3/9]: setting up reverse zone [4/9]: setting up our own 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 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
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 certificate stored in /root/cacert.p12 This file is required to create replicas. The password for this file is the Directory Manager password [root@ds01 ~]#
ipa dnszone-add ipa.example.com --name-server=aaa1.ipa.example.com --force --forwarder=172.24.1.11 --forward-policy=only
I have attached the system logs when trying to perform a ipactl start
cat /var/log/dirsrv/slapd-TEST-EXAMPLE-COM/errors error
cli.log cli.log
/var/log/messages message
Please post your /etc/named.conf, /etc/hosts and output from ifconfig. Thanks.
cat /etc/hosts
172.24.1.25 fedoraipaserver.test.example.com fedoraipaserver
[root@fedoraipaserver ~]# ifconfig eth0: flags=4163 mtu 1500 inet 172.24.1.25 netmask 255.255.255.0 broadcast 172.24.1.255 inet6 fe80::20c:29ff:fea1:baa2 prefixlen 64 scopeid 0x20 ether 00:0c:29:a1:ba:a2 txqueuelen 1000 (Ethernet) RX packets 136979 bytes 104844659 (99.9 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 80530 bytes 15376987 (14.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73 mtu 16436 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10 loop txqueuelen 0 (Local Loopback) RX packets 4924 bytes 5295643 (5.0 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 4924 bytes 5295643 (5.0 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
cat /etc/named.conf
options { // turns on IPv6 for port 53, IPv4 is on by default for all ifaces listen-on-v6 {any;};
// Put files that named is allowed to write in the data/ directory: directory "/var/named"; // the default dump-file "data/cache_dump.db"; statistics-file "data/named_stats.txt"; memstatistics-file "data/named_mem_stats.txt"; forward first; forwarders { }; // Any host is permitted to issue recursive queries allow-recursion { any; }; tkey-gssapi-credential "DNS/fedoraipaserver.test.example.com"; tkey-domain "TEST.EXAMPLE.COM";
};
/ If you want to enable debugging, eg. using the 'rndc trace' command, - By default, SELinux policy does not allow named to modify the /var/named directory, - so put the default debug log file in data/ : / logging { channel default_debug { file "data/named.run"; severity dynamic; }; };
zone "." IN { type hint; file "named.ca"; };
include "/etc/named.rfc1912.zones";
dynamic-db "ipa" { library "ldap.so"; arg "uri ldapi://%2fvar%2frun%2fslapd-TEST-EXAMPLE-COM.socket"; arg "base cn=dns, dc=test,dc=example,dc=com"; arg "fake_mname fedoraipaserver.test.example.com."; arg "auth_method sasl"; arg "sasl_mech GSSAPI"; arg "sasl_user DNS/fedoraipaserver.test.example.com"; arg "zone_refresh 0"; arg "psearch yes"; arg "serial_autoincrement yes"; };
I can't reproduce the issue and it works for tsunamie now (after VM reinstallation?).
Metadata Update from @tsunamie: - Issue assigned to pspacek - Issue set to the milestone: 0.0 TRIAGE
Log in to comment on this ticket.