2 Unix SMB/CIFS implementation.
4 Winbind daemon for ntdom nss module
6 Copyright (C) Tim Potter 2000
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public
19 License along with this library; if not, write to the
20 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA.
24 #ifndef _WINBIND_NSS_SOLARIS_H
25 #define _WINBIND_NSS_SOLARIS_H
27 #include <nss_common.h>
28 #include <nss_dbdefs.h>
31 typedef nss_status_t NSS_STATUS
;
33 #define NSS_STATUS_SUCCESS NSS_SUCCESS
34 #define NSS_STATUS_NOTFOUND NSS_NOTFOUND
35 #define NSS_STATUS_UNAVAIL NSS_UNAVAIL
36 #define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
38 /* The solaris winbind is implemented as a wrapper around the linux
41 NSS_STATUS
_nss_winbind_setpwent(void);
42 NSS_STATUS
_nss_winbind_endpwent(void);
43 NSS_STATUS
_nss_winbind_getpwent_r(struct passwd
* result
, char* buffer
,
44 size_t buflen
, int* errnop
);
45 NSS_STATUS
_nss_winbind_getpwuid_r(uid_t
, struct passwd
*, char* buffer
,
46 size_t buflen
, int* errnop
);
47 NSS_STATUS
_nss_winbind_getpwnam_r(const char* name
, struct passwd
* result
,
48 char* buffer
, size_t buflen
, int* errnop
);
50 NSS_STATUS
_nss_winbind_setgrent(void);
51 NSS_STATUS
_nss_winbind_endgrent(void);
52 NSS_STATUS
_nss_winbind_getgrent_r(struct group
* result
, char* buffer
,
53 size_t buflen
, int* errnop
);
54 NSS_STATUS
_nss_winbind_getgrnam_r(const char *name
,
55 struct group
*result
, char *buffer
,
56 size_t buflen
, int *errnop
);
57 NSS_STATUS
_nss_winbind_getgrgid_r(gid_t gid
,
58 struct group
*result
, char *buffer
,
59 size_t buflen
, int *errnop
);
61 #endif /* _WINBIND_NSS_SOLARIS_H */