Changed checking for WINBINDD_OK return value instead of NSS_STATUS_SUCCESS
authorTim Potter <tpot@samba.org>
Thu, 6 Jul 2000 06:47:38 +0000 (06:47 +0000)
committerTim Potter <tpot@samba.org>
Thu, 6 Jul 2000 06:47:38 +0000 (06:47 +0000)
when looking up sids from winbindd.
(This used to be commit 79fb877bf13ba462ad0a878d8975f8b5183e3ea3)

source3/rpc_server/srv_lsa.c

index 9c9424832bed9838bb3dd82e00ebbb02aaf585b4..84d2601d2ce2ca430cc165bcce4b281241d1edc0 100644 (file)
@@ -286,7 +286,7 @@ BOOL winbind_lookup_sid(DOM_SID *sid, fstring dom_name, fstring name,
 {
        struct winbindd_request request;
        struct winbindd_response response;
-       enum winbindd_result result;
+       enum nss_status result;
        DOM_SID tmp_sid;
        uint32 rid;
        fstring sid_str;
@@ -321,7 +321,7 @@ BOOL winbind_lookup_sid(DOM_SID *sid, fstring dom_name, fstring name,
 
        /* Copy out result */
 
-       if (result == WINBINDD_OK) {
+       if (result == NSS_STATUS_SUCCESS) {
                parse_domain_user(response.data.name.name, dom_name, name);
                *name_type = response.data.name.type;
        } else {
@@ -335,7 +335,7 @@ BOOL winbind_lookup_sid(DOM_SID *sid, fstring dom_name, fstring name,
                        lookup_known_rid(&tmp_sid, rid, name, name_type);
        }
 
-       return (result == WINBINDD_OK);
+       return (result == NSS_STATUS_SUCCESS);
 }
 
 /***************************************************************************