System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP)

Assigning Server Address and Port Number

The /etc/default/rpc.nisd file is set up to use a local LDAP server at port 389. If this is not correct in your configuration, establish a new value for the preferredServerList attribute. For example, to use an LDAP server at IP address and port 65535, you specify the following.