diff options
Diffstat (limited to 'source3/nsswitch')
-rw-r--r-- | source3/nsswitch/wb_client.c | 8 | ||||
-rw-r--r-- | source3/nsswitch/wbinfo.c | 2 |
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); |