nss revision 7c478bd95313f5f23a4c958a745db2134aa03244
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# ident "%Z%%M% %I% %E% SMI"
e6d40133bc9f858308654afb1262b8b483ec5922Till Mossakowski# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
d5fe06af711a6912ae028ebf873eada4ee8733f8Christian Maeder# Use is subject to license terms.
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# CDDL HEADER START
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# The contents of this file are subject to the terms of the
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# Common Development and Distribution License, Version 1.0 only
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# (the "License"). You may not use this file except in compliance
e6d40133bc9f858308654afb1262b8b483ec5922Till Mossakowski# with the License.
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# See the License for the specific language governing permissions
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# and limitations under the License.
8743e7c53a81e2bbae555f46dc06f898dde24fa9Klaus Luettich# When distributing Covered Code, include this CDDL HEADER in each
126d9e1a18fe4d92adf53e1a28206e709df89776Klaus Luettich# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
ad270004874ce1d0697fb30d7309f180553bb315Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
8743e7c53a81e2bbae555f46dc06f898dde24fa9Klaus Luettich# information: Portions Copyright [yyyy] [name of copyright owner]
126d9e1a18fe4d92adf53e1a28206e709df89776Klaus Luettich# CDDL HEADER END
db5402f2fed8267155dc5b141be16c2013a116f2Christian Maeder# NETID_AUTHORITATIVE changes the behaviour of nameservice lookups to use
950cfa4052e5934bbd4e4e51d72b7b5ebd09598cChristian Maeder# the netid or group table when satisfying the initgroups() call.
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# The default is to use the group table, setting the value of TRUE forces
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# the initgroups() function call to use netid as the source for supplementary
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# groups rather than the group table.
e6c575e3f119d03a2a6c94b23f258ce9ba5236d0Christian Maeder# It is the responsibility of the nameservice administrator to ensure that
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# the netid table contains valid supplementary group information for users,
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# not all nameservices are capable of keeping the members listed in the
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich# groups table in sync with the netid table automatically.
ab9552212948587fbccf471213b862638c09faf9Christian Maeder#NETID_AUTHORITATIVE=TRUE
e0dde8f398fffca5dafbf8e820f04800d0f8c350Rainer Grabbe#SORT_ADDRS can be used to disable the sorting of addresses returned by
a3be388eb25a536f76fd71c753f73692083bd5a5Klaus Luettich#name lookup functions such as gethostbyname(), getaddrinfo(),
ab9552212948587fbccf471213b862638c09faf9Christian Maeder#getipnodebyname() and netdir_getbyname().
ab9552212948587fbccf471213b862638c09faf9Christian Maeder#Setting SORT_ADDRS=FALSE will disable address sorting done by those
ab9552212948587fbccf471213b862638c09faf9Christian Maeder#functions. This is useful in case the order of addresses returned
950cfa4052e5934bbd4e4e51d72b7b5ebd09598cChristian Maeder#by the nameserver needs to be maintained. (example: DNS round robin feature)
ab9552212948587fbccf471213b862638c09faf9Christian Maeder#By default, address sorting is done.
950cfa4052e5934bbd4e4e51d72b7b5ebd09598cChristian Maeder#SORT_ADDRS=FALSE