JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
man pages section 4: File Formats     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

Introduction

File Formats

addresses(4)

admin(4)

ai_manifest(4)

alias(4)

aliases(4)

a.out(4)

au(4)

audit_class(4)

audit_event(4)

audit.log(4)

auth_attr(4)

autofs(4)

bart_manifest(4)

bart_rules(4)

bootparams(4)

cardbus(4)

compver(4)

contents(4)

contract(4)

copyright(4)

core(4)

crypt.conf(4)

crypto_certs(4)

dacf.conf(4)

dat.conf(4)

dc_manifest(4)

defaultdomain(4)

default_fs(4)

defaultrouter(4)

depend(4)

device_allocate(4)

device_contract(4)

device_maps(4)

devices(4)

devid_cache(4)

devname_cache(4)

dfstab(4)

dhcp_inittab(4)

dhcp_network(4)

dhcpsvc.conf(4)

dhcptab(4)

dialups(4)

dir(4)

dir_ufs(4)

d_passwd(4)

driver(4)

driver.conf(4)

ds.log(4)

dumpdates(4)

ethers(4)

exec_attr(4)

fbtab(4)

fd(4)

fdi(4)

flash_archive(4)

format.dat(4)

forward(4)

fs(4)

fspec(4)

fstypes(4)

ftp(4)

ftpusers(4)

fx_dptbl(4)

gateways(4)

geniconvtbl(4)

group(4)

gsscred.conf(4)

hba.conf(4)

holidays(4)

hosts(4)

hosts.equiv(4)

ib(4)

idnkit.pc(4)

ike.config(4)

ike.preshared(4)

inetd.conf(4)

inet_type(4)

infiniband_hca_persistent_cache(4)

init.d(4)

inittab(4)

ipaddrsel.conf(4)

ipf(4)

ipf.conf(4)

ipnat(4)

ipnat.conf(4)

ipnodes(4)

ippool(4)

ippool.conf(4)

isa(4)

issue(4)

kadm5.acl(4)

kdc.conf(4)

keytables(4)

krb5.conf(4)

label_encodings(4)

ldapfilter.conf(4)

ldapsearchprefs.conf(4)

ldaptemplates.conf(4)

llc2(4)

logadm.conf(4)

logindevperm(4)

loginlog(4)

magic(4)

md.cf(4)

mddb.cf(4)

mdi_ib_cache(4)

mdi_scsi_vhci_cache(4)

md.tab(4)

mech(4)

meddb(4)

mnttab(4)

mod_ipp(4)

mpapi.conf(4)

named.conf(4)

ncad_addr(4)

nca.if(4)

ncakmod.conf(4)

ncalogd.conf(4)

ncaport.conf(4)

ndmp(4)

ndpd.conf(4)

netconfig(4)

netgroup(4)

netid(4)

netmasks(4)

netrc(4)

networks(4)

nfs(4)

nfslog.conf(4)

nfssec.conf(4)

NISLDAPmapping(4)

nodename(4)

nologin(4)

note(4)

notrouter(4)

nscd.conf(4)

nss(4)

nsswitch.conf(4)

packingrules(4)

pam.conf(4)

pam.d(4)

passwd(4)

path_to_inst(4)

pci(4)

pcie(4)

pci_unitaddr_persistent(4)

phones(4)

pkginfo(4)

pkgmap(4)

plot(4B)

policy.conf(4)

priv_names(4)

proc(4)

process(4)

prof_attr(4)

profile(4)

project(4)

protocols(4)

prototype(4)

pseudo(4)

publickey(4)

qop(4)

queuedefs(4)

rcmscript(4)

rdc.cf(4)

registration_profile(4)

remote(4)

resolv.conf(4)

rhosts(4)

rmtab(4)

rndc.conf(4)

rpc(4)

rt_dptbl(4)

sasl_appname.conf(4)

sbus(4)

sccsfile(4)

scsi(4)

securenets(4)

sel_config(4)

sendmail(4)

sendmail.cf(4)

service_bundle(4)

service_provider.conf(4)

services(4)

shadow(4)

sharetab(4)

shells(4)

slp.conf(4)

slpd.reg(4)

smb(4)

smbautohome(4)

smhba.conf(4)

snapshot_cache(4)

sndr(4)

sock2path.d(4)

space(4)

ssh_config(4)

sshd_config(4)

submit.cf(4)

sulog(4)

sysbus(4)

syslog.conf(4)

system(4)

telnetrc(4)

term(4)

terminfo(4)

TIMEZONE(4)

timezone(4)

TrustedExtensionsPolicy(4)

ts_dptbl(4)

ttydefs(4)

ttysrch(4)

ufsdump(4)

updaters(4)

user_attr(4)

utmp(4)

utmpx(4)

