Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
/* $NetBSD: nsswitch.h,v 1.6 1999/01/26 01:04:07 lukem Exp $ */
|
|
|
|
/* $FreeBSD$ */
|
|
|
|
|
|
|
|
/*-
|
|
|
|
* Copyright (c) 1997, 1998, 1999 The NetBSD Foundation, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
* by Luke Mewburn.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
* 3. All advertising materials mentioning features or use of this software
|
|
|
|
* must display the following acknowledgement:
|
|
|
|
* This product includes software developed by the NetBSD
|
|
|
|
* Foundation, Inc. and its contributors.
|
|
|
|
* 4. Neither the name of The NetBSD Foundation nor the names of its
|
|
|
|
* contributors may be used to endorse or promote products derived
|
|
|
|
* from this software without specific prior written permission.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
* ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
|
|
|
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
|
|
|
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
|
|
|
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
* POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NSSWITCH_H
|
|
|
|
#define _NSSWITCH_H 1
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
|
2003-04-17 14:14:22 +00:00
|
|
|
#define NSS_MODULE_INTERFACE_VERSION 1
|
|
|
|
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
#ifndef _PATH_NS_CONF
|
|
|
|
#define _PATH_NS_CONF "/etc/nsswitch.conf"
|
|
|
|
#endif
|
|
|
|
|
2003-04-17 14:14:22 +00:00
|
|
|
/* NSS source actions */
|
|
|
|
#define NS_ACTION_CONTINUE 0 /* try the next source */
|
|
|
|
#define NS_ACTION_RETURN 1 /* look no further */
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
|
|
|
|
#define NS_SUCCESS (1<<0) /* entry was found */
|
|
|
|
#define NS_UNAVAIL (1<<1) /* source not responding, or corrupt */
|
|
|
|
#define NS_NOTFOUND (1<<2) /* source responded 'no such entry' */
|
2003-04-17 14:14:22 +00:00
|
|
|
#define NS_TRYAGAIN (1<<3) /* source busy, may respond to retry */
|
|
|
|
#define NS_RETURN (1<<4) /* stop search, e.g. for ERANGE */
|
|
|
|
#define NS_TERMINATE (NS_SUCCESS|NS_RETURN) /* flags that end search */
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
#define NS_STATUSMASK 0x000000ff /* bitmask to get the status flags */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* currently implemented sources
|
|
|
|
*/
|
|
|
|
#define NSSRC_FILES "files" /* local files */
|
|
|
|
#define NSSRC_DNS "dns" /* DNS; IN for hosts, HS for others */
|
|
|
|
#define NSSRC_NIS "nis" /* YP/NIS */
|
|
|
|
#define NSSRC_COMPAT "compat" /* passwd,group in YP compat mode */
|
2006-04-28 12:03:38 +00:00
|
|
|
#define NSSRC_CACHE "cache" /* cache daemon */
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* currently implemented databases
|
|
|
|
*/
|
|
|
|
#define NSDB_HOSTS "hosts"
|
|
|
|
#define NSDB_GROUP "group"
|
|
|
|
#define NSDB_GROUP_COMPAT "group_compat"
|
|
|
|
#define NSDB_NETGROUP "netgroup"
|
|
|
|
#define NSDB_NETWORKS "networks"
|
|
|
|
#define NSDB_PASSWD "passwd"
|
|
|
|
#define NSDB_PASSWD_COMPAT "passwd_compat"
|
|
|
|
#define NSDB_SHELLS "shells"
|
2006-04-28 12:03:38 +00:00
|
|
|
#define NSDB_SERVICES "services"
|
|
|
|
#define NSDB_SERVICES_COMPAT "services_compat"
|
|
|
|
#define NSDB_SSH_HOSTKEYS "ssh_hostkeys"
|
|
|
|
#define NSDB_PROTOCOLS "protocols"
|
|
|
|
#define NSDB_RPC "rpc"
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* suggested databases to implement
|
|
|
|
*/
|
|
|
|
#define NSDB_ALIASES "aliases"
|
|
|
|
#define NSDB_AUTH "auth"
|
|
|
|
#define NSDB_AUTOMOUNT "automount"
|
|
|
|
#define NSDB_BOOTPARAMS "bootparams"
|
|
|
|
#define NSDB_ETHERS "ethers"
|
|
|
|
#define NSDB_EXPORTS "exports"
|
|
|
|
#define NSDB_NETMASKS "netmasks"
|
|
|
|
#define NSDB_PHONES "phones"
|
|
|
|
#define NSDB_PRINTCAP "printcap"
|
|
|
|
#define NSDB_REMOTE "remote"
|
|
|
|
#define NSDB_SENDMAILVARS "sendmailvars"
|
|
|
|
#define NSDB_TERMCAP "termcap"
|
|
|
|
#define NSDB_TTYS "ttys"
|
|
|
|
|
2003-04-17 14:14:22 +00:00
|
|
|
/*
|
|
|
|
* ns_dtab `method' function signature.
|
|
|
|
*/
|
|
|
|
typedef int (*nss_method)(void *_retval, void *_mdata, va_list _ap);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Macro for generating method prototypes.
|
|
|
|
*/
|
|
|
|
#define NSS_METHOD_PROTOTYPE(method) \
|
|
|
|
int method(void *, void *, va_list)
|
|
|
|
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
/*
|
|
|
|
* ns_dtab - `nsswitch dispatch table'
|
2003-04-17 14:14:22 +00:00
|
|
|
* Contains an entry for each source and the appropriate function to
|
|
|
|
* call. ns_dtabs are used in the nsdispatch() API in order to allow
|
|
|
|
* the application to override built-in actions.
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
*/
|
2003-04-17 14:14:22 +00:00
|
|
|
typedef struct _ns_dtab {
|
|
|
|
const char *src; /* Source this entry implements */
|
|
|
|
nss_method method; /* Method to be called */
|
|
|
|
void *mdata; /* Data passed to method */
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
} ns_dtab;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* macros to help build an ns_dtab[]
|
|
|
|
*/
|
|
|
|
#define NS_FILES_CB(F,C) { NSSRC_FILES, F, C },
|
|
|
|
#define NS_COMPAT_CB(F,C) { NSSRC_COMPAT, F, C },
|
|
|
|
|
|
|
|
#ifdef HESIOD
|
|
|
|
# define NS_DNS_CB(F,C) { NSSRC_DNS, F, C },
|
|
|
|
#else
|
|
|
|
# define NS_DNS_CB(F,C)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef YP
|
|
|
|
# define NS_NIS_CB(F,C) { NSSRC_NIS, F, C },
|
|
|
|
#else
|
|
|
|
# define NS_NIS_CB(F,C)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ns_src - `nsswitch source'
|
|
|
|
* used by the nsparser routines to store a mapping between a source
|
|
|
|
* and its dispatch control flags for a given database.
|
|
|
|
*/
|
2003-04-17 14:14:22 +00:00
|
|
|
typedef struct _ns_src {
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
const char *name;
|
|
|
|
u_int32_t flags;
|
|
|
|
} ns_src;
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
* default sourcelist (if nsswitch.conf is missing, corrupt,
|
|
|
|
* or the requested database doesn't have an entry.
|
|
|
|
*/
|
|
|
|
extern const ns_src __nsdefaultsrc[];
|
|
|
|
|
2003-04-17 14:14:22 +00:00
|
|
|
/*
|
|
|
|
* ns_mtab - NSS method table
|
|
|
|
* An NSS module provides a mapping from (database name, method name)
|
|
|
|
* tuples to the nss_method and associated data.
|
|
|
|
*/
|
|
|
|
typedef struct _ns_mtab {
|
|
|
|
const char *database;
|
|
|
|
const char *name;
|
|
|
|
nss_method method;
|
|
|
|
void *mdata;
|
|
|
|
} ns_mtab;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NSS module de-registration, called at module unload.
|
|
|
|
*/
|
|
|
|
typedef void (*nss_module_unregister_fn)(ns_mtab *, unsigned int);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* NSS module registration, called at module load.
|
|
|
|
*/
|
|
|
|
typedef ns_mtab *(*nss_module_register_fn)(const char *, unsigned int *,
|
|
|
|
nss_module_unregister_fn *);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Many NSS interfaces follow the getXXnam, getXXid, getXXent pattern.
|
|
|
|
* Developers are encouraged to use nss_lookup_type where approriate.
|
|
|
|
*/
|
|
|
|
enum nss_lookup_type {
|
|
|
|
nss_lt_name = 1,
|
|
|
|
nss_lt_id = 2,
|
|
|
|
nss_lt_all = 3
|
|
|
|
};
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
|
|
|
|
#ifdef _NS_PRIVATE
|
|
|
|
/*
|
|
|
|
* private data structures for back-end nsswitch implementation
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* ns_dbt - `nsswitch database thang'
|
|
|
|
* for each database in /etc/nsswitch.conf there is a ns_dbt, with its
|
|
|
|
* name and a list of ns_src's containing the source information.
|
|
|
|
*/
|
2003-04-17 14:14:22 +00:00
|
|
|
typedef struct _ns_dbt {
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
const char *name; /* name of database */
|
|
|
|
ns_src *srclist; /* list of sources */
|
|
|
|
int srclistsize; /* size of srclist */
|
|
|
|
} ns_dbt;
|
|
|
|
|
2003-04-17 14:14:22 +00:00
|
|
|
/*
|
|
|
|
* ns_mod - NSS module
|
|
|
|
*/
|
|
|
|
typedef struct _ns_mod {
|
|
|
|
char *name; /* module name */
|
|
|
|
void *handle; /* handle from dlopen */
|
|
|
|
ns_mtab *mtab; /* method table */
|
|
|
|
unsigned int mtabsize; /* count of entries in method table */
|
|
|
|
nss_module_unregister_fn unregister; /* called to unload module */
|
|
|
|
} ns_mod;
|
|
|
|
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
#endif /* _NS_PRIVATE */
|
|
|
|
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
|
|
|
|
|
|
__BEGIN_DECLS
|
2002-03-23 17:24:55 +00:00
|
|
|
extern int nsdispatch(void *, const ns_dtab [], const char *,
|
|
|
|
const char *, const ns_src [], ...);
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
|
|
|
|
#ifdef _NS_PRIVATE
|
2002-03-23 17:24:55 +00:00
|
|
|
extern void _nsdbtaddsrc(ns_dbt *, const ns_src *);
|
|
|
|
extern void _nsdbtput(const ns_dbt *);
|
|
|
|
extern void _nsyyerror(const char *);
|
|
|
|
extern int _nsyylex(void);
|
2003-04-17 14:14:22 +00:00
|
|
|
extern int _nsyyparse(void);
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
extern int _nsyylineno;
|
2003-04-17 14:14:22 +00:00
|
|
|
#ifdef _NSS_DEBUG
|
|
|
|
extern void _nsdbtdump(const ns_dbt *);
|
|
|
|
#endif
|
Add nsswitch support. By creating an /etc/nsswitch.conf file, you can
configure FreeBSD so that various databases such as passwd and group can be
looked up using flat files, NIS, or Hesiod.
= Hesiod has been added to libc (see hesiod(3)).
= A library routine for parsing nsswitch.conf and invoking callback
functions as specified has been added to libc (see nsdispatch(3)).
= The following C library functions have been modified to use nsdispatch:
. getgrent, getgrnam, getgrgid
. getpwent, getpwnam, getpwuid
. getusershell
. getaddrinfo
. gethostbyname, gethostbyname2, gethostbyaddr
. getnetbyname, getnetbyaddr
. getipnodebyname, getipnodebyaddr, getnodebyname, getnodebyaddr
= host.conf has been removed from src/etc. rc.network has been modified
to warn that host.conf is no longer used at boot time. In addition, if
there is a host.conf but no nsswitch.conf, the latter is created at boot
time from the former.
Obtained from: NetBSD
2000-09-06 18:16:48 +00:00
|
|
|
#endif /* _NS_PRIVATE */
|
|
|
|
|
|
|
|
__END_DECLS
|
|
|
|
|
|
|
|
#endif /* !_NSSWITCH_H */
|