source: vendor/current/nsswitch/winbind_nss_solaris.h

Last change on this file was 988, checked in by Silvan Scherrer, 9 years ago

Samba Server: update vendor to version 4.4.3

File size: 2.2 KB
Line 
1/*
2 Unix SMB/CIFS implementation.
3
4 Winbind daemon for ntdom nss module
5
6 Copyright (C) Tim Potter 2000
7
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Lesser General Public
10 License as published by the Free Software Foundation; either
11 version 3 of the License, or (at your option) any later version.
12
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.
17
18 You should have received a copy of the GNU Lesser General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
20*/
21
22#ifndef _WINBIND_NSS_SOLARIS_H
23#define _WINBIND_NSS_SOLARIS_H
24
25#include <nss_common.h>
26#include <nss_dbdefs.h>
27#include <nsswitch.h>
28#include "system/passwd.h"
29
30typedef nss_status_t NSS_STATUS;
31
32#define NSS_STATUS_SUCCESS NSS_SUCCESS
33#define NSS_STATUS_NOTFOUND NSS_NOTFOUND
34#define NSS_STATUS_UNAVAIL NSS_UNAVAIL
35#define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
36
37/* The solaris winbind is implemented as a wrapper around the linux
38 version. */
39
40NSS_STATUS _nss_winbind_setpwent(void);
41NSS_STATUS _nss_winbind_endpwent(void);
42NSS_STATUS _nss_winbind_getpwent_r(struct passwd* result, char* buffer,
43 size_t buflen, int* errnop);
44NSS_STATUS _nss_winbind_getpwuid_r(uid_t, struct passwd*, char* buffer,
45 size_t buflen, int* errnop);
46NSS_STATUS _nss_winbind_getpwnam_r(const char* name, struct passwd* result,
47 char* buffer, size_t buflen, int* errnop);
48
49NSS_STATUS _nss_winbind_setgrent(void);
50NSS_STATUS _nss_winbind_endgrent(void);
51NSS_STATUS _nss_winbind_getgrent_r(struct group* result, char* buffer,
52 size_t buflen, int* errnop);
53NSS_STATUS _nss_winbind_getgrnam_r(const char *name,
54 struct group *result, char *buffer,
55 size_t buflen, int *errnop);
56NSS_STATUS _nss_winbind_getgrgid_r(gid_t gid,
57 struct group *result, char *buffer,
58 size_t buflen, int *errnop);
59NSS_STATUS _nss_winbind_initgroups_dyn(char *user, gid_t group, long int *start,
60 long int *size, gid_t **groups,
61 long int limit, int *errnop);
62
63#endif /* _WINBIND_NSS_SOLARIS_H */
Note: See TracBrowser for help on using the repository browser.