vfstab(4)

volume-config(4)

volume-defaults(4)

volume-request(4)

wanboot.conf(4)

warn.conf(4)

wtmp(4)

wtmpx(4)

ypfiles(4)

yppasswdd(4)

ypserv(4)

zoneinfo(4)

ypserv

- configuration file for NIS to LDAP transition daemons

Synopsis

/etc/default/ypserv

Description

The ypserv file specifies configuration information for the ypserv(1M) daemon. Configuration information can come from LDAP or be specified in the ypserv file.

You can create a simple ypserv file by running inityp2l(1M). The ypserv file can then be customized as required.

A related NISLDAPmapping file contains mapping information that converts NIS entries into LDAP entries. See the NISLDAPmapping(4) man page for an overview of the setup that is needed to map NIS data to or from LDAP.

Extended Description

The ypserv(1M) server recognizes the attributes that follow. Values specified for these attributes in the ypserv file, including any empty values, override values that are obtained from LDAP. However, the nisLDAPconfig* values are read from the ypserv file only

Attributes

The following are attributes that are used for initial configuration.

nisLDAPconfigDN

The DN for configuration information. If nisLDAPconfigDN is empty, all other nisLDAPConfig* values are ignored.

nisLDAPconfigPreferredServerList

The list of servers to use for the configuration phase. There is no default value. The following is an example of a value for nisLDAPconfigPreferredServerList:

nisLDAPconfigPreferredServerList=127.0.0.1:389
nisLDAPconfigAuthenticationMethod

The authentication method used to obtain the configuration information. The recognized values for nisLDAPconfigAuthenticationMethod are:

none

No authentication attempted

simple

Password of proxy user sent in the clear to the LDAP server

sasl/cram-md5

Use SASL/CRAM-MD5 authentication. This authentication method may not be supported by all LDAP servers. A password must be supplied.

sasl/digest-md5

Use SASL/DIGEST-MD5 authentication. The SASL/CRAM-MD5authentication method may not be supported by all LDAP servers. A password must be supplied.

nisLDAPconfigAuthenticationMethod has no default value. The following is an example of a value for nisLDAPconfigAuthenticationMethod:

nisLDAPconfigAuthenticationMethod=simple
nisLDAPconfigTLS

The transport layer security used for the connection to the server. The recognized values are:

none

No encryption of transport layer data. The default value is none.

ssl

SSL encryption of transport layer data. A certificate is required.

Export and import control restrictions might limit the availability of transport layer security.

nisLDAPconfigTLSCertificateDBPath

The name of the directory that contains the certificate database. The default path is /var/yp.

nisLDAPconfigProxyUser

The proxy user used to obtain configuration information. nisLDAPconfigProxyUser has no default value. If the value ends with a comma, the value of the nisLDAPconfigDN attribute is appended. For example:

nisLDAPconfigProxyUser=cn=nisAdmin,ou=People,
nisLDAPconfigProxyPassword

The password that should be supplied to LDAP for the proxy user when the authentication method requires one. To avoid exposing this password publicly on the machine, the password should only appear in the configuration file, and the file should have an appropriate owner, group, and file mode. nisLDAPconfigProxyPassword has no default value.

The following are attributes used for data retrieval. The object class name used for these attributes is nisLDAPconfig.

preferredServerList

The list of servers to use to read or to write mapped NIS data from or to LDAP. preferredServerList has no default value. For example:

preferredServerList=127.0.0.1:389
authenticationMethod

The authentication method to use to read or to write mapped NIS data from or to LDAP. For recognized values, see the LDAPconfigAuthenticationMethod attribute. authenticationMethod has no default value. For example:

authenticationMethod=simple
nisLDAPTLS

The transport layer security to use to read or to write NIS data from or to LDAP. For recognized values, see the nisLDAPconfigTLS attribute. The default value is none. Export and import control restrictions might limit the availability of transport layer security.

nisLDAPTLSCertificateDBPath

The name of the directory that contains the certificate DB. For recognized and default values for nisLDAPTLSCertificateDBPath, see the nisLDAPconfigTLSCertificateDBPath attribute.

nisLDAPproxyUser

Proxy user used by ypserv(1M), ypxfrd(1M) and yppasswdd(1M) to read or to write from or to LDAP. Assumed to have the appropriate permission to read and modify LDAP data. There is no default value. If the value ends in a comma, the value of the context for the current domain, as defined by a nisLDAPdomainContext attribute, is appended. See NISLDAPmapping(4). For example:

nisLDAPproxyUser=cn=nisAdmin,ou=People,
nisLDAPproxyPassword

The password that should be supplied to LDAP for the proxy user when the authentication method so requires. To avoid exposing this password publicly on the machine, the password should only appear in the configuration file, and the file must have an appropriate owner, group, and file mode. nisLDAPproxyPassword has no default value.

