Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
NIS/LDAP Gateway Administrator's Guide > Chapter 4 Command and Tool Reference

Configuration Parameters

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

You can change the NIS/LDAP Gateway’s run-time configuration parameters in the file /opt/ldapux/ypldapd/etc/ypldapd.conf. This section describes these parameters in detail.

NOTE: Because the configuration file contains a password, you should protect it by making the file only accessible by root. Use a command like the following:
chmod 600 ypldapd.conf

Changing Configuration Parameter Values

You can change configuration parameter values by editing the /opt/ldapux/ypldapd/etc/ypldapd.conf file. Each entry in the file consists of a key word, followed by white space, followed by the value for that parameter. Any line starting with a pound sign or hash symbol (#) is treated as a comment and ignored.

NIS Domain to Serve

Specifies the NIS domain that the NIS/LDAP Gateway serves. See domainname(1) for more information.

Required.

Syntax

ypdomain domain-name

where domain-name is the domain name ypldapd is to serve.

Example

ypdomain dev-team

LDAP Server Name

Specifies the host name of your LDAP server. The host’s IP address must be resolvable without consulting NIS (through NIS or /etc/hosts) or specified in dotted decimal notation, to avoid reentrancy problems. It is suggested you use a DNS name (and configure /etc/nsswitch.conf to perform host lookups in DNS before NIS) or an IP address.

Required.

Syntax

ldaphost server-name

where server-name is a host name or IP address.

Example

ldaphost nis-ldap

ldaphost 15.0.96.234

LDAP Protocol Version

Specifies the version of the LDAP protocol your directory server is using.

Optional.

Default Value

2

Valid Range

2 | 3

Syntax

ldapversion integer

Example

ldapversion 3

Search Base DN

Specifies the Distinguished Name in your directory where the NIS/LDAP Gateway should begin all searches.

Required.

Syntax

basedn DN

Example

basedn o=hp.com

basedn dc=aceindustry, dc=com

Naming Context Mappings

Specifies the file containing name mappings from NIS names to distinguished names in your directory. The default mappings are in the file /opt/ldapux/ypldapd/etc/namingcontexts.conf. The default mappings will work in most cases. Edit this file if you put your NIS data in other than the default places. See also “Naming Context”.

Optional.

Default Value

namingcontexts namingcontexts.conf

where namingcontexts.conf is found in /opt/ldapux/ypldapd/etc/.

Syntax

namingcontexts filename

Example

namingcontexts namingcontexts.conf

Bind DN

Specifies the distinguished name of the proxy user the NIS/LDAP Gateway uses to bind to the directory.

Optional.

Default value

The default is to bind anonymously.

Syntax

binddn DN

Example

binddn cn=Directory Manager

binddn cn=proxyuser, ou=people, o=hp.com

Bind DN Password

Specifies the credentials or password of the proxy user the NIS/LDAP Gateway uses to bind to the directory. See “Bind DN” above.

Optional, but required if using a proxy user.

NOTE: You should protect this password in your configuration file by making the file ypldapd.conf only accessible by root with a command like the following:
chmod 600 ypldapd.conf

Syntax

bindcred credential

Example

bindcred ldap1234

LDAP Port

Specifies the TCP port number for the NIS/LDAP Gateway to connect to your LDAP directory server.

Optional.

Default

389

Syntax

ldapport integer

Example

ldapport 6249

LDAP Search Scope

Specifies how deep the NIS/LDAP Gateway should go when searching your directory.

Optional.

Default

sub

Valid Range

sub | one | base

where:

  • sub means the NIS/LDAP Gateway is to search the base DN and all of its descendants; that is, the entire subtree.

  • one means search only the immediate children of the base DN; that is, one level down.

  • base means search only the base DN. This value should not be used as it is too restrictive, effectively preventing searching below the base DN.

Syntax

scope level

Example

scope one

LDAP Alias Dereference Policy

Specifies how the NIS/LDAP Gateway should handle aliases when searching your LDAP directory server.

Optional.

NOTE: Netscape Directory Server for HP-UX implements referrals instead of alias dereferencing. See the Netscape Directory Server Deployment Guide for details on referrals.

Default

deref never

Valid Range

never | find | search | always

where:

  • never means the NIS/LDAP Gateway should never dereference aliases.

  • find means dereference only when finding an alias.

  • search means dereference only when searching.

  • always means dereference always.

Syntax

deref level

Example

deref never

Fall Through to NIS

Specifies whether the NIS/LDAP Gateway should search an NIS domain if the requested information is not found in the LDAP directory.

Optional.

Default

extended on

Valid Range

on | off

Syntax

extended Boolean

Example

extended off

Parent NIS Domain

Specifies the NIS domain to fall through to if the needed information is not found in the directory. Maps not supported by the NIS/LDAP Gateway and maps already fulfilled by the directory will be supplemented by binding to the specified NIS parentdomain.

Optional.

Syntax

parentdomain domainname

Example

parentdomain nisusers

Fall Through to DNS

Specifies whether the NIS/LDAP Gateway should search a DNS server if the requested host information is not found in the LDAP directory.

Optional.

Default

dns_lookups on

Valid Range

on | off

Syntax

dns_lookups Boolean

Example

dns_lookups off

Search Time Limit

Specifies how long, in seconds, the NIS/LDAP Gateway should search the directory before aborting the search operation.

Optional.

Default

The default is no timeout.

Valid Range

0 to 232 (0 means no time limit on searches.)

Syntax

timelimit integer

Example

timelimit 6000

Enable or Disable Caching

Specifies whether the NIS/LDAP Gateway should cache information from the directory. See “Caching” for more information.

Optional.

Default

caching on

Valid Range

on | off

Syntax

caching Boolean

Example

caching off

Cache Lifetime

Specifies how often, in minutes, the NIS/LDAP Gateway should refresh the preloaded maps in the cache and flush all other maps from the cache. See “Setting the Frequency of Cache Refreshing” for more information.

Optional.

Default

cache_dump_interval 15

Valid Range

0 to 232 (0 means never refresh the cache.)

Syntax

cache_dump_interval integer

Example

cache_dump_interval 30

Preload Maps into the Cache

Specifies what maps, if any, should be preloaded into the cache. Caching must be enabled with the caching parameter as described in “Enable or Disable Caching”. See also “Caching”.

Optional.

Default

No maps preloaded into the cache.

Syntax

preload_maps mapname [mapname2 [... mapnameN]]

Recommended

preload_maps group.byname

Example

preload_maps passwd group hosts

Maximum Number of Processes

Specifies the maximum number of processes to fork for enumeration requests. See “Minimizing Enumeration Requests” for more information.

Optional.

Default

maxchildren 0

Recommended

5 or greater

Syntax

maxchildren integer

Example

maxchildren 10

Use Caching for Enumeration Requests

Specifies whether enumeration requests use caching. Filling the cache on an enumeration request can tie up the NIS/LDAP Gateway daemon for a long time, delaying service of other NIS requests, causing clients to fail or rebind to another server.

NOTE: You should preload maps instead of caching enumeration requests. See “Preload Maps into the Cache”. See also “Minimizing Enumeration Requests” for more information.

Optional.

Default

ypall_caching off

Valid Range

on | off

Recommended

ypall_caching off

Syntax

ypall_caching Boolean

Example

ypall_caching off

NIS Master Host Name

Specifies the NIS domain the ypwhich command should return. By default, ypwhich returns the name of the local host.

Optional.

Syntax

ypmaster hostname

Example

ypmaster nisserver

PID File

Specifies the file in which to write the process identifier (PID) for the NIS/LDAP Gateway daemon, ypldapd. If you don’t specify a full path, the file is placed in the root directory, /.

Optional.

Default

pidfile /var/run/ypldapd.pid

Recommended

pidfile /var/run/ypldapd.pid

Syntax

pidfile filename

Example

pidfile /tmp/ypldapd.pid

Enable or Disable Shadow Passwords

NOTE: Shadow passwords are not supported in this release.

You must set this parameter to off or you will not be able to log in.

Default

hide_passwords no

Valid Range

on | off

Syntax

hide_passwords Boolean

Example

hide_passwords no

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2003 Hewlett-Packard Development Company, L.P.