~zulcss/samba/server-dailies-3.4

« back to all changes in this revision

Viewing changes to nsswitch/winbind_nss_netbsd.h

  • Committer: Chuck Short
  • Date: 2010-09-28 20:38:39 UTC
  • Revision ID: zulcss@ubuntu.com-20100928203839-pgjulytsi9ue63x1
Initial version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
31
typedef 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 */