nisLDAPsearchTimeout

Establishes the timeout for the LDAP search operation. The default value for nisLDAPsearchTimeout is 180 seconds.

nisLDAPbindTimeout
nisLDAPmodifyTimeout
nisLDAPaddTimeout
nisLDAPdeleteTimeout

Establish timeouts for LDAP bind, modify, add, and delete operations, respectively. The default value is 15 seconds for each attribute. Decimal values are allowed.

nisLDAPsearchTimeLimit

Establish a value for the LDAP_OPT_TIMELIMIT option, which suggests a time limit for the search operation on the LDAP server. The server may impose its own constraints on possible values. See your LDAP server documentation. The default is the nisLDAPsearchTimeout value. Only integer values are allowed.

Since the nisLDAPsearchTimeout limits the amount of time the client ypserv will wait for completion of a search operation, do not set the value of nisLDAPsearchTimeLimit larger than the value of nisLDAPsearchTimeout.

nisLDAPsearchSizeLimit

Establish a value for the LDAP_OPT_SIZELIMIT option, which suggests a size limit, in bytes, for the search results on the LDAP server. The server may impose its own constraints on possible values. See your LDAP server documentation. The default value for nisLDAPsearchSizeLimit is zero, which means the size limit is unlimited. Only integer values are allowed.

nisLDAPfollowReferral

Determines if the ypserv should follow referrals or not. Recognized values for nisLDAPfollowReferral are yes and no. The default value for nisLDAPfollowReferral is no.

The following attributes specify the action to be taken when some event occurs. The values are all of the form event=action. The default action is the first one listed for each event.

nisLDAPretrieveErrorAction

If an error occurs while trying to retrieve an entry from LDAP, one of the following actions can be selected:

use_cached

Retry the retrieval the number of time specified by nisLDAPretrieveErrorAttempts, with the nisLDAPretrieveErrorTimeout value controlling the wait between each attempt.

If all attempts fail, then a warning is logged and the value currently in the cache is returned to the client.

fail

Proceed as for use_cached, but if all attempts fail, a YPERR_YPERR error is returned to the client.

nisLDAPretrieveErrorAttempts

The number of times a failed retrieval should be retried. The default value for nisLDAPretrieveErrorAttempts is unlimited. While retries are made the ypserv daemon will be prevented from servicing further requests .nisLDAPretrieveErrorAttempts values other than 1 should be used with caution.

nisLDAPretrieveErrorTimeout

The timeout in seconds between each new attempt to retrieve LDAP data. The default value for nisLDAPretrieveErrorTimeout is 15 seconds.

nisLDAPstoreErrorAction

An error occurred while trying to store data to the LDAP repository.

retry

Retry operation nisLDAPstoreErrorAttempts times with nisLDAPstoreErrorTimeout seconds between each attempt. While retries are made, the NIS daemon will be prevented from servicing further requests. Use with caution.

fail

Return YPERR_YPERR error to the client.

nisLDAPstoreErrorAttempts

The number of times a failed attempt to store should be retried. The default value for nisLDAPstoreErrorAttempts is unlimited. The value for nisLDAPstoreErrorAttempts is ignored unless nisLDAPstoreErrorAction=retry.

nisLDAPstoreErrortimeout

The timeout, in seconds, between each new attempt to store LDAP data. The default value for nisLDAPstoreErrortimeout is 15 seconds. The nisLDAPstoreErrortimeout value is ignored unless nisLDAPstoreErrorAction=retry.

Storing Configuration Attributes in LDAP

Most attributes described on this man page, as well as those described on NISLDAPmapping(4), can be stored in LDAP. In order to do so, you will need to add the following definitions to your LDAP server, which are described here in LDIF format suitable for use by ldapadd(1). The attribute and objectclass OIDs are examples only.

dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 1.3.6.1.4.1.11.1.3.1.1.2 NAME 'preferredServerList' \
          DESC 'Preferred LDAP server host addresses used by DUA' \
          EQUALITY caseIgnoreMatch \
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )
attributetypes: ( 1.3.6.1.4.1.11.1.3.1.1.6 NAME 'authenticationMethod' \
          DESC 'Authentication method used to contact the DSA' \
          EQUALITY caseIgnoreMatch \
          SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE )

