git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
6cf0900
)
s3-winbind: Make sure the map is clean.
author
Andreas Schneider
<asn@samba.org>
Wed, 9 Nov 2011 19:48:23 +0000
(20:48 +0100)
committer
Andreas Schneider
<asn@samba.org>
Tue, 15 Nov 2011 13:22:00 +0000
(14:22 +0100)
source3/winbindd/idmap_util.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/idmap_util.c
b/source3/winbindd/idmap_util.c
index a44aaf5fe4c698423cf9b413549c8bb6d4f381ac..2ddf576dc83e2b2481465a6e06f5d3959c537af7 100644
(file)
--- a/
source3/winbindd/idmap_util.c
+++ b/
source3/winbindd/idmap_util.c
@@
-60,6
+60,7
@@
NTSTATUS idmap_uid_to_sid(const char *domname, struct dom_sid *sid, uid_t uid)
}
backend:
+ ZERO_STRUCT(map);
map.sid = sid;
map.xid.type = ID_TYPE_UID;
map.xid.id = uid;
@@
-119,6
+120,7
@@
NTSTATUS idmap_gid_to_sid(const char *domname, struct dom_sid *sid, gid_t gid)
}
backend:
+ ZERO_STRUCT(map);
map.sid = sid;
map.xid.type = ID_TYPE_GID;
map.xid.id = gid;
@@
-177,8
+179,9
@@
NTSTATUS idmap_sid_to_uid(const char *dom_name, struct dom_sid *sid, uid_t *uid)
}
backend:
+ ZERO_STRUCT(map);
map.sid = sid;
- map.xid.type = ID_TYPE_UID;
+ map.xid.type = ID_TYPE_UID;
ret = idmap_backends_sid_to_unixid(dom_name, &map);
@@
-250,6
+253,7
@@
NTSTATUS idmap_sid_to_gid(const char *domname, struct dom_sid *sid, gid_t *gid)
}
backend:
+ ZERO_STRUCT(map);
map.sid = sid;
map.xid.type = ID_TYPE_GID;