map 50 examples/validchars/validchr.c unsigned char map[256], upper[256], lower[256]; map 66 examples/validchars/validchr.c map[i] = i; map 87 examples/validchars/validchr.c map[i] = c; map 106 examples/validchars/validchr.c if (map[i] && map[i]!=i && lower[map[i]]!=i) map 110 examples/validchars/validchr.c map[i], i, i, map[i], map[i], map[i]); map 113 examples/validchars/validchr.c lower[i], i, i, map[i]); map 116 examples/validchars/validchr.c if (map[i] && map[i]==i) map 542 libcli/nbt/nbtsocket.c } map[] = { map 551 libcli/nbt/nbtsocket.c for (i=0;i<ARRAY_SIZE(map);i++) { map 552 libcli/nbt/nbtsocket.c if (map[i].rcode == rcode) { map 553 libcli/nbt/nbtsocket.c return map[i].status; map 486 nsswitch/winbind_nss_irix.c char *map; map 494 nsswitch/winbind_nss_irix.c map = nsd_attr_fetch_string(rq->f_attrs, "table", (char*)0); map 496 nsswitch/winbind_nss_irix.c if (! map || ! key) { map 502 nsswitch/winbind_nss_irix.c nsd_logprintf(NSD_LOG_MIN, "lookup (winbind %s)\n",map); map 511 nsswitch/winbind_nss_irix.c if (strcasecmp(map,"passwd.byuid") == 0) { map 514 nsswitch/winbind_nss_irix.c } else if (strcasecmp(map,"passwd.byname") == 0) { map 519 nsswitch/winbind_nss_irix.c } else if (strcasecmp(map,"group.byname") == 0) { map 524 nsswitch/winbind_nss_irix.c } else if (strcasecmp(map,"group.bygid") == 0) { map 527 nsswitch/winbind_nss_irix.c } else if (strcasecmp(map,"hosts.byname") == 0) { map 531 nsswitch/winbind_nss_irix.c } else if (strcasecmp(map,"hosts.byaddr") == 0) { map 550 nsswitch/winbind_nss_irix.c char *map; map 556 nsswitch/winbind_nss_irix.c map = nsd_attr_fetch_string(rq->f_attrs, "table", (char*)0); map 557 nsswitch/winbind_nss_irix.c if (! map ) { map 563 nsswitch/winbind_nss_irix.c nsd_logprintf(NSD_LOG_MIN, "list (winbind %s)\n",map); map 571 nsswitch/winbind_nss_irix.c char *map; map 576 nsswitch/winbind_nss_irix.c map = nsd_attr_fetch_string(rq->f_attrs, "table", (char*)0); map 584 nsswitch/winbind_nss_irix.c if (strcasecmp(map,"passwd.byname") == 0) { map 602 nsswitch/winbind_nss_irix.c } else if (strcasecmp(map,"group.byname") == 0) { map 200 nsswitch/wins.c char *map; map 213 nsswitch/wins.c map = nsd_attr_fetch_string(rq->f_attrs, "table", (char*)0); map 214 nsswitch/wins.c if (! map) { map 232 nsswitch/wins.c if (StrCaseCmp(map,"hosts.byaddr") == 0) { map 260 nsswitch/wins.c } else if (StrCaseCmp(map,"hosts.byname") == 0) { map 288 nsswitch/wins.c nsd_logprintf(NSD_LOG_LOW, "lookup (wins %s) %s\n",map,response); map 66 source3/groupdb/mapping.c GROUP_MAP map; map 73 source3/groupdb/mapping.c map.gid=gid; map 74 source3/groupdb/mapping.c if (!string_to_sid(&map.sid, sid)) { map 79 source3/groupdb/mapping.c map.sid_name_use=sid_name_use; map 80 source3/groupdb/mapping.c fstrcpy(map.nt_name, nt_name); map 81 source3/groupdb/mapping.c fstrcpy(map.comment, comment); map 83 source3/groupdb/mapping.c return pdb_add_group_mapping_entry(&map); map 122 source3/groupdb/mapping.c bool get_domain_group_from_sid(DOM_SID sid, GROUP_MAP *map) map 137 source3/groupdb/mapping.c ret = pdb_getgrsid(map, sid); map 148 source3/groupdb/mapping.c fstrcpy( map->nt_name, "None" ); map 149 source3/groupdb/mapping.c fstrcpy( map->comment, "Ordinary Users" ); map 150 source3/groupdb/mapping.c sid_copy( &map->sid, &sid ); map 151 source3/groupdb/mapping.c map->sid_name_use = SID_NAME_DOM_GRP; map 152 source3/groupdb/mapping.c map->gid = (gid_t)-1; map 163 source3/groupdb/mapping.c if (map->sid_name_use!=SID_NAME_DOM_GRP) { map 169 source3/groupdb/mapping.c if (map->gid==-1) { map 173 source3/groupdb/mapping.c DEBUG(10, ("get_domain_group_from_sid: SID is mapped to gid:%lu\n",(unsigned long)map->gid)); map 175 source3/groupdb/mapping.c grp = getgrgid(map->gid); map 403 source3/groupdb/mapping.c NTSTATUS pdb_default_getgrsid(struct pdb_methods *methods, GROUP_MAP *map, map 410 source3/groupdb/mapping.c return backend->get_group_map_from_sid(sid, map) ? map 414 source3/groupdb/mapping.c NTSTATUS pdb_default_getgrgid(struct pdb_methods *methods, GROUP_MAP *map, map 421 source3/groupdb/mapping.c return backend->get_group_map_from_gid(gid, map) ? map 425 source3/groupdb/mapping.c NTSTATUS pdb_default_getgrnam(struct pdb_methods *methods, GROUP_MAP *map, map 432 source3/groupdb/mapping.c return backend->get_group_map_from_ntname(name, map) ? map 437 source3/groupdb/mapping.c GROUP_MAP *map) map 443 source3/groupdb/mapping.c return backend->add_mapping_entry(map, TDB_INSERT) ? map 448 source3/groupdb/mapping.c GROUP_MAP *map) map 454 source3/groupdb/mapping.c return backend->add_mapping_entry(map, TDB_REPLACE) ? map 490 source3/groupdb/mapping.c GROUP_MAP map; map 525 source3/groupdb/mapping.c map.gid = gid; map 526 source3/groupdb/mapping.c sid_copy(&map.sid, &sid); map 527 source3/groupdb/mapping.c map.sid_name_use = SID_NAME_ALIAS; map 528 source3/groupdb/mapping.c fstrcpy(map.nt_name, name); map 529 source3/groupdb/mapping.c fstrcpy(map.comment, ""); map 531 source3/groupdb/mapping.c status = pdb_add_group_mapping_entry(&map); map 554 source3/groupdb/mapping.c GROUP_MAP map; map 556 source3/groupdb/mapping.c if (!pdb_getgrsid(&map, *sid)) map 559 source3/groupdb/mapping.c if ((map.sid_name_use != SID_NAME_ALIAS) && map 560 source3/groupdb/mapping.c (map.sid_name_use != SID_NAME_WKN_GRP)) { map 563 source3/groupdb/mapping.c sid_type_lookup(map.sid_name_use))); map 567 source3/groupdb/mapping.c fstrcpy(info->acct_name, map.nt_name); map 568 source3/groupdb/mapping.c fstrcpy(info->acct_desc, map.comment); map 569 source3/groupdb/mapping.c sid_peek_rid(&map.sid, &info->rid); map 577 source3/groupdb/mapping.c GROUP_MAP map; map 579 source3/groupdb/mapping.c if (!pdb_getgrsid(&map, *sid)) map 582 source3/groupdb/mapping.c fstrcpy(map.nt_name, info->acct_name); map 583 source3/groupdb/mapping.c fstrcpy(map.comment, info->acct_desc); map 585 source3/groupdb/mapping.c return pdb_update_group_mapping_entry(&map); map 672 source3/groupdb/mapping.c NTSTATUS pdb_nop_getgrsid(struct pdb_methods *methods, GROUP_MAP *map, map 678 source3/groupdb/mapping.c NTSTATUS pdb_nop_getgrgid(struct pdb_methods *methods, GROUP_MAP *map, map 684 source3/groupdb/mapping.c NTSTATUS pdb_nop_getgrnam(struct pdb_methods *methods, GROUP_MAP *map, map 691 source3/groupdb/mapping.c GROUP_MAP *map) map 697 source3/groupdb/mapping.c GROUP_MAP *map) map 721 source3/groupdb/mapping.c GROUP_MAP map; map 725 source3/groupdb/mapping.c res = get_domain_group_from_sid(*sid, &map); map 731 source3/groupdb/mapping.c fstrcpy(info->acct_name, map.nt_name); map 732 source3/groupdb/mapping.c fstrcpy(info->acct_desc, map.comment); map 739 source3/groupdb/mapping.c GROUP_MAP map; map 741 source3/groupdb/mapping.c if (!get_domain_group_from_sid(*sid, &map)) map 744 source3/groupdb/mapping.c fstrcpy(map.nt_name, info->acct_name); map 745 source3/groupdb/mapping.c fstrcpy(map.comment, info->acct_desc); map 747 source3/groupdb/mapping.c return NT_STATUS_IS_OK(pdb_update_group_mapping_entry(&map)); map 759 source3/groupdb/mapping.c GROUP_MAP map; map 792 source3/groupdb/mapping.c map.gid = gid; map 793 source3/groupdb/mapping.c sid_copy(&map.sid, &sid); map 794 source3/groupdb/mapping.c map.sid_name_use = SID_NAME_ALIAS; map 795 source3/groupdb/mapping.c fstrcpy(map.nt_name, groupname); map 796 source3/groupdb/mapping.c fstrcpy(map.comment, ""); map 798 source3/groupdb/mapping.c status = pdb_add_group_mapping_entry(&map); map 20 source3/groupdb/mapping.h bool (*add_mapping_entry)(GROUP_MAP *map, int flag); map 21 source3/groupdb/mapping.h bool (*get_group_map_from_sid)(DOM_SID sid, GROUP_MAP *map); map 22 source3/groupdb/mapping.h bool (*get_group_map_from_gid)(gid_t gid, GROUP_MAP *map); map 23 source3/groupdb/mapping.h bool (*get_group_map_from_ntname)(const char *name, GROUP_MAP *map); map 143 source3/groupdb/mapping_ldb.c static bool add_mapping_entry(GROUP_MAP *map, int flag) map 154 source3/groupdb/mapping_ldb.c msg->dn = mapping_dn(msg, &map->sid); map 161 source3/groupdb/mapping_ldb.c sid_to_fstring(string_sid, &map->sid)) != LDB_SUCCESS || map 162 source3/groupdb/mapping_ldb.c ldb_msg_add_fmt(msg, "gidNumber", "%u", (unsigned)map->gid) != LDB_SUCCESS || map 163 source3/groupdb/mapping_ldb.c ldb_msg_add_fmt(msg, "sidNameUse", "%u", (unsigned)map->sid_name_use) != LDB_SUCCESS || map 164 source3/groupdb/mapping_ldb.c ldb_msg_add_string(msg, "comment", map->comment) != LDB_SUCCESS || map 165 source3/groupdb/mapping_ldb.c ldb_msg_add_string(msg, "ntName", map->nt_name) != LDB_SUCCESS) { map 192 source3/groupdb/mapping_ldb.c static bool msg_to_group_map(struct ldb_message *msg, GROUP_MAP *map) map 196 source3/groupdb/mapping_ldb.c map->gid = ldb_msg_find_attr_as_int(msg, "gidNumber", -1); map 197 source3/groupdb/mapping_ldb.c map->sid_name_use = ldb_msg_find_attr_as_int(msg, "sidNameUse", -1); map 198 source3/groupdb/mapping_ldb.c fstrcpy(map->nt_name, ldb_msg_find_attr_as_string(msg, "ntName", NULL)); map 199 source3/groupdb/mapping_ldb.c fstrcpy(map->comment, ldb_msg_find_attr_as_string(msg, "comment", NULL)); map 202 source3/groupdb/mapping_ldb.c if (!string_to_sid(&map->sid, sidstr) || map 203 source3/groupdb/mapping_ldb.c map->gid == (gid_t)-1 || map 204 source3/groupdb/mapping_ldb.c map->sid_name_use == (enum lsa_SidType)-1) { map 215 source3/groupdb/mapping_ldb.c static bool get_group_map_from_sid(DOM_SID sid, GROUP_MAP *map) map 232 source3/groupdb/mapping_ldb.c if (!msg_to_group_map(res->msgs[0], map)) { map 245 source3/groupdb/mapping_ldb.c static bool get_group_map_from_gid(gid_t gid, GROUP_MAP *map) map 258 source3/groupdb/mapping_ldb.c if (!msg_to_group_map(res->msgs[0], map)) { map 271 source3/groupdb/mapping_ldb.c static bool get_group_map_from_ntname(const char *name, GROUP_MAP *map) map 283 source3/groupdb/mapping_ldb.c if (!msg_to_group_map(res->msgs[0], map)) { map 430 source3/groupdb/mapping_ldb.c GROUP_MAP map; map 432 source3/groupdb/mapping_ldb.c if (!get_group_map_from_sid(*alias, &map)) { map 437 source3/groupdb/mapping_ldb.c if ((map.sid_name_use != SID_NAME_ALIAS) && map 438 source3/groupdb/mapping_ldb.c (map.sid_name_use != SID_NAME_WKN_GRP)) { map 439 source3/groupdb/mapping_ldb.c DEBUG(0,("sid_name_use=%d\n", map.sid_name_use)); map 550 source3/groupdb/mapping_ldb.c GROUP_MAP map; map 557 source3/groupdb/mapping_ldb.c if (!string_to_sid(&map.sid, strlen(GROUP_PREFIX) + (const char *)key.dptr)) { map 564 source3/groupdb/mapping_ldb.c &map.gid, &map.sid_name_use, &map.nt_name, &map.comment); map 571 source3/groupdb/mapping_ldb.c if ((int)map.gid == -1) { map 578 source3/groupdb/mapping_ldb.c if (!add_mapping_entry(&map, 0)) { map 122 source3/groupdb/mapping_tdb.c static bool add_mapping_entry(GROUP_MAP *map, int flag) map 128 source3/groupdb/mapping_tdb.c key = group_mapping_key(talloc_tos(), &map->sid); map 134 source3/groupdb/mapping_tdb.c map->gid, map->sid_name_use, map->nt_name, map->comment); map 141 source3/groupdb/mapping_tdb.c len = tdb_pack((uint8 *)buf, len, "ddff", map->gid, map 142 source3/groupdb/mapping_tdb.c map->sid_name_use, map->nt_name, map->comment); map 158 source3/groupdb/mapping_tdb.c static bool get_group_map_from_sid(DOM_SID sid, GROUP_MAP *map) map 178 source3/groupdb/mapping_tdb.c &map->gid, &map->sid_name_use, map 179 source3/groupdb/mapping_tdb.c &map->nt_name, &map->comment); map 188 source3/groupdb/mapping_tdb.c sid_copy(&map->sid, &sid); map 193 source3/groupdb/mapping_tdb.c static bool dbrec2map(const struct db_record *rec, GROUP_MAP *map) map 201 source3/groupdb/mapping_tdb.c if (!string_to_sid(&map->sid, (const char *)rec->key.dptr map 207 source3/groupdb/mapping_tdb.c &map->gid, &map->sid_name_use, &map->nt_name, map 208 source3/groupdb/mapping_tdb.c &map->comment) != -1; map 215 source3/groupdb/mapping_tdb.c GROUP_MAP *map; map 222 source3/groupdb/mapping_tdb.c if (!dbrec2map(rec, state->map)) { map 228 source3/groupdb/mapping_tdb.c if (strequal(state->name, state->map->nt_name)) { map 234 source3/groupdb/mapping_tdb.c if (state->map->gid == state->gid) { map 247 source3/groupdb/mapping_tdb.c static bool get_group_map_from_gid(gid_t gid, GROUP_MAP *map) map 254 source3/groupdb/mapping_tdb.c state.map = map; map 265 source3/groupdb/mapping_tdb.c static bool get_group_map_from_ntname(const char *name, GROUP_MAP *map) map 271 source3/groupdb/mapping_tdb.c state.map = map; map 314 source3/groupdb/mapping_tdb.c GROUP_MAP map; map 317 source3/groupdb/mapping_tdb.c if (!dbrec2map(rec, &map)) { map 322 source3/groupdb/mapping_tdb.c && state->sid_name_use != map.sid_name_use) { map 324 source3/groupdb/mapping_tdb.c "requested type\n", map.nt_name)); map 328 source3/groupdb/mapping_tdb.c if ((state->unix_only == ENUM_ONLY_MAPPED) && (map.gid == -1)) { map 330 source3/groupdb/mapping_tdb.c map.nt_name)); map 335 source3/groupdb/mapping_tdb.c (sid_compare_domain(state->domsid, &map.sid) != 0)) { map 337 source3/groupdb/mapping_tdb.c sid_string_dbg(&map.sid))); map 349 source3/groupdb/mapping_tdb.c state->maps[state->num_maps] = map; map 458 source3/groupdb/mapping_tdb.c GROUP_MAP map; map 465 source3/groupdb/mapping_tdb.c if (!get_group_map_from_sid(*alias, &map)) map 468 source3/groupdb/mapping_tdb.c if ( (map.sid_name_use != SID_NAME_ALIAS) && map 469 source3/groupdb/mapping_tdb.c (map.sid_name_use != SID_NAME_WKN_GRP) ) map 598 source3/groupdb/mapping_tdb.c GROUP_MAP map; map 601 source3/groupdb/mapping_tdb.c if (!get_group_map_from_sid(*alias, &map)) map 604 source3/groupdb/mapping_tdb.c if ( (map.sid_name_use != SID_NAME_ALIAS) && map 605 source3/groupdb/mapping_tdb.c (map.sid_name_use != SID_NAME_WKN_GRP) ) map 53 source3/include/idmap.h NTSTATUS (*set_mapping)(struct idmap_domain *dom, const struct id_map *map); map 54 source3/include/idmap.h NTSTATUS (*remove_mapping)(struct idmap_domain *dom, const struct id_map *map); map 244 source3/include/passdb.h NTSTATUS (*getgrsid)(struct pdb_methods *methods, GROUP_MAP *map, DOM_SID sid); map 246 source3/include/passdb.h NTSTATUS (*getgrgid)(struct pdb_methods *methods, GROUP_MAP *map, gid_t gid); map 248 source3/include/passdb.h NTSTATUS (*getgrnam)(struct pdb_methods *methods, GROUP_MAP *map, const char *name); map 258 source3/include/passdb.h GROUP_MAP *map); map 261 source3/include/passdb.h GROUP_MAP *map); map 195 source3/include/proto.h bool get_domain_group_from_sid(DOM_SID sid, GROUP_MAP *map); map 201 source3/include/proto.h NTSTATUS pdb_default_getgrsid(struct pdb_methods *methods, GROUP_MAP *map, map 203 source3/include/proto.h NTSTATUS pdb_default_getgrgid(struct pdb_methods *methods, GROUP_MAP *map, map 205 source3/include/proto.h NTSTATUS pdb_default_getgrnam(struct pdb_methods *methods, GROUP_MAP *map, map 208 source3/include/proto.h GROUP_MAP *map); map 210 source3/include/proto.h GROUP_MAP *map); map 241 source3/include/proto.h NTSTATUS pdb_nop_getgrsid(struct pdb_methods *methods, GROUP_MAP *map, map 243 source3/include/proto.h NTSTATUS pdb_nop_getgrgid(struct pdb_methods *methods, GROUP_MAP *map, map 245 source3/include/proto.h NTSTATUS pdb_nop_getgrnam(struct pdb_methods *methods, GROUP_MAP *map, map 248 source3/include/proto.h GROUP_MAP *map); map 250 source3/include/proto.h GROUP_MAP *map); map 4556 source3/include/proto.h bool pdb_getgrsid(GROUP_MAP *map, DOM_SID sid); map 4557 source3/include/proto.h bool pdb_getgrgid(GROUP_MAP *map, gid_t gid); map 4558 source3/include/proto.h bool pdb_getgrnam(GROUP_MAP *map, const char *name); map 4562 source3/include/proto.h NTSTATUS pdb_add_group_mapping_entry(GROUP_MAP *map); map 4563 source3/include/proto.h NTSTATUS pdb_update_group_mapping_entry(GROUP_MAP *map); map 7226 source3/include/proto.h NTSTATUS idmap_set_mapping(const struct id_map *map); map 7227 source3/include/proto.h NTSTATUS idmap_remove_mapping(const struct id_map *map); map 296 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_attribute *map; map 301 source3/lib/ldb/modules/ldb_map.c map = &data->attribute_maps[i]; map 302 source3/lib/ldb/modules/ldb_map.c if (ldb_attr_cmp(map->local_name, "*") == 0) { map 306 source3/lib/ldb/modules/ldb_map.c switch (map->type) { map 311 source3/lib/ldb/modules/ldb_map.c if (ldb_attr_cmp(map->local_name, name) == 0) { map 312 source3/lib/ldb/modules/ldb_map.c return map; map 318 source3/lib/ldb/modules/ldb_map.c if (ldb_attr_cmp(map->u.rename.remote_name, name) == 0) { map 319 source3/lib/ldb/modules/ldb_map.c return map; map 324 source3/lib/ldb/modules/ldb_map.c for (j = 0; map->u.generate.remote_names && map->u.generate.remote_names[j]; j++) { map 325 source3/lib/ldb/modules/ldb_map.c if (ldb_attr_cmp(map->u.generate.remote_names[j], name) == 0) { map 326 source3/lib/ldb/modules/ldb_map.c return map; map 344 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_attribute *map = map_attr_find_local(data, attr); map 346 source3/lib/ldb/modules/ldb_map.c if (map == NULL) { map 349 source3/lib/ldb/modules/ldb_map.c if (map->type == MAP_IGNORE) { map 357 source3/lib/ldb/modules/ldb_map.c const char *map_attr_map_local(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr) map 359 source3/lib/ldb/modules/ldb_map.c if (map == NULL) { map 363 source3/lib/ldb/modules/ldb_map.c switch (map->type) { map 369 source3/lib/ldb/modules/ldb_map.c return talloc_strdup(mem_ctx, map->u.rename.remote_name); map 377 source3/lib/ldb/modules/ldb_map.c const char *map_attr_map_remote(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr) map 379 source3/lib/ldb/modules/ldb_map.c if (map == NULL) { map 383 source3/lib/ldb/modules/ldb_map.c if (map->type == MAP_KEEP) { map 387 source3/lib/ldb/modules/ldb_map.c return talloc_strdup(mem_ctx, map->local_name); map 420 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_attribute *map, const struct ldb_val *val) map 422 source3/lib/ldb/modules/ldb_map.c if (map && (map->type == MAP_CONVERT) && (map->u.convert.convert_local)) { map 423 source3/lib/ldb/modules/ldb_map.c return map->u.convert.convert_local(module, mem_ctx, val); map 431 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_attribute *map, const struct ldb_val *val) map 433 source3/lib/ldb/modules/ldb_map.c if (map && (map->type == MAP_CONVERT) && (map->u.convert.convert_remote)) { map 434 source3/lib/ldb/modules/ldb_map.c return map->u.convert.convert_remote(module, mem_ctx, val); map 461 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_attribute *map; map 479 source3/lib/ldb/modules/ldb_map.c map = map_attr_find_local(data, ldb_dn_get_component_name(dn, i)); map 482 source3/lib/ldb/modules/ldb_map.c if (map == NULL) { map 485 source3/lib/ldb/modules/ldb_map.c map_type = map->type; map 497 source3/lib/ldb/modules/ldb_map.c if (map->u.convert.convert_local == NULL) { map 506 source3/lib/ldb/modules/ldb_map.c name = map_attr_map_local(newdn, map, ldb_dn_get_component_name(dn, i)); map 509 source3/lib/ldb/modules/ldb_map.c value = ldb_val_map_local(module, newdn, map, ldb_dn_get_component_val(dn, i)); map 533 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_attribute *map; map 551 source3/lib/ldb/modules/ldb_map.c map = map_attr_find_remote(data, ldb_dn_get_component_name(dn, i)); map 554 source3/lib/ldb/modules/ldb_map.c if (map == NULL) { map 557 source3/lib/ldb/modules/ldb_map.c map_type = map->type; map 569 source3/lib/ldb/modules/ldb_map.c if (map->u.convert.convert_remote == NULL) { map 578 source3/lib/ldb/modules/ldb_map.c name = map_attr_map_remote(newdn, map, ldb_dn_get_component_name(dn, i)); map 581 source3/lib/ldb/modules/ldb_map.c value = ldb_val_map_remote(module, newdn, map, ldb_dn_get_component_val(dn, i)); map 663 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_objectclass *map = map_objectclass_find_local(data, name); map 666 source3/lib/ldb/modules/ldb_map.c if (map) { map 667 source3/lib/ldb/modules/ldb_map.c newval.data = (uint8_t*)talloc_strdup(mem_ctx, map->remote_name); map 735 source3/lib/ldb/modules/ldb_map.c const struct ldb_map_objectclass *map = map_objectclass_find_remote(data, name); map 738 source3/lib/ldb/modules/ldb_map.c if (map) { map 739 source3/lib/ldb/modules/ldb_map.c newval.data = (uint8_t*)talloc_strdup(mem_ctx, map->local_name); map 36 source3/lib/ldb/modules/ldb_map_inbound.c static struct ldb_message_element *ldb_msg_el_map_local(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_message_element *old) map 55 source3/lib/ldb/modules/ldb_map_inbound.c el->name = map_attr_map_local(el, map, old->name); map 58 source3/lib/ldb/modules/ldb_map_inbound.c el->values[i] = ldb_val_map_local(module, el->values, map, &old->values[i]); map 69 source3/lib/ldb/modules/ldb_map_inbound.c const struct ldb_map_attribute *map = map_attr_find_local(data, attr_name); map 73 source3/lib/ldb/modules/ldb_map_inbound.c if (map == NULL) { map 80 source3/lib/ldb/modules/ldb_map_inbound.c switch (map->type) { map 85 source3/lib/ldb/modules/ldb_map_inbound.c if (map->u.convert.convert_local == NULL) { map 89 source3/lib/ldb/modules/ldb_map_inbound.c map->local_name); map 95 source3/lib/ldb/modules/ldb_map_inbound.c el = ldb_msg_el_map_local(module, remote, map, old); map 99 source3/lib/ldb/modules/ldb_map_inbound.c if (map->u.generate.generate_remote == NULL) { map 103 source3/lib/ldb/modules/ldb_map_inbound.c map->local_name); map 113 source3/lib/ldb/modules/ldb_map_inbound.c map->u.generate.generate_remote(module, map->local_name, msg, remote, local); map 82 source3/lib/ldb/modules/ldb_map_outbound.c const struct ldb_map_attribute *map; map 121 source3/lib/ldb/modules/ldb_map_outbound.c map = map_attr_find_local(data, attrs[i]); map 122 source3/lib/ldb/modules/ldb_map_outbound.c if (map == NULL) { map 126 source3/lib/ldb/modules/ldb_map_outbound.c switch (map->type) { map 136 source3/lib/ldb/modules/ldb_map_outbound.c name = map->u.rename.remote_name; map 141 source3/lib/ldb/modules/ldb_map_outbound.c for (j = 0; map->u.generate.remote_names[j]; j++) { map 147 source3/lib/ldb/modules/ldb_map_outbound.c result[last] = talloc_strdup(result, map->u.generate.remote_names[j]); map 218 source3/lib/ldb/modules/ldb_map_outbound.c const struct ldb_map_attribute *map, map 247 source3/lib/ldb/modules/ldb_map_outbound.c el->values[i] = ldb_val_map_remote(module, el->values, map, &old->values[i]); map 258 source3/lib/ldb/modules/ldb_map_outbound.c const struct ldb_map_attribute *map; map 267 source3/lib/ldb/modules/ldb_map_outbound.c map = map_attr_find_local(data, attr_name); map 271 source3/lib/ldb/modules/ldb_map_outbound.c if (map == NULL) { map 275 source3/lib/ldb/modules/ldb_map_outbound.c switch (map->type) { map 279 source3/lib/ldb/modules/ldb_map_outbound.c remote_name = map->u.convert.remote_name; map 285 source3/lib/ldb/modules/ldb_map_outbound.c remote_name = map->u.rename.remote_name; map 291 source3/lib/ldb/modules/ldb_map_outbound.c switch (map->type) { map 296 source3/lib/ldb/modules/ldb_map_outbound.c if (map->u.convert.convert_remote == NULL) { map 308 source3/lib/ldb/modules/ldb_map_outbound.c el = ldb_msg_el_map_remote(module, local, map, attr_name, old); map 315 source3/lib/ldb/modules/ldb_map_outbound.c if (map->u.generate.generate_local == NULL) { map 323 source3/lib/ldb/modules/ldb_map_outbound.c el = map->u.generate.generate_local(module, local, attr_name, remote); map 343 source3/lib/ldb/modules/ldb_map_outbound.c const struct ldb_map_attribute *map = map_attr_find_local(data, "*"); map 348 source3/lib/ldb/modules/ldb_map_outbound.c if (map && map->type == MAP_KEEP) { map 352 source3/lib/ldb/modules/ldb_map_outbound.c el = ldb_msg_el_map_remote(module, local, map, remote->elements[i].name, map 755 source3/lib/ldb/modules/ldb_map_outbound.c int map_subtree_collect_remote_simple(struct ldb_module *module, void *mem_ctx, struct ldb_parse_tree **new, const struct ldb_parse_tree *tree, const struct ldb_map_attribute *map) map 767 source3/lib/ldb/modules/ldb_map_outbound.c if (map->type == MAP_KEEP) { map 775 source3/lib/ldb/modules/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.present.attr); map 780 source3/lib/ldb/modules/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.substring.attr); map 785 source3/lib/ldb/modules/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.equality.attr); map 791 source3/lib/ldb/modules/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.comparison.attr); map 795 source3/lib/ldb/modules/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.extended.attr); map 809 source3/lib/ldb/modules/ldb_map_outbound.c if (map->type == MAP_RENAME) { map 836 source3/lib/ldb/modules/ldb_map_outbound.c *(*new)->u.substring.chunks[i] = ldb_val_map_local(module, *new, map, tree->u.substring.chunks[i]); map 842 source3/lib/ldb/modules/ldb_map_outbound.c (*new)->u.equality.value = ldb_val_map_local(module, *new, map, &tree->u.equality.value); map 847 source3/lib/ldb/modules/ldb_map_outbound.c (*new)->u.comparison.value = ldb_val_map_local(module, *new, map, &tree->u.comparison.value); map 850 source3/lib/ldb/modules/ldb_map_outbound.c (*new)->u.extended.value = ldb_val_map_local(module, *new, map, &tree->u.extended.value); map 865 source3/lib/ldb/modules/ldb_map_outbound.c const struct ldb_map_attribute *map; map 884 source3/lib/ldb/modules/ldb_map_outbound.c map = map_attr_find_local(data, tree->u.equality.attr); map 885 source3/lib/ldb/modules/ldb_map_outbound.c if (map->convert_operator) { map 886 source3/lib/ldb/modules/ldb_map_outbound.c return map->convert_operator(module, mem_ctx, new, tree); map 889 source3/lib/ldb/modules/ldb_map_outbound.c if (map->type == MAP_GENERATE) { map 898 source3/lib/ldb/modules/ldb_map_outbound.c return map_subtree_collect_remote_simple(module, mem_ctx, new, tree, map); map 78 source3/lib/ldb/modules/ldb_map_private.h const char *map_attr_map_local(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr); map 79 source3/lib/ldb/modules/ldb_map_private.h const char *map_attr_map_remote(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr); map 82 source3/lib/ldb/modules/ldb_map_private.h struct ldb_val ldb_val_map_local(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_val *val); map 83 source3/lib/ldb/modules/ldb_map_private.h struct ldb_val ldb_val_map_remote(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_val *val); map 93 source3/lib/ldb/modules/ldb_map_private.h int map_subtree_collect_remote_simple(struct ldb_module *module, void *mem_ctx, struct ldb_parse_tree **new, const struct ldb_parse_tree *tree, const struct ldb_map_attribute *map); map 322 source3/lib/ldb/tools/ad2oLschema.c const struct syntax_map *map = find_syntax_map_by_ad_oid(syntax); map 364 source3/lib/ldb/tools/ad2oLschema.c if (map) { map 366 source3/lib/ldb/tools/ad2oLschema.c if (map->equality) { map 368 source3/lib/ldb/tools/ad2oLschema.c " EQUALITY %s\n", map->equality); map 371 source3/lib/ldb/tools/ad2oLschema.c if (map->substring) { map 373 source3/lib/ldb/tools/ad2oLschema.c " SUBSTR %s\n", map->substring); map 376 source3/lib/ldb/tools/ad2oLschema.c syntax_oid = map->Standard_OID; map 437 source3/lib/ldb/tools/oLschema2ldif.c const struct syntax_map *map = map 439 source3/lib/ldb/tools/oLschema2ldif.c if (!map) { map 442 source3/lib/ldb/tools/oLschema2ldif.c MSG_ADD_STRING("attributeSyntax", map->AD_OID); map 599 source3/lib/util_tdb.c struct { enum TDB_ERROR err; NTSTATUS status; } map[] = map 625 source3/lib/util_tdb.c for (i=0; i < sizeof(map) / sizeof(map[0]); i++) { map 626 source3/lib/util_tdb.c if (err == map[i].err) { map 627 source3/lib/util_tdb.c return map[i].status; map 237 source3/libads/ldap_printer.c const struct valmap_to_ads map[] = { map 294 source3/libads/ldap_printer.c for (i=0; map[i].valname; i++) { map 295 source3/libads/ldap_printer.c if (StrCaseCmp(map[i].valname, value->valuename) == 0) { map 296 source3/libads/ldap_printer.c if (!map[i].fn(ctx, mods, value)) { map 240 source3/libnet/libnet_samsync_passdb.c GROUP_MAP map; map 295 source3/libnet/libnet_samsync_passdb.c if (!pdb_getgrsid(&map, group_sid)) { map 299 source3/libnet/libnet_samsync_passdb.c if (map.gid != passwd->pw_gid) { map 300 source3/libnet/libnet_samsync_passdb.c if (!(grp = getgrgid(map.gid))) { map 302 source3/libnet/libnet_samsync_passdb.c (unsigned long)map.gid, pdb_get_username(sam_account), sid_string_tos(&group_sid))); map 331 source3/libnet/libnet_samsync_passdb.c GROUP_MAP map; map 342 source3/libnet/libnet_samsync_passdb.c if (pdb_getgrsid(&map, group_sid)) { map 343 source3/libnet/libnet_samsync_passdb.c if ( map.gid != -1 ) map 344 source3/libnet/libnet_samsync_passdb.c grp = getgrgid(map.gid); map 366 source3/libnet/libnet_samsync_passdb.c map.gid = grp->gr_gid; map 367 source3/libnet/libnet_samsync_passdb.c map.sid = group_sid; map 368 source3/libnet/libnet_samsync_passdb.c map.sid_name_use = SID_NAME_DOM_GRP; map 369 source3/libnet/libnet_samsync_passdb.c fstrcpy(map.nt_name, name); map 371 source3/libnet/libnet_samsync_passdb.c fstrcpy(map.comment, comment); map 373 source3/libnet/libnet_samsync_passdb.c fstrcpy(map.comment, ""); map 377 source3/libnet/libnet_samsync_passdb.c pdb_add_group_mapping_entry(&map); map 379 source3/libnet/libnet_samsync_passdb.c pdb_update_group_mapping_entry(&map); map 395 source3/libnet/libnet_samsync_passdb.c GROUP_MAP map; map 405 source3/libnet/libnet_samsync_passdb.c if (!get_domain_group_from_sid(group_sid, &map)) { map 410 source3/libnet/libnet_samsync_passdb.c if (!(grp = getgrgid(map.gid))) { map 411 source3/libnet/libnet_samsync_passdb.c DEBUG(0, ("Could not find unix group %lu\n", (unsigned long)map.gid)); map 523 source3/libnet/libnet_samsync_passdb.c GROUP_MAP map; map 534 source3/libnet/libnet_samsync_passdb.c if (pdb_getgrsid(&map, alias_sid)) { map 535 source3/libnet/libnet_samsync_passdb.c grp = getgrgid(map.gid); map 553 source3/libnet/libnet_samsync_passdb.c map.gid = grp->gr_gid; map 554 source3/libnet/libnet_samsync_passdb.c map.sid = alias_sid; map 557 source3/libnet/libnet_samsync_passdb.c map.sid_name_use = SID_NAME_WKN_GRP; map 559 source3/libnet/libnet_samsync_passdb.c map.sid_name_use = SID_NAME_ALIAS; map 561 source3/libnet/libnet_samsync_passdb.c fstrcpy(map.nt_name, name); map 562 source3/libnet/libnet_samsync_passdb.c fstrcpy(map.comment, comment); map 565 source3/libnet/libnet_samsync_passdb.c pdb_add_group_mapping_entry(&map); map 567 source3/libnet/libnet_samsync_passdb.c pdb_update_group_mapping_entry(&map); map 92 source3/modules/vfs_aio_fork.c struct mmap_area *map; /* ==NULL means write request */ map 301 source3/modules/vfs_aio_fork.c static void aio_child_loop(int sockfd, struct mmap_area *map) map 344 source3/modules/vfs_aio_fork.c fd, (void *)map->ptr, cmd_struct.n, map 349 source3/modules/vfs_aio_fork.c fd, (void *)map->ptr, cmd_struct.n, map 407 source3/modules/vfs_aio_fork.c memcpy((void *)child->aiocb->aio_buf, (void *)child->map->ptr, map 462 source3/modules/vfs_aio_fork.c result->map = mmap_area_init(result, map_size); map 463 source3/modules/vfs_aio_fork.c if (result->map == NULL) { map 480 source3/modules/vfs_aio_fork.c aio_child_loop(result->sockfd, result->map); map 616 source3/modules/vfs_aio_fork.c memcpy((void *)child->map->ptr, (void *)aiocb->aio_buf, map 1238 source3/passdb/lookup_sid.c GROUP_MAP map; map 1247 source3/passdb/lookup_sid.c ret = pdb_getgrsid(&map, *psid); map 1251 source3/passdb/lookup_sid.c *pgid = map.gid; map 553 source3/passdb/passdb.c GROUP_MAP map; map 608 source3/passdb/passdb.c ret = pdb_getgrnam(&map, name); map 616 source3/passdb/passdb.c if (!sid_check_is_in_our_domain(&map.sid)) { map 618 source3/passdb/passdb.c "ignoring.", name, sid_string_dbg(&map.sid))); map 623 source3/passdb/passdb.c sid_peek_rid(&map.sid, rid); map 624 source3/passdb/passdb.c *type = map.sid_name_use; map 534 source3/passdb/pdb_interface.c bool pdb_getgrsid(GROUP_MAP *map, DOM_SID sid) map 537 source3/passdb/pdb_interface.c return NT_STATUS_IS_OK(pdb->getgrsid(pdb, map, sid)); map 540 source3/passdb/pdb_interface.c bool pdb_getgrgid(GROUP_MAP *map, gid_t gid) map 543 source3/passdb/pdb_interface.c return NT_STATUS_IS_OK(pdb->getgrgid(pdb, map, gid)); map 546 source3/passdb/pdb_interface.c bool pdb_getgrnam(GROUP_MAP *map, const char *name) map 549 source3/passdb/pdb_interface.c return NT_STATUS_IS_OK(pdb->getgrnam(pdb, map, name)); map 603 source3/passdb/pdb_interface.c GROUP_MAP map; map 609 source3/passdb/pdb_interface.c map.gid = (gid_t) -1; map 613 source3/passdb/pdb_interface.c if (!get_domain_group_from_sid(group_sid, &map)) { map 620 source3/passdb/pdb_interface.c if (map.gid == (gid_t)-1) { map 624 source3/passdb/pdb_interface.c grp = getgrgid(map.gid); map 655 source3/passdb/pdb_interface.c NTSTATUS pdb_add_group_mapping_entry(GROUP_MAP *map) map 658 source3/passdb/pdb_interface.c return pdb->add_group_mapping_entry(pdb, map); map 661 source3/passdb/pdb_interface.c NTSTATUS pdb_update_group_mapping_entry(GROUP_MAP *map) map 664 source3/passdb/pdb_interface.c return pdb->update_group_mapping_entry(pdb, map); map 780 source3/passdb/pdb_interface.c GROUP_MAP map; map 787 source3/passdb/pdb_interface.c map.gid = (gid_t) -1; map 792 source3/passdb/pdb_interface.c if (!get_domain_group_from_sid(group_sid, &map) || map 793 source3/passdb/pdb_interface.c (map.gid == (gid_t)-1) || map 794 source3/passdb/pdb_interface.c ((grp = getgrgid(map.gid)) == NULL)) { map 845 source3/passdb/pdb_interface.c GROUP_MAP map; map 854 source3/passdb/pdb_interface.c if (!get_domain_group_from_sid(group_sid, &map) || map 855 source3/passdb/pdb_interface.c (map.gid == (gid_t)-1) || map 856 source3/passdb/pdb_interface.c ((grp = getgrgid(map.gid)) == NULL)) { map 1249 source3/passdb/pdb_interface.c GROUP_MAP map; map 1251 source3/passdb/pdb_interface.c if (!NT_STATUS_IS_OK(methods->getgrgid(methods, &map, gid))) { map 1255 source3/passdb/pdb_interface.c sid_copy(sid, &map.sid); map 1304 source3/passdb/pdb_interface.c GROUP_MAP map; map 1305 source3/passdb/pdb_interface.c if (!NT_STATUS_IS_OK(methods->getgrsid(methods, &map, *sid))) { map 1310 source3/passdb/pdb_interface.c if ((map.sid_name_use != SID_NAME_ALIAS) && map 1311 source3/passdb/pdb_interface.c (map.sid_name_use != SID_NAME_WKN_GRP)) { map 1314 source3/passdb/pdb_interface.c sid_type_lookup(map.sid_name_use))); map 1318 source3/passdb/pdb_interface.c id->gid = map.gid; map 1506 source3/passdb/pdb_interface.c GROUP_MAP map; map 1554 source3/passdb/pdb_interface.c ret = pdb_getgrsid(&map, sid); map 1561 source3/passdb/pdb_interface.c if ( ret && (map.gid != (gid_t)-1) ) { map 1562 source3/passdb/pdb_interface.c *name = talloc_strdup(mem_ctx, map.nt_name); map 1563 source3/passdb/pdb_interface.c *psid_name_use = map.sid_name_use; map 1566 source3/passdb/pdb_interface.c unix_id->gid = map.gid; map 1782 source3/passdb/pdb_interface.c GROUP_MAP *map = &state->groups[state->current_group]; map 1787 source3/passdb/pdb_interface.c sid_peek_rid(&map->sid, &rid); map 1789 source3/passdb/pdb_interface.c fill_displayentry(s, rid, 0, map->nt_name, NULL, map->comment, entry); map 2329 source3/passdb/pdb_ldap.c GROUP_MAP *map, LDAPMessage *entry) map 2334 source3/passdb/pdb_ldap.c if (ldap_state == NULL || map == NULL || entry == NULL || map 2355 source3/passdb/pdb_ldap.c map->gid = (gid_t)atol(temp); map 2371 source3/passdb/pdb_ldap.c if (!string_to_sid(&map->sid, temp)) { map 2390 source3/passdb/pdb_ldap.c map->sid_name_use = (enum lsa_SidType)atol(temp); map 2392 source3/passdb/pdb_ldap.c if ((map->sid_name_use < SID_NAME_USER) || map 2393 source3/passdb/pdb_ldap.c (map->sid_name_use > SID_NAME_UNKNOWN)) { map 2394 source3/passdb/pdb_ldap.c DEBUG(0, ("init_group_from_ldap: Unknown Group type: %d\n", map->sid_name_use)); map 2415 source3/passdb/pdb_ldap.c for gidNumber(%lu)\n",(unsigned long)map->gid)); map 2420 source3/passdb/pdb_ldap.c fstrcpy(map->nt_name, temp); map 2436 source3/passdb/pdb_ldap.c fstrcpy(map->comment, temp); map 2439 source3/passdb/pdb_ldap.c store_gid_sid_cache(&map->sid, map->gid); map 2451 source3/passdb/pdb_ldap.c GROUP_MAP *map) map 2487 source3/passdb/pdb_ldap.c if (!init_group_from_ldap(ldap_state, map, entry)) { map 2501 source3/passdb/pdb_ldap.c static NTSTATUS ldapsam_getgrsid(struct pdb_methods *methods, GROUP_MAP *map, map 2515 source3/passdb/pdb_ldap.c status = ldapsam_getgroup(methods, filter, map); map 2523 source3/passdb/pdb_ldap.c static NTSTATUS ldapsam_getgrgid(struct pdb_methods *methods, GROUP_MAP *map, map 2536 source3/passdb/pdb_ldap.c status = ldapsam_getgroup(methods, filter, map); map 2544 source3/passdb/pdb_ldap.c static NTSTATUS ldapsam_getgrnam(struct pdb_methods *methods, GROUP_MAP *map, map 2565 source3/passdb/pdb_ldap.c status = ldapsam_getgroup(methods, filter, map); map 2980 source3/passdb/pdb_ldap.c GROUP_MAP *map) map 2989 source3/passdb/pdb_ldap.c LDAP_OBJ_POSIXGROUP, (unsigned int)map->gid); map 3014 source3/passdb/pdb_ldap.c sid_string_talloc(mem_ctx, &map->sid)); map 3016 source3/passdb/pdb_ldap.c talloc_asprintf(mem_ctx, "%d", map->sid_name_use)); map 3018 source3/passdb/pdb_ldap.c map->nt_name); map 3020 source3/passdb/pdb_ldap.c map->comment); map 3032 source3/passdb/pdb_ldap.c GROUP_MAP *map) map 3056 source3/passdb/pdb_ldap.c sid_string_talloc(mem_ctx, &map->sid)); map 3070 source3/passdb/pdb_ldap.c "group mapping entry\n", sid_string_dbg(&map->sid))); map 3075 source3/passdb/pdb_ldap.c switch (map->sid_name_use) { map 3080 source3/passdb/pdb_ldap.c result = ldapsam_map_posixgroup(mem_ctx, ldap_state, map); map 3085 source3/passdb/pdb_ldap.c if (!sid_check_is_in_our_domain(&map->sid) map 3086 source3/passdb/pdb_ldap.c && !sid_check_is_in_builtin(&map->sid) ) map 3089 source3/passdb/pdb_ldap.c sid_string_dbg(&map->sid))); map 3097 source3/passdb/pdb_ldap.c sid_type_lookup(map->sid_name_use))); map 3105 source3/passdb/pdb_ldap.c if (map->gid == -1) { map 3111 source3/passdb/pdb_ldap.c if (pdb_gid_to_sid(map->gid, &sid)) { map 3113 source3/passdb/pdb_ldap.c "add\n", (unsigned int)map->gid, sid_string_dbg(&sid))); map 3122 source3/passdb/pdb_ldap.c sid_string_talloc(mem_ctx, &map->sid), map 3136 source3/passdb/pdb_ldap.c sid_string_talloc(mem_ctx, &map->sid)); map 3138 source3/passdb/pdb_ldap.c talloc_asprintf(mem_ctx, "%d", map->sid_name_use)); map 3140 source3/passdb/pdb_ldap.c map->nt_name); map 3142 source3/passdb/pdb_ldap.c map->comment); map 3144 source3/passdb/pdb_ldap.c talloc_asprintf(mem_ctx, "%u", (unsigned int)map->gid)); map 3164 source3/passdb/pdb_ldap.c GROUP_MAP *map) map 3189 source3/passdb/pdb_ldap.c sid_string_talloc(mem_ctx, &map->sid), map 3190 source3/passdb/pdb_ldap.c (unsigned int)map->gid, map->sid_name_use); map 3217 source3/passdb/pdb_ldap.c map->nt_name); map 3219 source3/passdb/pdb_ldap.c map->comment); map 3237 source3/passdb/pdb_ldap.c "group %lu in LDAP\n", (unsigned long)map->gid)); map 3386 source3/passdb/pdb_ldap.c GROUP_MAP *map) map 3398 source3/passdb/pdb_ldap.c bret = init_group_from_ldap(ldap_state, map, map 3418 source3/passdb/pdb_ldap.c GROUP_MAP map; map 3430 source3/passdb/pdb_ldap.c while (NT_STATUS_IS_OK(ldapsam_getsamgrent(methods, &map))) { map 3432 source3/passdb/pdb_ldap.c sid_name_use != map.sid_name_use) { map 3434 source3/passdb/pdb_ldap.c "not of the requested type\n", map.nt_name)); map 3437 source3/passdb/pdb_ldap.c if (unix_only==ENUM_ONLY_MAPPED && map.gid==-1) { map 3439 source3/passdb/pdb_ldap.c "non mapped\n", map.nt_name)); map 3450 source3/passdb/pdb_ldap.c (*pp_rmap)[entries] = map; map 226 source3/passdb/pdb_wbc_sam.c static bool _make_group_map(struct pdb_methods *methods, const char *domain, const char *name, enum lsa_SidType name_type, gid_t gid, DOM_SID *sid, GROUP_MAP *map) map 228 source3/passdb/pdb_wbc_sam.c snprintf(map->nt_name, sizeof(map->nt_name), "%s%c%s", map 230 source3/passdb/pdb_wbc_sam.c map->sid_name_use = name_type; map 231 source3/passdb/pdb_wbc_sam.c map->sid = *sid; map 232 source3/passdb/pdb_wbc_sam.c map->gid = gid; map 236 source3/passdb/pdb_wbc_sam.c static NTSTATUS pdb_wbc_sam_getgrsid(struct pdb_methods *methods, GROUP_MAP *map, map 264 source3/passdb/pdb_wbc_sam.c if (!_make_group_map(methods, domain, name, name_type, gid, &sid, map)) { map 275 source3/passdb/pdb_wbc_sam.c static NTSTATUS pdb_wbc_sam_getgrgid(struct pdb_methods *methods, GROUP_MAP *map, map 303 source3/passdb/pdb_wbc_sam.c if (!_make_group_map(methods, domain, name, name_type, gid, &sid, map)) { map 315 source3/passdb/pdb_wbc_sam.c static NTSTATUS pdb_wbc_sam_getgrnam(struct pdb_methods *methods, GROUP_MAP *map, map 343 source3/passdb/pdb_wbc_sam.c if (!_make_group_map(methods, domain, user_name, name_type, gid, &sid, map)) { map 291 source3/rpc_server/srv_lsa_nt.c const struct generic_mapping *map, map 303 source3/rpc_server/srv_lsa_nt.c map->generic_execute | map->generic_read, 0); map 308 source3/rpc_server/srv_lsa_nt.c SEC_ACE_TYPE_ACCESS_ALLOWED, map->generic_all, 0); map 310 source3/rpc_server/srv_lsa_nt.c SEC_ACE_TYPE_ACCESS_ALLOWED, map->generic_all, 0); map 316 source3/rpc_server/srv_lsa_nt.c map->generic_all, 0); map 1831 source3/rpc_server/srv_lsa_nt.c GROUP_MAP map; map 1845 source3/rpc_server/srv_lsa_nt.c if (!pdb_getgrsid(&map, info->sid)) map 1848 source3/rpc_server/srv_lsa_nt.c return pdb_update_group_mapping_entry(&map); map 113 source3/rpc_server/srv_samr_nt.c const struct generic_mapping *map, map 125 source3/rpc_server/srv_samr_nt.c map->generic_execute | map->generic_read, 0); map 130 source3/rpc_server/srv_samr_nt.c SEC_ACE_TYPE_ACCESS_ALLOWED, map->generic_all, 0); map 132 source3/rpc_server/srv_samr_nt.c SEC_ACE_TYPE_ACCESS_ALLOWED, map->generic_all, 0); map 140 source3/rpc_server/srv_samr_nt.c SEC_ACE_TYPE_ACCESS_ALLOWED, map->generic_all, 0); map 6063 source3/rpc_server/srv_samr_nt.c GROUP_MAP map; map 6084 source3/rpc_server/srv_samr_nt.c ret = get_domain_group_from_sid(group_sid, &map); map 6090 source3/rpc_server/srv_samr_nt.c group_name = talloc_strdup(r, map.nt_name); map 6091 source3/rpc_server/srv_samr_nt.c group_description = talloc_strdup(r, map.comment); map 6167 source3/rpc_server/srv_samr_nt.c GROUP_MAP map; map 6184 source3/rpc_server/srv_samr_nt.c ret = get_domain_group_from_sid(group_sid, &map); map 6191 source3/rpc_server/srv_samr_nt.c fstrcpy(map.comment, r->in.info->all.description.string); map 6197 source3/rpc_server/srv_samr_nt.c fstrcpy(map.comment, r->in.info->description.string); map 6206 source3/rpc_server/srv_samr_nt.c status = pdb_update_group_mapping_entry(&map); map 6358 source3/rpc_server/srv_samr_nt.c GROUP_MAP map; map 6412 source3/rpc_server/srv_samr_nt.c ret = get_domain_group_from_sid(info->sid, &map); map 238 source3/smbd/notify.c struct notify_mid_map *map = NULL; map 244 source3/smbd/notify.c || !(map = talloc(request, struct notify_mid_map))) { map 249 source3/smbd/notify.c request->mid_map = map; map 250 source3/smbd/notify.c map->req = request; map 261 source3/smbd/notify.c map->mid = request->req->mid; map 262 source3/smbd/notify.c DLIST_ADD(notify_changes_by_mid, map); map 304 source3/smbd/notify.c struct notify_mid_map *map; map 306 source3/smbd/notify.c for (map = notify_changes_by_mid; map; map = map->next) { map 307 source3/smbd/notify.c if (map->mid == mid) { map 312 source3/smbd/notify.c if (map == NULL) { map 316 source3/smbd/notify.c change_notify_reply_packet(map->req->fsp->conn, map->req->req, map 318 source3/smbd/notify.c change_notify_remove_request(map->req); map 33 source3/utils/net_groupmap.c GROUP_MAP map; map 37 source3/utils/net_groupmap.c if (!pdb_getgrnam(&map, input)) { map 41 source3/utils/net_groupmap.c *sid = map.sid; map 56 source3/utils/net_groupmap.c static void print_map_entry ( GROUP_MAP map, bool long_list ) map 59 source3/utils/net_groupmap.c d_printf("%s (%s) -> %s\n", map.nt_name, map 60 source3/utils/net_groupmap.c sid_string_tos(&map.sid), gidtoname(map.gid)); map 62 source3/utils/net_groupmap.c d_printf("%s\n", map.nt_name); map 63 source3/utils/net_groupmap.c d_printf("\tSID : %s\n", sid_string_tos(&map.sid)); map 64 source3/utils/net_groupmap.c d_printf("\tUnix gid : %u\n", (unsigned int)map.gid); map 65 source3/utils/net_groupmap.c d_printf("\tUnix group: %s\n", gidtoname(map.gid)); map 67 source3/utils/net_groupmap.c sid_type_lookup(map.sid_name_use)); map 68 source3/utils/net_groupmap.c d_printf("\tComment : %s\n", map.comment); map 125 source3/utils/net_groupmap.c GROUP_MAP map; map 135 source3/utils/net_groupmap.c if(!pdb_getgrsid(&map, sid)) { map 140 source3/utils/net_groupmap.c print_map_entry( map, long_list ); map 143 source3/utils/net_groupmap.c GROUP_MAP *map=NULL; map 145 source3/utils/net_groupmap.c if (!pdb_enum_group_mapping(NULL, SID_NAME_UNKNOWN, &map, &entries, ENUM_ALL_MAPPED)) map 149 source3/utils/net_groupmap.c print_map_entry( map[i], long_list ); map 152 source3/utils/net_groupmap.c SAFE_FREE(map); map 174 source3/utils/net_groupmap.c GROUP_MAP map; map 182 source3/utils/net_groupmap.c ZERO_STRUCT(map); map 185 source3/utils/net_groupmap.c map.sid_name_use = SID_NAME_DOM_GRP; map 270 source3/utils/net_groupmap.c if (pdb_getgrgid(&map, gid)) { map 272 source3/utils/net_groupmap.c unixgrp, sid_string_tos(&map.sid)); map 329 source3/utils/net_groupmap.c GROUP_MAP map; map 419 source3/utils/net_groupmap.c if(!pdb_getgrsid(&map, sid)) { map 433 source3/utils/net_groupmap.c if (map.sid_name_use == SID_NAME_WKN_GRP) { map 438 source3/utils/net_groupmap.c map.sid_name_use=sid_type; map 442 source3/utils/net_groupmap.c fstrcpy( map.comment, ntcomment ); map 445 source3/utils/net_groupmap.c fstrcpy( map.nt_name, ntgroup ); map 455 source3/utils/net_groupmap.c map.gid = gid; map 458 source3/utils/net_groupmap.c if ( !NT_STATUS_IS_OK(pdb_update_group_mapping_entry(&map)) ) { map 463 source3/utils/net_groupmap.c d_printf("Updated mapping entry for %s\n", map.nt_name); map 533 source3/utils/net_groupmap.c GROUP_MAP map; map 558 source3/utils/net_groupmap.c have_map = pdb_getgrnam(&map, ntgroup); map 564 source3/utils/net_groupmap.c pdb_getgrsid(&map, sid) ); map 577 source3/utils/net_groupmap.c map.gid = grp->gr_gid; map 581 source3/utils/net_groupmap.c c->opt_rid = algorithmic_pdb_gid_to_group_rid(map.gid); map 590 source3/utils/net_groupmap.c sid_copy(&map.sid, get_global_sam_sid()); map 591 source3/utils/net_groupmap.c sid_append_rid(&map.sid, c->opt_rid); map 593 source3/utils/net_groupmap.c map.sid_name_use = SID_NAME_DOM_GRP; map 594 source3/utils/net_groupmap.c fstrcpy(map.nt_name, ntgroup); map 595 source3/utils/net_groupmap.c fstrcpy(map.comment, ""); map 597 source3/utils/net_groupmap.c if (!NT_STATUS_IS_OK(pdb_add_group_mapping_entry(&map))) { map 607 source3/utils/net_groupmap.c if (map.sid_name_use == SID_NAME_WKN_GRP) { map 609 source3/utils/net_groupmap.c map.nt_name); map 615 source3/utils/net_groupmap.c map.sid_name_use = SID_NAME_ALIAS; map 618 source3/utils/net_groupmap.c map.sid_name_use = SID_NAME_DOM_GRP; map 623 source3/utils/net_groupmap.c fstrcpy(map.comment, c->opt_comment); map 627 source3/utils/net_groupmap.c fstrcpy(map.nt_name, c->opt_newntname); map 631 source3/utils/net_groupmap.c map.gid = grp->gr_gid; map 633 source3/utils/net_groupmap.c if (!NT_STATUS_IS_OK(pdb_update_group_mapping_entry(&map))) { map 643 source3/utils/net_groupmap.c GROUP_MAP *map = NULL; map 653 source3/utils/net_groupmap.c if (!pdb_enum_group_mapping(NULL, SID_NAME_UNKNOWN, &map, &entries, map 661 source3/utils/net_groupmap.c if (map[i].gid == -1) map 662 source3/utils/net_groupmap.c printf("Group %s is not mapped\n", map[i].nt_name); map 664 source3/utils/net_groupmap.c if (!sid_check_is_in_our_domain(&map[i].sid)) { map 666 source3/utils/net_groupmap.c map[i].nt_name, map 667 source3/utils/net_groupmap.c sid_string_tos(&map[i].sid)); map 668 source3/utils/net_groupmap.c pdb_delete_group_mapping_entry(map[i].sid); map 672 source3/utils/net_groupmap.c SAFE_FREE(map); map 290 source3/utils/net_sam.c GROUP_MAP map; map 320 source3/utils/net_sam.c if (!pdb_getgrsid(&map, sid)) { map 325 source3/utils/net_sam.c fstrcpy(map.comment, argv[1]); map 327 source3/utils/net_sam.c status = pdb_update_group_mapping_entry(&map); map 790 source3/utils/net_sam.c GROUP_MAP map; map 794 source3/utils/net_sam.c if (pdb_getgrgid(&map, grp->gr_gid)) { map 798 source3/utils/net_sam.c map.gid = grp->gr_gid; map 818 source3/utils/net_sam.c fstrcpy(map.nt_name, grpname); map 830 source3/utils/net_sam.c sid_compose(&map.sid, get_global_sam_sid(), rid); map 831 source3/utils/net_sam.c map.sid_name_use = SID_NAME_DOM_GRP; map 832 source3/utils/net_sam.c fstrcpy(map.comment, talloc_asprintf(talloc_tos(), "Unix Group %s", map 835 source3/utils/net_sam.c status = pdb_add_group_mapping_entry(&map); map 837 source3/utils/net_sam.c *pmap = map; map 845 source3/utils/net_sam.c GROUP_MAP map; map 859 source3/utils/net_sam.c status = map_unix_group(grp, &map); map 868 source3/utils/net_sam.c sid_string_tos(&map.sid)); map 880 source3/utils/net_sam.c GROUP_MAP map; map 884 source3/utils/net_sam.c map.gid = grp->gr_gid; map 893 source3/utils/net_sam.c fstrcpy(map.nt_name, grpname); map 895 source3/utils/net_sam.c if (!pdb_gid_to_sid(map.gid, &dom_sid)) { map 907 source3/utils/net_sam.c GROUP_MAP map; map 921 source3/utils/net_sam.c status = unmap_unix_group(grp, &map); map 83 source3/web/statuspage.c PIDMAP *map; map 87 source3/web/statuspage.c for (map = pidmap; map != NULL; map = map->next) { map 88 source3/web/statuspage.c if (procid_equal(&pid, &map->pid)) { map 89 source3/web/statuspage.c if (map->machine == NULL) /* no machine name */ map 92 source3/web/statuspage.c return map->machine; map 665 source3/winbindd/idmap.c struct id_map map; map 679 source3/winbindd/idmap.c map.sid = &sid; map 680 source3/winbindd/idmap.c map.xid.type = type; map 684 source3/winbindd/idmap.c status = idmap_allocate_uid(&map.xid); map 687 source3/winbindd/idmap.c status = idmap_allocate_gid(&map.xid); map 699 source3/winbindd/idmap.c map.status = ID_MAPPED; map 702 source3/winbindd/idmap.c sid_string_dbg(map.sid), map 703 source3/winbindd/idmap.c (map.xid.type == ID_TYPE_UID) ? "UID" : "GID", map 704 source3/winbindd/idmap.c (unsigned long)map.xid.id)); map 706 source3/winbindd/idmap.c status = dom->methods->set_mapping(dom, &map); map 711 source3/winbindd/idmap.c sid_string_dbg(map.sid))); map 712 source3/winbindd/idmap.c ids[0] = ↦ map 723 source3/winbindd/idmap.c *pxid = map.xid; map 788 source3/winbindd/idmap.c NTSTATUS idmap_set_mapping(const struct id_map *map) map 802 source3/winbindd/idmap.c return dom->methods->set_mapping(dom, map); map 805 source3/winbindd/idmap.c NTSTATUS idmap_remove_mapping(const struct id_map *map) map 819 source3/winbindd/idmap.c return dom->methods->remove_mapping(dom, map); map 405 source3/winbindd/idmap_ad.c struct id_map *map; map 464 source3/winbindd/idmap_ad.c map = find_map_by_id(&ids[bidx], type, id); map 465 source3/winbindd/idmap_ad.c if (!map) { map 470 source3/winbindd/idmap_ad.c sid_copy(map->sid, &sid); map 473 source3/winbindd/idmap_ad.c map->status = ID_MAPPED; map 475 source3/winbindd/idmap_ad.c DEBUG(10, ("Mapped %s -> %lu (%d)\n", sid_string_dbg(map->sid), map 476 source3/winbindd/idmap_ad.c (unsigned long)map->xid.id, map 477 source3/winbindd/idmap_ad.c map->xid.type)); map 598 source3/winbindd/idmap_ad.c struct id_map *map; map 619 source3/winbindd/idmap_ad.c map = find_map_by_sid(&ids[bidx], &sid); map 620 source3/winbindd/idmap_ad.c if (!map) { map 663 source3/winbindd/idmap_ad.c map->xid.type = type; map 664 source3/winbindd/idmap_ad.c map->xid.id = id; map 665 source3/winbindd/idmap_ad.c map->status = ID_MAPPED; map 667 source3/winbindd/idmap_ad.c DEBUG(10, ("Mapped %s -> %lu (%d)\n", sid_string_dbg(map->sid), map 668 source3/winbindd/idmap_ad.c (unsigned long)map->xid.id, map 669 source3/winbindd/idmap_ad.c map->xid.type)); map 259 source3/winbindd/idmap_adex/idmap_adex.c id_map *map) map 273 source3/winbindd/idmap_adex/idmap_adex.c *map) map 1025 source3/winbindd/idmap_ldap.c struct id_map *map; map 1084 source3/winbindd/idmap_ldap.c map = find_map_by_id(&ids[bidx], type, id); map 1085 source3/winbindd/idmap_ldap.c if (!map) { map 1092 source3/winbindd/idmap_ldap.c if ( ! string_to_sid(map->sid, sidstr)) { map 1098 source3/winbindd/idmap_ldap.c if (map->status == ID_MAPPED) { map 1102 source3/winbindd/idmap_ldap.c id, sid_string_dbg(map->sid), id, sidstr)); map 1108 source3/winbindd/idmap_ldap.c map->status = ID_MAPPED; map 1110 source3/winbindd/idmap_ldap.c DEBUG(10, ("Mapped %s -> %lu (%d)\n", sid_string_dbg(map->sid), map 1111 source3/winbindd/idmap_ldap.c (unsigned long)map->xid.id, map->xid.type)); map 1259 source3/winbindd/idmap_ldap.c struct id_map *map; map 1291 source3/winbindd/idmap_ldap.c map = find_map_by_sid(&ids[bidx], &sid); map 1292 source3/winbindd/idmap_ldap.c if (!map) { map 1333 source3/winbindd/idmap_ldap.c if (map->status == ID_MAPPED) { map 1337 source3/winbindd/idmap_ldap.c sidstr, map->xid.id, sidstr, id)); map 1343 source3/winbindd/idmap_ldap.c map->xid.type = type; map 1344 source3/winbindd/idmap_ldap.c map->xid.id = id; map 1345 source3/winbindd/idmap_ldap.c map->status = ID_MAPPED; map 1347 source3/winbindd/idmap_ldap.c DEBUG(10, ("Mapped %s -> %lu (%d)\n", sid_string_dbg(map->sid), map 1348 source3/winbindd/idmap_ldap.c (unsigned long)map->xid.id, map->xid.type)); map 1382 source3/winbindd/idmap_ldap.c const struct id_map *map) map 1402 source3/winbindd/idmap_ldap.c switch(map->xid.type) { map 1423 source3/winbindd/idmap_ldap.c id_str = talloc_asprintf(memctx, "%lu", (unsigned long)map->xid.id); map 1426 source3/winbindd/idmap_ldap.c sid = talloc_strdup(memctx, sid_string_talloc(memctx, map->sid)); map 1466 source3/winbindd/idmap_ldap.c (unsigned long)map->xid.id, type)); map 1477 source3/winbindd/idmap_ldap.c "%lu [%s]\n", sid, (unsigned long)map->xid.id, type)); map 108 source3/winbindd/idmap_rid.c static NTSTATUS idmap_rid_id_to_sid(TALLOC_CTX *memctx, struct idmap_rid_context *ctx, struct id_map *map) map 113 source3/winbindd/idmap_rid.c if ((map->xid.id < ctx->low_id) || (map->xid.id > ctx->high_id)) { map 115 source3/winbindd/idmap_rid.c map->xid.id, ctx->low_id, ctx->high_id)); map 123 source3/winbindd/idmap_rid.c sid_compose(map->sid, &domain->sid, map->xid.id - ctx->low_id + ctx->base_rid); map 129 source3/winbindd/idmap_rid.c map->status = ID_MAPPED; map 138 source3/winbindd/idmap_rid.c static NTSTATUS idmap_rid_sid_to_id(TALLOC_CTX *memctx, struct idmap_rid_context *ctx, struct id_map *map) map 142 source3/winbindd/idmap_rid.c sid_peek_rid(map->sid, &rid); map 143 source3/winbindd/idmap_rid.c map->xid.id = rid - ctx->base_rid + ctx->low_id; map 147 source3/winbindd/idmap_rid.c if ((map->xid.id < ctx->low_id) || (map->xid.id > ctx->high_id)) { map 149 source3/winbindd/idmap_rid.c map->xid.id, ctx->low_id, ctx->high_id)); map 150 source3/winbindd/idmap_rid.c map->status = ID_UNMAPPED; map 158 source3/winbindd/idmap_rid.c map->status = ID_MAPPED; map 680 source3/winbindd/idmap_tdb.c static NTSTATUS idmap_tdb_id_to_sid(struct idmap_tdb_context *ctx, struct id_map *map) map 686 source3/winbindd/idmap_tdb.c if (!ctx || !map) { map 691 source3/winbindd/idmap_tdb.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || map 692 source3/winbindd/idmap_tdb.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { map 694 source3/winbindd/idmap_tdb.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); map 698 source3/winbindd/idmap_tdb.c switch (map->xid.type) { map 701 source3/winbindd/idmap_tdb.c keystr = talloc_asprintf(ctx, "UID %lu", (unsigned long)map->xid.id); map 705 source3/winbindd/idmap_tdb.c keystr = talloc_asprintf(ctx, "GID %lu", (unsigned long)map->xid.id); map 709 source3/winbindd/idmap_tdb.c DEBUG(2, ("INVALID unix ID type: 0x02%x\n", map->xid.type)); map 733 source3/winbindd/idmap_tdb.c if (!string_to_sid(map->sid, (const char *)data.dptr)) { map 753 source3/winbindd/idmap_tdb.c static NTSTATUS idmap_tdb_sid_to_id(struct idmap_tdb_context *ctx, struct id_map *map) map 761 source3/winbindd/idmap_tdb.c keystr = sid_string_talloc(tmp_ctx, map->sid); map 780 source3/winbindd/idmap_tdb.c map->xid.id = rec_id; map 781 source3/winbindd/idmap_tdb.c map->xid.type = ID_TYPE_UID; map 786 source3/winbindd/idmap_tdb.c map->xid.id = rec_id; map 787 source3/winbindd/idmap_tdb.c map->xid.type = ID_TYPE_GID; map 797 source3/winbindd/idmap_tdb.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || map 798 source3/winbindd/idmap_tdb.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { map 800 source3/winbindd/idmap_tdb.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); map 900 source3/winbindd/idmap_tdb.c const struct id_map *map) map 908 source3/winbindd/idmap_tdb.c if (!map || !map->sid) { map 918 source3/winbindd/idmap_tdb.c switch (map->xid.type) { map 922 source3/winbindd/idmap_tdb.c (unsigned long)map->xid.id); map 927 source3/winbindd/idmap_tdb.c (unsigned long)map->xid.id); map 931 source3/winbindd/idmap_tdb.c DEBUG(2, ("INVALID unix ID type: 0x02%x\n", map->xid.type)); map 942 source3/winbindd/idmap_tdb.c ctx, "%s", sid_to_fstring(tmp, map->sid))) == NULL) { map 995 source3/winbindd/idmap_tdb.c const struct id_map *map) map 1003 source3/winbindd/idmap_tdb.c if (!map || !map->sid) { map 1014 source3/winbindd/idmap_tdb.c switch (map->xid.type) { map 1018 source3/winbindd/idmap_tdb.c (unsigned long)map->xid.id); map 1023 source3/winbindd/idmap_tdb.c (unsigned long)map->xid.id); map 1027 source3/winbindd/idmap_tdb.c DEBUG(2, ("INVALID unix ID type: 0x02%x\n", map->xid.type)); map 1038 source3/winbindd/idmap_tdb.c ctx, "%s", sid_to_fstring(tmp, map->sid))) == NULL) { map 451 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_script(struct idmap_tdb2_context *ctx, struct id_map *map, map 483 source3/winbindd/idmap_tdb2.c map->xid.id = v; map 484 source3/winbindd/idmap_tdb2.c map->xid.type = ID_TYPE_UID; map 486 source3/winbindd/idmap_tdb2.c map->xid.id = v; map 487 source3/winbindd/idmap_tdb2.c map->xid.type = ID_TYPE_GID; map 489 source3/winbindd/idmap_tdb2.c if (!string_to_sid(map->sid, &line[4])) { map 508 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_id_to_sid(struct idmap_tdb2_context *ctx, struct id_map *map) map 518 source3/winbindd/idmap_tdb2.c if (!ctx || !map) { map 523 source3/winbindd/idmap_tdb2.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || map 524 source3/winbindd/idmap_tdb2.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { map 526 source3/winbindd/idmap_tdb2.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); map 530 source3/winbindd/idmap_tdb2.c switch (map->xid.type) { map 533 source3/winbindd/idmap_tdb2.c keystr = talloc_asprintf(ctx, "UID %lu", (unsigned long)map->xid.id); map 537 source3/winbindd/idmap_tdb2.c keystr = talloc_asprintf(ctx, "GID %lu", (unsigned long)map->xid.id); map 541 source3/winbindd/idmap_tdb2.c DEBUG(2, ("INVALID unix ID type: 0x02%x\n", map->xid.type)); map 568 source3/winbindd/idmap_tdb2.c ret = idmap_tdb2_script(ctx, map, "IDTOSID %s", keystr); map 575 source3/winbindd/idmap_tdb2.c if (sid_to_fstring(sidstr, map->sid)) { map 587 source3/winbindd/idmap_tdb2.c if (!string_to_sid(map->sid, (const char *)data.dptr)) { map 606 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_sid_to_id(struct idmap_tdb2_context *ctx, struct id_map *map) map 617 source3/winbindd/idmap_tdb2.c keystr = sid_string_talloc(tmp_ctx, map->sid); map 638 source3/winbindd/idmap_tdb2.c ret = idmap_tdb2_script(ctx, map, "SIDTOID %s", keystr); map 645 source3/winbindd/idmap_tdb2.c map->xid.type == ID_TYPE_UID?'U':'G', map 646 source3/winbindd/idmap_tdb2.c (unsigned long)map->xid.id); map 657 source3/winbindd/idmap_tdb2.c map->xid.id = rec_id; map 658 source3/winbindd/idmap_tdb2.c map->xid.type = ID_TYPE_UID; map 663 source3/winbindd/idmap_tdb2.c map->xid.id = rec_id; map 664 source3/winbindd/idmap_tdb2.c map->xid.type = ID_TYPE_GID; map 674 source3/winbindd/idmap_tdb2.c if ((ctx->filter_low_id && (map->xid.id < ctx->filter_low_id)) || map 675 source3/winbindd/idmap_tdb2.c (ctx->filter_high_id && (map->xid.id > ctx->filter_high_id))) { map 677 source3/winbindd/idmap_tdb2.c map->xid.id, ctx->filter_low_id, ctx->filter_high_id)); map 774 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_set_mapping(struct idmap_domain *dom, const struct id_map *map) map 783 source3/winbindd/idmap_tdb2.c if (!map || !map->sid) { map 793 source3/winbindd/idmap_tdb2.c switch (map->xid.type) { map 796 source3/winbindd/idmap_tdb2.c kidstr = talloc_asprintf(ctx, "UID %lu", (unsigned long)map->xid.id); map 800 source3/winbindd/idmap_tdb2.c kidstr = talloc_asprintf(ctx, "GID %lu", (unsigned long)map->xid.id); map 804 source3/winbindd/idmap_tdb2.c DEBUG(2, ("INVALID unix ID type: 0x02%x\n", map->xid.type)); map 814 source3/winbindd/idmap_tdb2.c if (!(ksidstr = sid_string_talloc(ctx, map->sid))) { map 877 source3/winbindd/idmap_tdb2.c static NTSTATUS idmap_tdb2_remove_mapping(struct idmap_domain *dom, const struct id_map *map) map 35 source3/winbindd/idmap_util.c struct id_map map; map 59 source3/winbindd/idmap_util.c map.sid = sid; map 60 source3/winbindd/idmap_util.c map.xid.type = ID_TYPE_UID; map 61 source3/winbindd/idmap_util.c map.xid.id = uid; map 63 source3/winbindd/idmap_util.c ret = idmap_backends_unixid_to_sid(domname, &map); map 69 source3/winbindd/idmap_util.c if (map.status != ID_MAPPED) { map 94 source3/winbindd/idmap_util.c struct id_map map; map 118 source3/winbindd/idmap_util.c map.sid = sid; map 119 source3/winbindd/idmap_util.c map.xid.type = ID_TYPE_GID; map 120 source3/winbindd/idmap_util.c map.xid.id = gid; map 122 source3/winbindd/idmap_util.c ret = idmap_backends_unixid_to_sid(domname, &map); map 128 source3/winbindd/idmap_util.c if (map.status != ID_MAPPED) { map 153 source3/winbindd/idmap_util.c struct id_map map; map 176 source3/winbindd/idmap_util.c map.sid = sid; map 177 source3/winbindd/idmap_util.c map.xid.type = ID_TYPE_UID; map 179 source3/winbindd/idmap_util.c ret = idmap_backends_sid_to_unixid(dom_name, &map); map 181 source3/winbindd/idmap_util.c if (NT_STATUS_IS_OK(ret) && (map.status == ID_MAPPED)) { map 182 source3/winbindd/idmap_util.c if (map.xid.type != ID_TYPE_UID) { map 186 source3/winbindd/idmap_util.c map.status, map 187 source3/winbindd/idmap_util.c map.xid.type, map 188 source3/winbindd/idmap_util.c map.xid.id)); map 208 source3/winbindd/idmap_util.c ret = idmap_new_mapping(sid, ID_TYPE_UID, &map.xid); map 220 source3/winbindd/idmap_util.c *uid = (uid_t)map.xid.id; map 235 source3/winbindd/idmap_util.c struct id_map map; map 258 source3/winbindd/idmap_util.c map.sid = sid; map 259 source3/winbindd/idmap_util.c map.xid.type = ID_TYPE_GID; map 261 source3/winbindd/idmap_util.c ret = idmap_backends_sid_to_unixid(domname, &map); map 262 source3/winbindd/idmap_util.c if (NT_STATUS_IS_OK(ret) && (map.status == ID_MAPPED)) { map 263 source3/winbindd/idmap_util.c if (map.xid.type != ID_TYPE_GID) { map 267 source3/winbindd/idmap_util.c map.status, map 268 source3/winbindd/idmap_util.c map.xid.type, map 269 source3/winbindd/idmap_util.c map.xid.id)); map 289 source3/winbindd/idmap_util.c ret = idmap_new_mapping(sid, ID_TYPE_GID, &map.xid); map 301 source3/winbindd/idmap_util.c *gid = map.xid.id; map 78 source3/winbindd/winbindd_idmap.c void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map, map 85 source3/winbindd/winbindd_idmap.c request.data.dual_idmapset.id = map->xid.id; map 86 source3/winbindd/winbindd_idmap.c request.data.dual_idmapset.type = map->xid.type; map 87 source3/winbindd/winbindd_idmap.c sid_to_fstring(request.data.dual_idmapset.sid, map->sid); map 96 source3/winbindd/winbindd_idmap.c struct id_map map; map 105 source3/winbindd/winbindd_idmap.c map.sid = &sid; map 106 source3/winbindd/winbindd_idmap.c map.xid.id = state->request.data.dual_idmapset.id; map 107 source3/winbindd/winbindd_idmap.c map.xid.type = state->request.data.dual_idmapset.type; map 108 source3/winbindd/winbindd_idmap.c map.status = ID_MAPPED; map 110 source3/winbindd/winbindd_idmap.c result = idmap_set_mapping(&map); map 136 source3/winbindd/winbindd_idmap.c const struct id_map *map, map 143 source3/winbindd/winbindd_idmap.c request.data.dual_idmapset.id = map->xid.id; map 144 source3/winbindd/winbindd_idmap.c request.data.dual_idmapset.type = map->xid.type; map 145 source3/winbindd/winbindd_idmap.c sid_to_fstring(request.data.dual_idmapset.sid, map->sid); map 155 source3/winbindd/winbindd_idmap.c struct id_map map; map 164 source3/winbindd/winbindd_idmap.c map.sid = &sid; map 165 source3/winbindd/winbindd_idmap.c map.xid.id = state->request.data.dual_idmapset.id; map 166 source3/winbindd/winbindd_idmap.c map.xid.type = state->request.data.dual_idmapset.type; map 167 source3/winbindd/winbindd_idmap.c map.status = ID_MAPPED; map 169 source3/winbindd/winbindd_idmap.c result = idmap_remove_mapping(&map); map 373 source3/winbindd/winbindd_proto.h void winbindd_set_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map, map 378 source3/winbindd/winbindd_proto.h void winbindd_remove_mapping_async(TALLOC_CTX *mem_ctx, const struct id_map *map, map 398 source3/winbindd/winbindd_sid.c struct id_map map; map 416 source3/winbindd/winbindd_sid.c map.sid = &sid; map 417 source3/winbindd/winbindd_sid.c map.xid.id = state->request.data.dual_idmapset.id; map 418 source3/winbindd/winbindd_sid.c map.xid.type = state->request.data.dual_idmapset.type; map 420 source3/winbindd/winbindd_sid.c winbindd_set_mapping_async(state->mem_ctx, &map, map 440 source3/winbindd/winbindd_sid.c struct id_map map; map 458 source3/winbindd/winbindd_sid.c map.sid = &sid; map 459 source3/winbindd/winbindd_sid.c map.xid.id = state->request.data.dual_idmapset.id; map 460 source3/winbindd/winbindd_sid.c map.xid.type = state->request.data.dual_idmapset.type; map 462 source3/winbindd/winbindd_sid.c winbindd_remove_mapping_async(state->mem_ctx, &map, map 306 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_attribute *map; map 311 source4/lib/ldb/ldb_map/ldb_map.c map = &data->attribute_maps[i]; map 312 source4/lib/ldb/ldb_map/ldb_map.c if (ldb_attr_cmp(map->local_name, "*") == 0) { map 316 source4/lib/ldb/ldb_map/ldb_map.c switch (map->type) { map 321 source4/lib/ldb/ldb_map/ldb_map.c if (ldb_attr_cmp(map->local_name, name) == 0) { map 322 source4/lib/ldb/ldb_map/ldb_map.c return map; map 328 source4/lib/ldb/ldb_map/ldb_map.c if (ldb_attr_cmp(map->u.rename.remote_name, name) == 0) { map 329 source4/lib/ldb/ldb_map/ldb_map.c return map; map 334 source4/lib/ldb/ldb_map/ldb_map.c for (j = 0; map->u.generate.remote_names && map->u.generate.remote_names[j]; j++) { map 335 source4/lib/ldb/ldb_map/ldb_map.c if (ldb_attr_cmp(map->u.generate.remote_names[j], name) == 0) { map 336 source4/lib/ldb/ldb_map/ldb_map.c return map; map 354 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_attribute *map = map_attr_find_local(data, attr); map 356 source4/lib/ldb/ldb_map/ldb_map.c if (map == NULL) { map 359 source4/lib/ldb/ldb_map/ldb_map.c if (map->type == MAP_IGNORE) { map 367 source4/lib/ldb/ldb_map/ldb_map.c const char *map_attr_map_local(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr) map 369 source4/lib/ldb/ldb_map/ldb_map.c if (map == NULL) { map 373 source4/lib/ldb/ldb_map/ldb_map.c switch (map->type) { map 379 source4/lib/ldb/ldb_map/ldb_map.c return talloc_strdup(mem_ctx, map->u.rename.remote_name); map 387 source4/lib/ldb/ldb_map/ldb_map.c const char *map_attr_map_remote(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr) map 389 source4/lib/ldb/ldb_map/ldb_map.c if (map == NULL) { map 393 source4/lib/ldb/ldb_map/ldb_map.c if (map->type == MAP_KEEP) { map 397 source4/lib/ldb/ldb_map/ldb_map.c return talloc_strdup(mem_ctx, map->local_name); map 430 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_attribute *map, const struct ldb_val *val) map 432 source4/lib/ldb/ldb_map/ldb_map.c if (map && (map->type == MAP_CONVERT) && (map->u.convert.convert_local)) { map 433 source4/lib/ldb/ldb_map/ldb_map.c return map->u.convert.convert_local(module, mem_ctx, val); map 441 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_attribute *map, const struct ldb_val *val) map 443 source4/lib/ldb/ldb_map/ldb_map.c if (map && (map->type == MAP_CONVERT) && (map->u.convert.convert_remote)) { map 444 source4/lib/ldb/ldb_map/ldb_map.c return map->u.convert.convert_remote(module, mem_ctx, val); map 472 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_attribute *map; map 492 source4/lib/ldb/ldb_map/ldb_map.c map = map_attr_find_local(data, ldb_dn_get_component_name(dn, i)); map 495 source4/lib/ldb/ldb_map/ldb_map.c if (map == NULL) { map 498 source4/lib/ldb/ldb_map/ldb_map.c map_type = map->type; map 510 source4/lib/ldb/ldb_map/ldb_map.c if (map->u.convert.convert_local == NULL) { map 519 source4/lib/ldb/ldb_map/ldb_map.c name = map_attr_map_local(newdn, map, ldb_dn_get_component_name(dn, i)); map 522 source4/lib/ldb/ldb_map/ldb_map.c value = ldb_val_map_local(module, newdn, map, ldb_dn_get_component_val(dn, i)); map 547 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_attribute *map; map 567 source4/lib/ldb/ldb_map/ldb_map.c map = map_attr_find_remote(data, ldb_dn_get_component_name(dn, i)); map 570 source4/lib/ldb/ldb_map/ldb_map.c if (map == NULL) { map 573 source4/lib/ldb/ldb_map/ldb_map.c map_type = map->type; map 585 source4/lib/ldb/ldb_map/ldb_map.c if (map->u.convert.convert_remote == NULL) { map 594 source4/lib/ldb/ldb_map/ldb_map.c name = map_attr_map_remote(newdn, map, ldb_dn_get_component_name(dn, i)); map 597 source4/lib/ldb/ldb_map/ldb_map.c value = ldb_val_map_remote(module, newdn, map, ldb_dn_get_component_val(dn, i)); map 697 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_objectclass *map = map_objectclass_find_local(data, name); map 700 source4/lib/ldb/ldb_map/ldb_map.c if (map) { map 701 source4/lib/ldb/ldb_map/ldb_map.c newval.data = (uint8_t*)talloc_strdup(mem_ctx, map->remote_name); map 773 source4/lib/ldb/ldb_map/ldb_map.c const struct ldb_map_objectclass *map = map_objectclass_find_remote(data, name); map 776 source4/lib/ldb/ldb_map/ldb_map.c if (map) { map 777 source4/lib/ldb/ldb_map/ldb_map.c newval.data = (uint8_t*)talloc_strdup(mem_ctx, map->local_name); map 36 source4/lib/ldb/ldb_map/ldb_map_inbound.c static struct ldb_message_element *ldb_msg_el_map_local(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_message_element *old) map 55 source4/lib/ldb/ldb_map/ldb_map_inbound.c el->name = map_attr_map_local(el, map, old->name); map 58 source4/lib/ldb/ldb_map/ldb_map_inbound.c el->values[i] = ldb_val_map_local(module, el->values, map, &old->values[i]); map 69 source4/lib/ldb/ldb_map/ldb_map_inbound.c const struct ldb_map_attribute *map = map_attr_find_local(data, attr_name); map 74 source4/lib/ldb/ldb_map/ldb_map_inbound.c if (map == NULL) { map 81 source4/lib/ldb/ldb_map/ldb_map_inbound.c switch (map->type) { map 86 source4/lib/ldb/ldb_map/ldb_map_inbound.c if (map->u.convert.convert_local == NULL) { map 90 source4/lib/ldb/ldb_map/ldb_map_inbound.c map->local_name); map 96 source4/lib/ldb/ldb_map/ldb_map_inbound.c el = ldb_msg_el_map_local(module, remote, map, old); map 100 source4/lib/ldb/ldb_map/ldb_map_inbound.c if (map->u.generate.generate_remote == NULL) { map 104 source4/lib/ldb/ldb_map/ldb_map_inbound.c map->local_name); map 114 source4/lib/ldb/ldb_map/ldb_map_inbound.c map->u.generate.generate_remote(module, map->local_name, msg, remote, local); map 82 source4/lib/ldb/ldb_map/ldb_map_outbound.c const struct ldb_map_attribute *map; map 121 source4/lib/ldb/ldb_map/ldb_map_outbound.c map = map_attr_find_local(data, attrs[i]); map 122 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map == NULL) { map 126 source4/lib/ldb/ldb_map/ldb_map_outbound.c switch (map->type) { map 136 source4/lib/ldb/ldb_map/ldb_map_outbound.c name = map->u.rename.remote_name; map 141 source4/lib/ldb/ldb_map/ldb_map_outbound.c for (j = 0; map->u.generate.remote_names[j]; j++) { map 147 source4/lib/ldb/ldb_map/ldb_map_outbound.c result[last] = talloc_strdup(result, map->u.generate.remote_names[j]); map 218 source4/lib/ldb/ldb_map/ldb_map_outbound.c const struct ldb_map_attribute *map, map 246 source4/lib/ldb/ldb_map/ldb_map_outbound.c el->values[i] = ldb_val_map_remote(module, el->values, map, &old->values[i]); map 263 source4/lib/ldb/ldb_map/ldb_map_outbound.c const struct ldb_map_attribute *map; map 275 source4/lib/ldb/ldb_map/ldb_map_outbound.c map = map_attr_find_local(data, attr_name); map 279 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map == NULL) { map 283 source4/lib/ldb/ldb_map/ldb_map_outbound.c switch (map->type) { map 287 source4/lib/ldb/ldb_map/ldb_map_outbound.c remote_name = map->u.convert.remote_name; map 293 source4/lib/ldb/ldb_map/ldb_map_outbound.c remote_name = map->u.rename.remote_name; map 299 source4/lib/ldb/ldb_map/ldb_map_outbound.c switch (map->type) { map 304 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map->u.convert.convert_remote == NULL) { map 316 source4/lib/ldb/ldb_map/ldb_map_outbound.c el = ldb_msg_el_map_remote(module, local, map, attr_name, old); map 323 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map->u.generate.generate_local == NULL) { map 331 source4/lib/ldb/ldb_map/ldb_map_outbound.c el = map->u.generate.generate_local(module, local, attr_name, remote); map 351 source4/lib/ldb/ldb_map/ldb_map_outbound.c const struct ldb_map_attribute *map = map_attr_find_local(data, "*"); map 356 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map && map->type == MAP_KEEP) { map 360 source4/lib/ldb/ldb_map/ldb_map_outbound.c el = ldb_msg_el_map_remote(module, local, map, remote->elements[i].name, map 763 source4/lib/ldb/ldb_map/ldb_map_outbound.c int map_subtree_collect_remote_simple(struct ldb_module *module, void *mem_ctx, struct ldb_parse_tree **new, const struct ldb_parse_tree *tree, const struct ldb_map_attribute *map) map 775 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map->type == MAP_KEEP) { map 783 source4/lib/ldb/ldb_map/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.present.attr); map 788 source4/lib/ldb/ldb_map/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.substring.attr); map 793 source4/lib/ldb/ldb_map/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.equality.attr); map 799 source4/lib/ldb/ldb_map/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.comparison.attr); map 803 source4/lib/ldb/ldb_map/ldb_map_outbound.c attr = map_attr_map_local(*new, map, tree->u.extended.attr); map 817 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map->type == MAP_RENAME) { map 844 source4/lib/ldb/ldb_map/ldb_map_outbound.c *(*new)->u.substring.chunks[i] = ldb_val_map_local(module, *new, map, tree->u.substring.chunks[i]); map 850 source4/lib/ldb/ldb_map/ldb_map_outbound.c (*new)->u.equality.value = ldb_val_map_local(module, *new, map, &tree->u.equality.value); map 855 source4/lib/ldb/ldb_map/ldb_map_outbound.c (*new)->u.comparison.value = ldb_val_map_local(module, *new, map, &tree->u.comparison.value); map 858 source4/lib/ldb/ldb_map/ldb_map_outbound.c (*new)->u.extended.value = ldb_val_map_local(module, *new, map, &tree->u.extended.value); map 873 source4/lib/ldb/ldb_map/ldb_map_outbound.c const struct ldb_map_attribute *map; map 895 source4/lib/ldb/ldb_map/ldb_map_outbound.c map = map_attr_find_local(data, tree->u.equality.attr); map 896 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map->convert_operator) { map 897 source4/lib/ldb/ldb_map/ldb_map_outbound.c return map->convert_operator(module, mem_ctx, new, tree); map 900 source4/lib/ldb/ldb_map/ldb_map_outbound.c if (map->type == MAP_GENERATE) { map 909 source4/lib/ldb/ldb_map/ldb_map_outbound.c return map_subtree_collect_remote_simple(module, mem_ctx, new, tree, map); map 59 source4/lib/ldb/ldb_map/ldb_map_private.h const char *map_attr_map_local(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr); map 60 source4/lib/ldb/ldb_map/ldb_map_private.h const char *map_attr_map_remote(void *mem_ctx, const struct ldb_map_attribute *map, const char *attr); map 63 source4/lib/ldb/ldb_map/ldb_map_private.h struct ldb_val ldb_val_map_local(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_val *val); map 64 source4/lib/ldb/ldb_map/ldb_map_private.h struct ldb_val ldb_val_map_remote(struct ldb_module *module, void *mem_ctx, const struct ldb_map_attribute *map, const struct ldb_val *val); map 84 source4/lib/ldb/ldb_map/ldb_map_private.h const struct ldb_map_attribute *map); map 35 source4/libcli/security/sddl.c static bool sddl_map_flags(const struct flag_map *map, const char *str, map 43 source4/libcli/security/sddl.c for (i=0;map[i].name;i++) { map 44 source4/libcli/security/sddl.c size_t l = strlen(map[i].name); map 45 source4/libcli/security/sddl.c if (strncmp(map[i].name, str, l) == 0) { map 46 source4/libcli/security/sddl.c *flags |= map[i].flag; map 52 source4/libcli/security/sddl.c if (map[i].name == NULL) { map 389 source4/libcli/security/sddl.c static char *sddl_flags_to_string(TALLOC_CTX *mem_ctx, const struct flag_map *map, map 396 source4/libcli/security/sddl.c for (i=0;map[i].name;i++) { map 397 source4/libcli/security/sddl.c if (map[i].flag == flags) { map 398 source4/libcli/security/sddl.c return talloc_strdup(mem_ctx, map[i].name); map 405 source4/libcli/security/sddl.c for (i=0;map[i].name;i++) { map 406 source4/libcli/security/sddl.c if ((flags & map[i].flag) != 0) { map 407 source4/libcli/security/sddl.c s = talloc_asprintf_append_buffer(s, "%s", map[i].name); map 409 source4/libcli/security/sddl.c flags &= ~map[i].flag; map 436 source4/utils/oLschema2ldif.c const struct dsdb_syntax *map = map 438 source4/utils/oLschema2ldif.c if (!map) { map 441 source4/utils/oLschema2ldif.c MSG_ADD_STRING("attributeSyntax", map->attributeSyntax_oid);