dn: cn=schema
     changetype: modify
     add: attributetypes
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.0 \
               NAME 'nisLDAPTLS' \
               DESC 'Transport Layer Security' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.1 \
               NAME 'nisLDAPTLSCertificateDBPath' \
               DESC 'Certificate file' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.2 \
               NAME 'nisLDAPproxyUser' \
               DESC 'Proxy user for data store/retrieval' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.3 \
               NAME 'nisLDAPproxyPassword' \
               DESC 'Password/key/shared secret for proxy user' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.6 \
               NAME 'nisLDAPretrieveErrorAction' \
               DESC 'Action following an LDAP search error' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.7 \
               NAME 'nisLDAPretrieveErrorAttempts' \
               DESC 'Number of times to retry an LDAP search' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.8 \
               NAME 'nisLDAPretrieveErrorTimeout' \
               DESC 'Timeout between each search attempt' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.9 \
               NAME 'nisLDAPstoreErrorAction' \
               DESC 'Action following an LDAP store error' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.10 \
               NAME 'nisLDAPstoreErrorAttempts' \
               DESC 'Number of times to retry an LDAP store' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.11 \
               NAME 'nisLDAPstoreErrorTimeout' \
               DESC 'Timeout between each store attempt' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.12 \
               NAME 'nisLDAPdomainContext' \
               DESC 'Context for a single domain' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.13 \
               NAME 'nisLDAPyppasswddDomains' \
               DESC 'List of domains for which password changes are made' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 SINGLE-VALUE )           
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.14 \
               NAME 'nisLDAPdatabaseIdMapping' \
               DESC 'Defines a database id for a NIS object' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.15 \
               NAME 'nisLDAPentryTtl' \
               DESC 'TTL for cached objects derived from LDAP' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.16 \
               NAME 'nisLDAPobjectDN' \
               DESC 'Location in LDAP tree where NIS data is stored' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 ) 
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.17 ) \
               NAME 'nisLDAPnameFields' \
               DESC 'Rules for breaking NIS entries into fields' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )
     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.18 ) \
               NAME 'nisLDAPsplitFields' \
               DESC 'Rules for breaking fields into sub fields' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.19 \
               NAME 'nisLDAPattributeFromField' \
               DESC 'Rules for mapping fields to LDAP attributes' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.20 \
               NAME 'nisLDAPfieldFromAttribute' \
               DESC 'Rules for mapping fields to LDAP attributes' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.21 \
               NAME 'nisLDAPrepeatedFieldSeparators' \
               DESC 'Rules for mapping fields to LDAP attributes' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.22 \
               NAME 'nisLDAPcommentChar' \
               DESC 'Rules for mapping fields to LDAP attributes' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

     attributetypes: ( 1.3.6.1.4.1.42.2.27.5.42.43.1.23 \
               NAME 'nisLDAPmapFlags' \
               DESC 'Rules for mapping fields to LDAP attributes' \
               SYNTAX 1.3.6.1.4.1.1466.115.121.1.26 )

     dn: cn=schema
     changetype: modify
     add: objectclasses
     objectclasses:  ( 1.3.6.1.4.1.42.2.27.5.42.43.1.0 NAME 'nisLDAPconfig' \
               DESC 'NIS/LDAP mapping configuration' \
               SUP top STRUCTURAL \
               MAY ( cn $ preferredServerList $ 
                 authenticationMethod $ nisLDAPTLS $
                 nisLDAPTLSCertificateDBPath $
                 nisLDAPproxyUser $ nisLDAPproxyPassword $
                 nisLDAPretrieveErrorAction $
                 nisLDAPretrieveErrorAttempts $
                 nisLDAPretrieveErrorTimeout $
                 nisLDAPstoreErrorAction $
                 nisLDAPstoreErrorAttempts $
                 nisLDAPstoreErrorTimeout $
                 nisLDAPdomainContext $
                 nisLDAPyppasswddDomains $
                 nisLDAPdatabaseIdMapping $
                 nisLDAPentryTtl $
                 nisLDAPobjectDN $
                 nisLDAPnameFields $
                 nisLDAPsplitFields $
                 nisLDAPattributeFromField $
                 nisLDAPfieldFromAttribute $
                 nisLDAPrepeatedFieldSeparators $
                 nisLDAPcommentChar $
                 nisLDAPmapFlags ) )

Create a file containing the following LDIF data. Substitute your actual nisLDAPconfigDN for configDN:

dn: configDN
objectClass: top
objectClass: nisLDAPconfig

Use this file as input to the ldapadd(1) command in order to create the NIS to LDAP configuration entry. Initially, the entry is empty. You can use the ldapmodify(1) command to add configuration attributes.

Examples

Example 1 Creating a NIS to LDAP Configuration Entry

To set the server list to port 389 on 127.0.0.1, create the following file and use it as input to ldapmodify(1):

dn: configDN
preferredServerList: 127.0.0.1:389

Attributes

See attributes(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
service/network/nis
Interface Stability
Obsolete

See Also

ldapadd(1), ldapmodify(1), inityp2l(1M), yppasswdd(1M), ypserv(1M), ypxfrd(1M), attributes(5)

Oracle Solaris Administration: Naming and Directory Services