ldap_defaults(4ldap)


ldap_defaults -- LDAP command line utility defaults

Synopsis

/etc/ldap/ldap_defaults

Description

The ldap_defaults file contains zero or more default system-wide settings that are used by the following LDAP client tools:

The following environment variables may be defined:

LDAP_HOST
The LDAP server to contact.

LDAP_BASE_DN
The search base from which to start searching on an LDAP server.

LDAP_BINDDN_SEARCH
The Distinguished Name (DN) used to search the directory tree on an LDAP server.

LDAP_BINDDN_CHANGE
The DN used to make any modifications to the directory tree of an LDAP server.

An example ldap_defaults file is show below:

   LDAP_HOST=aserver.sco.com 
   LDAP_BASE_DN="o=SCO,c=US" 
   LDAP_BINDDN_SEARCH="cn=auser,o=SCO,c=US" 
   LDAP_BINDDN_CHANGE="cn=root,o=SCO,c=US" 
Note that environment variables with the same names as those found in the ldap_defaults file can be set. These will override the values specified in ldap_defaults.

Note also that command line parameters to the LDAP commands have the highest precedence. For example:

   # export LDAP_HOST=server1 
   # 
   # ldapsearch 'cn=*' 
   # ldapsearch -h server2 'cn=*' 
The first ldapsearch searches the host ``server1''. The second ldapsearch searches the host ``server2''.

Files

/etc/ldap/ldap_defaults

References

ldapadd(1ldap), ldapdelete(1ldap), ldapmodify(1ldap), ldapmodrdn(1ldap), ldapsearch(1ldap)
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.