libwbclient: added support for WBC_ID_TYPE_BOTH
[kai/samba-autobuild/.git] / nsswitch / libwbclient / wbc_idmap.c
index 5325dbe5ce531680afc23e3f1c53be9d6847e1f2..04e7d02995e50e0d0c11bf750b4498cb2f1f64a9 100644 (file)
@@ -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');