The Samba-Bugzilla – Attachment 267 Details for
Bug 797
FreeBSD nss module implementation incorrect
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
winbind_nss_linux.c patch for FreeBSD 5.1 nss support
winbind_nss_linux.c.patch (text/plain), 2.84 KB, created by
Aaron Collins
on 2003-11-25 10:05:39 UTC
(
hide
)
Description:
winbind_nss_linux.c patch for FreeBSD 5.1 nss support
Filename:
MIME Type:
Creator:
Aaron Collins
Created:
2003-11-25 10:05:39 UTC
Size:
2.84 KB
patch
obsolete
>*** /home/hellfire/winbind_nss_linux.c.old Thu Nov 20 12:39:45 2003 >--- winbind_nss_linux.c Thu Nov 20 12:33:45 2003 >*************** >*** 34,39 **** >--- 34,103 ---- > > extern int winbindd_fd; > >+ >+ >+ #ifdef FREEBSD >+ /* Make sure that the module gets registered needed by freebsd 5.1 >+ */ >+ >+ extern enum nss_status _nss_winbind_getgrent_r(struct group *, char *, size_t, >+ int *); >+ extern enum nss_status _nss_winbind_getgrnam_r(const char *, struct group *, >+ char *, size_t, int *); >+ extern enum nss_status _nss_winbind_getgrgid_r(gid_t gid, struct group *, char *, >+ size_t, int *); >+ extern enum nss_status _nss_winbind_setgrent(void); >+ extern enum nss_status _nss_winbind_endgrent(void); >+ >+ extern enum nss_status _nss_winbind_getpwent_r(struct passwd *, char *, size_t, >+ int *); >+ extern enum nss_status _nss_winbind_getpwnam_r(const char *, struct passwd *, >+ char *, size_t, int *); >+ extern enum nss_status _nss_winbind_getpwuid_r(gid_t gid, struct passwd *, char *, >+ size_t, int *); >+ extern enum nss_status _nss_winbind_setpwent(void); >+ extern enum nss_status _nss_winbind_endpwent(void); >+ >+ NSS_METHOD_PROTOTYPE(__nss_compat_getgrnam_r); >+ NSS_METHOD_PROTOTYPE(__nss_compat_getgrgid_r); >+ NSS_METHOD_PROTOTYPE(__nss_compat_getgrent_r); >+ NSS_METHOD_PROTOTYPE(__nss_compat_setgrent); >+ NSS_METHOD_PROTOTYPE(__nss_compat_endgrent); >+ >+ NSS_METHOD_PROTOTYPE(__nss_compat_getpwnam_r); >+ NSS_METHOD_PROTOTYPE(__nss_compat_getpwuid_r); >+ NSS_METHOD_PROTOTYPE(__nss_compat_getpwent_r); >+ NSS_METHOD_PROTOTYPE(__nss_compat_setpwent); >+ NSS_METHOD_PROTOTYPE(__nss_compat_endpwent); >+ >+ static ns_mtab methods[] = { >+ { NSDB_GROUP, "getgrnam_r", __nss_compat_getgrnam_r, _nss_winbind_getgrnam_r }, >+ { NSDB_GROUP, "getgrgid_r", __nss_compat_getgrgid_r, _nss_winbind_getgrgid_r }, >+ { NSDB_GROUP, "getgrent_r", __nss_compat_getgrent_r, _nss_winbind_getgrent_r }, >+ { NSDB_GROUP, "endgrent", __nss_compat_setgrent, _nss_winbind_setgrent }, >+ { NSDB_GROUP, "setgrent", __nss_compat_endgrent, _nss_winbind_endgrent }, >+ >+ { NSDB_PASSWD, "getpwnam_r", __nss_compat_getpwnam_r, _nss_winbind_getpwnam_r }, >+ { NSDB_PASSWD, "getpwuid_r", __nss_compat_getpwuid_r, _nss_winbind_getpwuid_r }, >+ { NSDB_PASSWD, "getpwent_r", __nss_compat_getpwent_r, _nss_winbind_getpwent_r }, >+ { NSDB_PASSWD, "endpwent", __nss_compat_setpwent, _nss_winbind_setpwent }, >+ { NSDB_PASSWD, "setpwent", __nss_compat_endpwent, _nss_winbind_endpwent }, >+ >+ }; >+ >+ >+ ns_mtab * >+ nss_module_register(const char *source, unsigned int *mtabsize, >+ nss_module_unregister_fn *unreg) >+ { >+ *mtabsize = sizeof(methods)/sizeof(methods[0]); >+ *unreg = NULL; >+ return (methods); >+ } >+ #endif >+ > /* Allocate some space from the nss static buffer. The buffer and buflen > are the pointers passed in by the C library to the _nss_ntdom_* > functions. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 797
: 267