1/* 2 Unix SMB/CIFS implementation. 3 4 NetBSD loadable authentication module, providing identification 5 routines against Samba winbind/Windows NT Domain 6 7 Copyright (C) Luke Mewburn 2004-2005 8 9 This library is free software; you can redistribute it and/or 10 modify it under the terms of the GNU Lesser General Public 11 License as published by the Free Software Foundation; either 12 version 3 of the License, or (at your option) any later version. 13 14 This library is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 Library General Public License for more details. 18 19 You should have received a copy of the GNU Lesser General Public License 20 along with this program. If not, see <http://www.gnu.org/licenses/>. 21*/ 22 23#ifndef _WINBIND_NSS_NETBSD_H 24#define _WINBIND_NSS_NETBSD_H 25 26#include <nsswitch.h> 27 28 /* dynamic nsswitch with "new" getpw* nsdispatch API available */ 29#if defined(NSS_MODULE_INTERFACE_VERSION) && defined(HAVE_GETPWENT_R) 30 31typedef int NSS_STATUS; 32 33#define NSS_STATUS_SUCCESS NS_SUCCESS 34#define NSS_STATUS_NOTFOUND NS_NOTFOUND 35#define NSS_STATUS_UNAVAIL NS_UNAVAIL 36#define NSS_STATUS_TRYAGAIN NS_TRYAGAIN 37 38#endif /* NSS_MODULE_INTERFACE_VERSION && HAVE_GETPWENT_R */ 39 40#endif /* _WINBIND_NSS_NETBSD_H */ 41