00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _WINBIND_NSS_SOLARIS_H
00025 #define _WINBIND_NSS_SOLARIS_H
00026
00027
00028 #ifndef __cplusplus
00029 #undef class
00030 #undef private
00031 #undef public
00032 #undef protected
00033 #undef template
00034 #undef this
00035 #undef new
00036 #undef delete
00037 #undef friend
00038 #endif
00039
00040 #include <nss_common.h>
00041
00042 #ifndef __cplusplus
00043 #define class #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00044 #define private #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00045 #define public #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00046 #define protected #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00047 #define template #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00048 #define this #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00049 #define new #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00050 #define delete #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00051 #define friend #error DONT_USE_CPLUSPLUS_RESERVED_NAMES
00052 #endif
00053
00054 #include <nss_dbdefs.h>
00055 #include <nsswitch.h>
00056
00057 typedef nss_status_t NSS_STATUS;
00058
00059 #define NSS_STATUS_SUCCESS NSS_SUCCESS
00060 #define NSS_STATUS_NOTFOUND NSS_NOTFOUND
00061 #define NSS_STATUS_UNAVAIL NSS_UNAVAIL
00062 #define NSS_STATUS_TRYAGAIN NSS_TRYAGAIN
00063
00064
00065
00066
00067 NSS_STATUS _nss_winbind_setpwent(void);
00068 NSS_STATUS _nss_winbind_endpwent(void);
00069 NSS_STATUS _nss_winbind_getpwent_r(struct passwd* result, char* buffer,
00070 size_t buflen, int* errnop);
00071 NSS_STATUS _nss_winbind_getpwuid_r(uid_t, struct passwd*, char* buffer,
00072 size_t buflen, int* errnop);
00073 NSS_STATUS _nss_winbind_getpwnam_r(const char* name, struct passwd* result,
00074 char* buffer, size_t buflen, int* errnop);
00075
00076 NSS_STATUS _nss_winbind_setgrent(void);
00077 NSS_STATUS _nss_winbind_endgrent(void);
00078 NSS_STATUS _nss_winbind_getgrent_r(struct group* result, char* buffer,
00079 size_t buflen, int* errnop);
00080 NSS_STATUS _nss_winbind_getgrnam_r(const char *name,
00081 struct group *result, char *buffer,
00082 size_t buflen, int *errnop);
00083 NSS_STATUS _nss_winbind_getgrgid_r(gid_t gid,
00084 struct group *result, char *buffer,
00085 size_t buflen, int *errnop);
00086
00087 #endif