summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_sid.c
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-14 03:58:49 +0000
committerTim Potter <tpot@samba.org>2001-05-14 03:58:49 +0000
commita92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7 (patch)
tree30223ffae13f3f429e477d28279480553db1fdd7 /source/nsswitch/winbindd_sid.c
parentab58fdf77a12d101f5ac6b6702cd8ed9dc2c7d55 (diff)
downloadsamba-a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7.tar.gz
samba-a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7.tar.xz
samba-a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7.zip
Compile fixes for dynamic samr_query_userinfo() stuff.
Diffstat (limited to 'source/nsswitch/winbindd_sid.c')
-rw-r--r--source/nsswitch/winbindd_sid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/nsswitch/winbindd_sid.c b/source/nsswitch/winbindd_sid.c
index e426dd588e0..bc014f26918 100644
--- a/source/nsswitch/winbindd_sid.c
+++ b/source/nsswitch/winbindd_sid.c
@@ -30,7 +30,7 @@ enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
{
extern DOM_SID global_sid_Builtin;
enum SID_NAME_USE type;
- DOM_SID sid;
+ DOM_SID sid, tmp_sid;
uint32 rid;
fstring name;
@@ -43,7 +43,8 @@ enum winbindd_result winbindd_lookupsid(struct winbindd_cli_state *state)
/* Don't look up BUILTIN sids */
- sid_peek_rid(&sid, &rid);
+ sid_copy(&tmp_sid, &sid);
+ sid_split_rid(&tmp_sid, &rid);
if (sid_equal(&tmp_sid, &global_sid_Builtin)) {
return WINBINDD_ERROR;