summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-06-04 04:12:38 +0000
committerTim Potter <tpot@samba.org>2001-06-04 04:12:38 +0000
commitda3943ed35232ee54e67e955b2dc4855fd3301be (patch)
tree38269c47e9966e9414191c1b7b4536dccba77e5a /source3
parent384a328457676f1ece408fd0dca0a4c6954da872 (diff)
downloadsamba-da3943ed35232ee54e67e955b2dc4855fd3301be.tar.gz
samba-da3943ed35232ee54e67e955b2dc4855fd3301be.tar.bz2
samba-da3943ed35232ee54e67e955b2dc4855fd3301be.zip
More compile fixups for winbind portability.
(This used to be commit 086f332bb11ff0b2474554f81ef257e6a444a5cc)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/wb_client.c8
-rw-r--r--source3/nsswitch/wbinfo.c2
2 files changed, 7 insertions, 3 deletions
diff --git a/source3/nsswitch/wb_client.c b/source3/nsswitch/wb_client.c
index 366edbbe41..165b0c614b 100644
--- a/source3/nsswitch/wb_client.c
+++ b/source3/nsswitch/wb_client.c
@@ -25,6 +25,9 @@
#include "includes.h"
+int winbindd_request(int req_type, struct winbindd_request *request,
+ struct winbindd_response *response);
+
/* Copy of parse_domain_user from winbindd_util.c. Parse a string of the
form DOMAIN/user into a domain and a user */
@@ -53,7 +56,7 @@ BOOL winbind_lookup_name(const char *name, DOM_SID *sid, enum SID_NAME_USE *name
{
struct winbindd_request request;
struct winbindd_response response;
- enum nss_status result;
+ NSS_STATUS result;
if (!sid || !name_type)
return False;
@@ -64,6 +67,7 @@ BOOL winbind_lookup_name(const char *name, DOM_SID *sid, enum SID_NAME_USE *name
ZERO_STRUCT(response);
fstrcpy(request.data.name, name);
+
if ((result = winbindd_request(WINBINDD_LOOKUPNAME, &request,
&response)) == NSS_STATUS_SUCCESS) {
string_to_sid(sid, response.data.sid.sid);
@@ -79,7 +83,7 @@ BOOL winbind_lookup_sid(DOM_SID *sid, fstring dom_name, fstring name, enum SID_N
{
struct winbindd_request request;
struct winbindd_response response;
- enum nss_status result;
+ NSS_STATUS result;
fstring sid_str;
/* Initialise request */
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index 6c5c476dfc..237995af7f 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -25,7 +25,7 @@
#include "winbindd.h"
#include "debug.h"
-/* Prototypes from common.h - only needed #if TNG */
+/* Prototypes from common.h */
int winbindd_request(int req_type, struct winbindd_request *request,
struct winbindd_response *response);