source: branches/samba-3.0/source/nsswitch/winbind_nss_netbsd.h

Last change on this file was 1, checked in by Paul Smedley, 18 years ago

Initial code import

File size: 1.4 KB
Line 
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 Library General Public
11 License as published by the Free Software Foundation; either
12 version 2 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 Library General Public
20 License along with this library; if not, write to the
21 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA.
23*/
24
25#ifndef _WINBIND_NSS_NETBSD_H
26#define _WINBIND_NSS_NETBSD_H
27
28#include <nsswitch.h>
29
30 /* dynamic nsswitch with "new" getpw* nsdispatch API available */
31#if defined(NSS_MODULE_INTERFACE_VERSION) && defined(HAVE_GETPWENT_R)
32
33typedef int NSS_STATUS;
34
35#define NSS_STATUS_SUCCESS NS_SUCCESS
36#define NSS_STATUS_NOTFOUND NS_NOTFOUND
37#define NSS_STATUS_UNAVAIL NS_UNAVAIL
38#define NSS_STATUS_TRYAGAIN NS_TRYAGAIN
39
40#endif /* NSS_MODULE_INTERFACE_VERSION && HAVE_GETPWENT_R */
41
42#endif /* _WINBIND_NSS_NETBSD_H */
Note: See TracBrowser for help on using the repository browser.