summaryrefslogtreecommitdiffstats
path: root/doc/ipa_client.md
blob: f6afc42bc4223066f6d27ef001b9fe48784a374f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#IPA Client Guide

##Contents
* [Setup Overview] (#setup)
* [Configure Network] (#network)
* [Installing IPA Client] (#ipa-client)

<a name="setup" />
##Setup Overview
We have used a F18 box as IPA client machine and used FreeIPA client.
This document borrows instructions from the following more detailed guide.
[RHEL 6 Identity Management Guide][]


<a name="network" />
## Configure network

Set hostname (FQDN) to client.rhelbox.com
> hostnamectl set-hostname "client.rhelbox.com"
>
> hostname "client.rhelbox.com"

Add following to /etc/sysconfig/network:

    HOSTNAME=client.rhelbox.com

Add the following to /etc/hostname

    client.rhelbox.com

Add the following to /etc/hosts

    192.168.56.110 server.rhelbox.com server
    192.168.56.101 client.rhelbox.com client

Logout and login again and verify hostname :
> hostname --fqdn

Edit */etc/resolv.conf* to add this at beginning of file

    nameserver 192.168.56.110

Warning: NetworkManager changes resolv.conf on restart

Turn off firewall
> service iptables stop
>
> chkconfig iptables off

<a name="ipa-client" />
## Installing IPA Client

Install IPA client packages:

For RHEL:
> yum install ipa-client ipa-admintools

For Fedora:
> yum install freeipa-client freeipa-admintools

Install IPA client and add to domain:
>ipa-client-install --enable-dns-updates

    Discovery was successful!
    Hostname: client.rhelbox.com
    Realm: RHELBOX.COM
    DNS Domain: rhelbox.com
    IPA Server: server.rhelbox.com
    BaseDN: dc=rhelbox,dc=com

    Continue to configure the system with these values? [no]: yes
    User authorized to enroll computers: admin

Check if client is configured correctly:
> kinit admin
>
> getent passwd admin


[RHEL 6 Identity Management Guide]: https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Identity_Management_Guide/