00001 /* 00002 Unix SMB/CIFS implementation. 00003 00004 NetBSD loadable authentication module, providing identification 00005 routines against Samba winbind/Windows NT Domain 00006 00007 Copyright (C) Luke Mewburn 2004-2005 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Library General Public 00011 License as published by the Free Software Foundation; either 00012 version 2 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Library General Public License for more details. 00018 00019 You should have received a copy of the GNU Library General Public 00020 License along with this library; if not, write to the 00021 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00022 Boston, MA 02111-1307, USA. 00023 */ 00024 00025 #ifndef _WINBIND_NSS_NETBSD_H 00026 #define _WINBIND_NSS_NETBSD_H 00027 00028 #include <nsswitch.h> 00029 00030 /* dynamic nsswitch with "new" getpw* nsdispatch API available */ 00031 #if defined(NSS_MODULE_INTERFACE_VERSION) && defined(HAVE_GETPWENT_R) 00032 00033 typedef int NSS_STATUS; 00034 00035 #define NSS_STATUS_SUCCESS NS_SUCCESS 00036 #define NSS_STATUS_NOTFOUND NS_NOTFOUND 00037 #define NSS_STATUS_UNAVAIL NS_UNAVAIL 00038 #define NSS_STATUS_TRYAGAIN NS_TRYAGAIN 00039 00040 #endif /* NSS_MODULE_INTERFACE_VERSION && HAVE_GETPWENT_R */ 00041 00042 #endif /* _WINBIND_NSS_NETBSD_H */