The NIS server plugin for the directory server can either bind to an available port selected at runtime by using bindresvport(), or to a specific port. Either way, it'll notify the portmapper of which one it's using, so clients will be able to find it. For firewalling purposes, though, an admin is likely to want to know which port it will use ahead of time. A port is specified by setting "nsslapd-pluginarg0" to the desired port number (the plugin's documentation uses "541" as an example, but any port below 1024 should do as well) in the entry which instructs the server to load the plugin.
Ideally, I think the tool which enables and disables the plugin should be able to set and unset this parameter. Failing that, I guess we probably want to set one by default so that the server installation script can advise the administrator to punch a hole in the firewall for NIS, as it already does for Kerberos and LDAP services.
Ticket has been cloned to Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=782971
Converting to a documentation ticket.
To set a specific port you'll need to modify the plugin configuration entry in LDAP and add the nsslapd-pluginarg0 with the value of the port you want to listen on.
An example to set port 514 is:
Enter LDAP Password: dn: cn=NIS Server,cn=plugins,cn=config changetype: modify add: nsslapd-pluginarg0 nsslapd-pluginarg0: 514
modifying entry "cn=NIS Server,cn=plugins,cn=config"
Moving to next month iteration.
Added here: http://docs.fedoraproject.org/en-US/Fedora/16/html/FreeIPA_Guide/nis-port.html
Rename component.
Metadata Update from @nalin: - Issue assigned to elladeon - Issue set to the milestone: FreeIPA 2.2.0 Documentation
Login to comment on this ticket.