1ipa-client-install(1)          IPA Manual Pages          ipa-client-install(1)
2
3
4

NAME

6       ipa-client-install - Configure an IPA client
7

SYNOPSIS

9       ipa-client-install [OPTION]...
10

DESCRIPTION

12       Configures  a client machine to use IPA for authentication and identity
13       services.
14
15       By default this configures SSSD to connect to an IPA server for authen‐
16       tication  and  authorization.  Optionally one can instead configure PAM
17       and NSS (Name Switching Service) to work with an IPA server  over  Ker‐
18       beros and LDAP.
19
20       An  authorized  user  is required to join a client machine to IPA. This
21       can take the form of a kerberos principal or a one-time password  asso‐
22       ciated with the machine.
23
24       This  same  tool  is used to unconfigure IPA and attempts to return the
25       machine to its previous state. Part of this process is to unenroll  the
26       host  from the IPA server. Unenrollment consists of disabling the prin‐
27       cipal key on the IPA server so that it may be re-enrolled. The  machine
28       principal  in /etc/krb5.keytab (host/<fqdn>@REALM) is used to authenti‐
29       cate to the IPA server to unenroll itself. If this principal  does  not
30       exist  then  unenrollment  will  fail and an administrator will need to
31       disable the host principal (ipa host-disable <fqdn>).
32
33
34   Assumptions
35       The ipa-client-install script assumes that the machine has already gen‐
36       erated  SSH  keys.  It will not generate SSH keys of its own accord. If
37       SSH keys are not present (e.g. when running the ipa-client-install in a
38       kickstart,  before ever running sshd), they will not be uploaded to the
39       client host entry on the server.
40
41
42   Hostname Requirements
43       Client must use a static hostname. If the machine hostname changes  for
44       example  due  to a dynamic hostname assignment by a DHCP server, client
45       enrollment to IPA server breaks and user then would not be able to per‐
46       form Kerberos authentication.
47
48       --hostname  option  may  be used to specify a static hostname that per‐
49       sists over reboot.
50
51
52   DNS Autodiscovery
53       Client installer by default tries to search for  _ldap._tcp.DOMAIN  DNS
54       SRV  records for all domains that are parent to its hostname. For exam‐
55       ple, if a client machine has a hostname 'client1.lab.example.com',  the
56       installer   will   try   to   retrieve  an  IPA  server  hostname  from
57       _ldap._tcp.lab.example.com, _ldap._tcp.example.com  and  _ldap._tcp.com
58       DNS  SRV  records,  respectively. The discovered domain is then used to
59       configure client components (e.g. SSSD and Kerberos 5 configuration) on
60       the machine.
61
62       When  the  client  machine  hostname  is  not  in a subdomain of an IPA
63       server, its domain can be passed with --domain option.  In  that  case,
64       both SSSD and Kerberos components have the domain set in the configura‐
65       tion files and will use it to autodiscover IPA servers.
66
67       Client machine can also be configured without a  DNS  autodiscovery  at
68       all. When both --server and --domain options are used, client installer
69       will use the specified server  and  domain  directly.  --server  option
70       accepts multiple server hostnames which can be used for failover mecha‐
71       nism. Without DNS autodiscovery, Kerberos is configured  with  a  fixed
72       list  of KDC and  Admin servers. SSSD is still configured to either try
73       to read domain's SRV records or the specified fixed  list  of  servers.
74       When --fixed-primary option is specified, SSSD will not try to read DNS
75       SRV record at all (see sssd-ipa(5) for details).
76
77
78   The Failover Mechanism
79       When some of the IPA servers is not available,  client  components  are
80       able  to  fallback to other IPA replica and thus preserving a continued
81       service. When client machine  is  configured  to  use  DNS  SRV  record
82       autodiscovery  (no  fixed  server  was passed to the installer), client
83       components do the fallback automatically, based on the IPA server host‐
84       names and priorities discovered from the DNS SRV records.
85
86       If  DNS autodiscovery is not available, clients should be configured at
87       least with a fixed list of IPA servers that can be used in  case  of  a
88       failure.  When  only  one IPA server is configured, IPA client services
89       will not be available in case of a failure of the  IPA  server.  Please
90       note,  that  in  case  of a fixed list of IPA servers, the fixed server
91       lists in client components need to be updated when a new IPA server  is
92       enrolled or a current IPA server is decommissioned.
93
94
95   Coexistence With Other Directory Servers
96       Other  directory servers deployed in the network (e.g. Microsoft Active
97       Directory) may use the same DNS SRV records  to  denote  hosts  with  a
98       directory  service  (_ldap._tcp.DOMAIN). Such DNS SRV records may break
99       the installation if the installer discovers these DNS records before it
100       finds DNS SRV records pointing to IPA servers. The installer would then
101       fail to discover the IPA server and exit with error.
102
103       In order to avoid the  aforementioned  DNS  autodiscovery  issues,  the
104       client machine hostname should be in a domain with properly defined DNS
105       SRV records pointing to IPA servers, either manually with a custom  DNS
106       server  or with IPA DNS integrated solution. A second approach would be
107       to avoid autodiscovery and configure the installer to use a fixed  list
108       of   IPA  server  hostnames  using  the  --server  option  and  with  a
109       --fixed-primary option disabling DNS SRV record autodiscovery in SSSD.
110
111
112   Re-enrollment of the host
113       Requirements:
114
115       1. Host has not been un-enrolled  (the  ipa-client-install  --uninstall
116       command has not been run).
117       2.  The  host entry has not been disabled via the ipa host-disable com‐
118       mand.
119
120       If this has been the case, host can  be  re-enrolled  using  the  usual
121       methods.
122
123       There are two method of authenticating a re-enrollment:
124
125       1.  You  can  use  --force-join option with ipa-client-install command.
126       This authenticates the re-enrollment using the admin's credentials pro‐
127       vided via the -w/--password option.
128       2.  If  providing  the  admin's password via the command line is not an
129       option (e.g. you want to create a script to re-enroll a host  and  keep
130       the  admin's  password  secure),  you can use backed up keytab from the
131       previous enrollment of this host to authenticate. See --keytab option.
132
133       Consequences of the re-enrollment on the host entry:
134
135       1. A new host certificate is issued
136       2. The old host certificate is revoked
137       3. New SSH keys are generated
138       4. ipaUniqueID is preserved
139
140

OPTIONS

142   BASIC OPTIONS
143       --domain=DOMAIN
144              The primary DNS domain of an existing IPA deployment, e.g. exam‐
145              ple.com.  This  DNS domain should contain the SRV records gener‐
146              ated by the IPA server installer. Usually the name is  a  lower-
147              cased name of an IPA Kerberos realm name.
148
149              When  no  --server option is specified, this domain will be used
150              by the installer to discover all available servers via  DNS  SRV
151              record   autodiscovery   (see   DNS  Autodiscovery  section  for
152              details).
153
154              The default value used by the installer is the  domain  part  of
155              the  hostname.  This option needs to be specified if the primary
156              IPA DNS domain is different from the default value.
157
158       --server=SERVER
159              Set the FQDN of the IPA server to connect to. May  be  specified
160              multiple  times  to  add multiple servers to ipa_server value in
161              sssd.conf or krb5.conf. Only the first value is considered  when
162              used with --no-sssd. When this option is used, DNS autodiscovery
163              for Kerberos is disabled and a  fixed  list  of  KDC  and  Admin
164              servers is configured.
165
166              Under  normal  circumstances,  this  option is not needed as the
167              list of servers is retrieved from the primary IPA DNS domain.
168
169       --realm=REALM_NAME
170              The Kerberos realm of an existing IPA deployment. Usually it  is
171              an  upper-cased  name  of the primary DNS domain used by the IPA
172              installation.
173
174              Under normal circumstances, this option is  not  needed  as  the
175              realm name is retrieved from the IPA server.
176
177       --fixed-primary
178              Configure  SSSD to use a fixed server as the primary IPA server.
179              The default is to use DNS SRV records to determine  the  primary
180              server to use and fall back to the server the client is enrolled
181              with. When used in conjunction with --server then no _srv_ value
182              is set in the ipa_server option in sssd.conf.
183
184       -p, --principal
185              Authorized kerberos principal to use to join the IPA realm.
186
187       -w PASSWORD, --password=PASSWORD
188              Password  for  joining  a machine to the IPA realm. Assumes bulk
189              password unless principal is also set.
190
191       -W     Prompt for the password for joining a machine to the IPA realm.
192
193       -k, --keytab
194              Path to backed up host keytab from  previous  enrollment.  Joins
195              the host even if it is already enrolled.
196
197       --mkhomedir
198              Configure  PAM  to  create a users home directory if it does not
199              exist.
200
201       --hostname
202              The hostname of this machine (FQDN). If specified, the  hostname
203              will be set and the system configuration will be updated to per‐
204              sist over reboot. By default the result of getfqdn()  call  from
205              Python's socket module is used.
206
207       --force-join
208              Join the host even if it is already enrolled.
209
210       --ntp-server=NTP_SERVER
211              Configure  ntpd  to use this NTP server. This option can be used
212              multiple times.
213
214       -N, --no-ntp
215              Do not configure or enable NTP.
216
217       --force-ntpd
218              Stop and disable any time&date synchronization services  besides
219              ntpd.
220
221       --nisdomain=NIS_DOMAIN
222              Set the NIS domain name as specified. By default, this is set to
223              the IPA domain name.
224
225       --no-nisdomain
226              Do not configure NIS domain name.
227
228       --ssh-trust-dns
229              Configure OpenSSH client to trust DNS SSHFP records.
230
231       --no-ssh
232              Do not configure OpenSSH client.
233
234       --no-sshd
235              Do not configure OpenSSH server.
236
237       --no-sudo
238              Do not configure SSSD as a data source for sudo.
239
240       --no-dns-sshfp
241              Do not automatically create DNS SSHFP records.
242
243       --noac Do not use Authconfig to modify the nsswitch.conf and  PAM  con‐
244              figuration.
245
246       -f, --force
247              Force the settings even if errors occur
248
249       --kinit-attempts=KINIT_ATTEMPTS
250              In  case of unresponsive KDC (e.g. when enrolling multiple hosts
251              at once in a heavy load environment) repeat the request for host
252              Kerberos  ticket  up  to  a total number of KINIT_ATTEMPTS times
253              before giving up and aborting client installation. Default  num‐
254              ber  of attempts is 5. The request is not repeated when there is
255              a problem with host credentials themselves  (e.g.  wrong  keytab
256              format  or invalid principal) so using this option will not lead
257              to account lockouts.
258
259       -d, --debug
260              Print debugging information to stdout
261
262       -U, --unattended
263              Unattended installation. The user will not be prompted.
264
265       --ca-cert-file=CA_FILE
266              Do not attempt to acquire the IPA CA certificate  via  automated
267              means,  instead  use  the  CA  certificate  found  locally in in
268              CA_FILE.  The CA_FILE must be an absolute path to a PEM  format‐
269              ted  certificate  file.  The  CA certificate found in CA_FILE is
270              considered authoritative and will be installed without  checking
271              to see if it's valid for the IPA domain.
272
273       --request-cert
274              Request  certificate  for  the  machine. The certificate will be
275              stored in /etc/ipa/nssdb under the nickname "Local IPA host".
276
277              Using this option requires that D-Bus is properly configured  or
278              not  configured  at  all. In environment where this condition is
279              not met (e.g. anaconda kickstart  chroot  environment)  set  the
280              system  bus  address  to  /dev/null to enable workaround in ipa-
281              client-install.
282
283                  #   env   DBUS_SYSTEM_BUS_ADDRESS=unix:path=/dev/null   ipa-
284              client-install --request-cert
285
286              Note that requesting the certificate when certmonger is not run‐
287              ning only creates tracking request and  the  certmonger  service
288              must be started to be able to track certificates.
289
290       --automount-location=LOCATION
291              Configure  automount  by  running  ipa-client-automount(1)  with
292              LOCATION as automount location.
293
294       --configure-firefox
295              Configure Firefox to use IPA domain credentials.
296
297       --firefox-dir=DIR
298              Specify   Firefox   installation   directory.    For    example:
299              '/usr/lib/firefox'
300
301       --ip-address=IP_ADDRESS
302              Use IP_ADDRESS in DNS A/AAAA record for this host. May be speci‐
303              fied multiple times to add multiple DNS records.
304
305       --all-ip-addresses
306              Create DNS A/AAAA record for each IP address on this host.
307
308
309   SSSD OPTIONS
310       --permit
311              Configure SSSD to permit all access. Otherwise the machine  will
312              be  controlled  by  the Host-based Access Controls (HBAC) on the
313              IPA server.
314
315       --enable-dns-updates
316              This option tells SSSD to automatically update DNS with  the  IP
317              address of this client.
318
319       --no-krb5-offline-passwords
320              Configure  SSSD  not  to  store user password when the server is
321              offline.
322
323       -S, --no-sssd
324              Do not configure the client to use SSSD for authentication,  use
325              nss_ldap instead.
326
327       --preserve-sssd
328              Disabled by default. When enabled, preserves old SSSD configura‐
329              tion if it is not possible to merge it with a  new  one.  Effec‐
330              tively,  if  the  merge is not possible due to SSSDConfig reader
331              encountering unsupported options,  ipa-client-install  will  not
332              run  further  and ask to fix SSSD config first. When this option
333              is not specified, ipa-client-install will back  up  SSSD  config
334              and  create new one. The back up version will be restored during
335              uninstall.
336
337
338   UNINSTALL OPTIONS
339       --uninstall
340              Remove the IPA client software and restore the configuration  to
341              the pre-IPA state.
342
343       -U, --unattended
344              Unattended uninstallation. The user will not be prompted.
345
346

FILES

348       Files that will be replaced if SSSD is configured (default):
349
350              /etc/sssd/sssd.conf
351
352       Files  that  will  be replaced if they exist and SSSD is not configured
353       (--no-sssd):
354
355              /etc/ldap.conf
356              /etc/nss_ldap.conf
357              /etc/libnss-ldap.conf
358              /etc/pam_ldap.conf
359              /etc/nslcd.conf
360
361       Files replaced if NTP is enabled:
362
363              /etc/ntp.conf
364              /etc/sysconfig/ntpd
365              /etc/ntp/step-tickers
366
367       Files always created (replacing existing content):
368
369              /etc/krb5.conf
370              /etc/ipa/ca.crt
371              /etc/ipa/default.conf
372              /etc/ipa/nssdb
373              /etc/openldap/ldap.conf
374
375       Files updated, existing content is maintained:
376
377              /etc/nsswitch.conf
378              /etc/krb5.keytab
379              /etc/sysconfig/network
380

EXIT STATUS

382       0 if the installation was successful
383
384       1 if an error occurred
385
386       2 if uninstalling and the client is not configured
387
388       3 if installing and the client is already configured
389
390       4 if an uninstall error occurred
391
392

SEE ALSO

394       ipa-client-automount(1), krb5.conf(5), sssd.conf(5)
395
396
397
398IPA                               Dec 19 2016            ipa-client-install(1)
Impressum