git.samba.org
/
kai
/
samba-autobuild
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libwbclient: added support for WBC_ID_TYPE_BOTH
[kai/samba-autobuild/.git]
/
nsswitch
/
libwbclient
/
wbc_idmap.c
diff --git
a/nsswitch/libwbclient/wbc_idmap.c
b/nsswitch/libwbclient/wbc_idmap.c
index 5325dbe5ce531680afc23e3f1c53be9d6847e1f2..04e7d02995e50e0d0c11bf750b4498cb2f1f64a9 100644
(file)
--- a/
nsswitch/libwbclient/wbc_idmap.c
+++ b/
nsswitch/libwbclient/wbc_idmap.c
@@
-370,6
+370,10
@@
wbcErr wbcSidsToUnixIds(const struct wbcDomainSid *sids, uint32_t num_sids,
id->type = WBC_ID_TYPE_GID;
id->id.gid = strtoul(p+1, &q, 10);
break;
+ case 'B':
+ id->type = WBC_ID_TYPE_BOTH;
+ id->id.uid = strtoul(p+1, &q, 10);
+ break;
default:
id->type = WBC_ID_TYPE_NOT_SPECIFIED;
q = strchr(p, '\n');