Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

21.2. Enabling NIS in Identity Management

To enable NIS in Identity Management:
  1. Enable the NIS listener and compatibility plug-ins:
    [root@ipaserver ~]# ipa-nis-manage enable
    [root@ipaserver ~]# ipa-compat-manage enable
  2. Optional: Set a fixed port for the NIS remote procedure calls (RPC).
    When using NIS, the client must know to which port on the IdM server to use to establish the connection. Using the default settings, IdM binds to an unused random port when the server starts. This port is sent to the port mapper service the client uses to request the port number.
    For a more strict firewall configuration, you can set a fixed port. For example, to set the port to 514:
    [root@ipaserver ~]# ldapmodify -x -D 'cn=directory manager' -W
    dn: cn=NIS Server,cn=plugins,cn=config
    changetype: modify
    add: nsslapd-pluginarg0
    nsslapd-pluginarg0: 514
    Note
    You can set any unused port number below 1024 for the setting.
  3. Enable and start the port mapper service:
    [root@ipaserver ~]# systemctl enable rpcbind.service
    [root@ipaserver ~]# systemctl start rpcbind.service
  4. Restart Directory Server:
    [root@ipaserver ~]# systemctl restart dirsrv.target