Lines Matching defs:map
39 * Related map entries are then found and updated finally
321 * Generate passwd and adjunct map entries. This creates extra
370 * DESCRIPTION: Gets all the map lists and processes them.
417 * DESCRIPTION: Finds entries in one list of map that need to be updated.
441 "Have adjunct map list but no adjunct data in DIT");
446 /* Allocate enough buffer to take longest map name */
455 logmsg(MSG_NOMEM, LOG_ERR, "Could not alloc map name");
462 /* Generate full map name */
474 /* Done with full map path */
486 * want the map to end up with it's traditional name on the slave send
514 * DESCRIPTION: Updates one map. This is messy because we want to lock the map
523 * INPUT : Full name of map
525 * Flag indicating if this is an adjunct map.
533 DBM *map;
544 /* Set up key dependent on which type of map this is */
555 "Unrecognized map type %s", map_name);
556 return (0); /* Next map */
560 /* Open the map */
561 map = shim_dbm_open(map_name, O_RDWR, 0600);
562 if (NULL == map) {
564 return (0); /* Next map */
567 /* Lock map for update. Painful and may block but have to do it */
568 if (SUCCESS != lock_map_update((map_ctrl *)map)) {
570 "Could not lock map %s for update", map_name);
571 shim_dbm_close(map);
576 res = dbm_store(((map_ctrl *)map)->entries, key, data, DBM_REPLACE);
579 update_entry_ttl((map_ctrl *)map, &key, TTL_RAND);
584 * the passwd source file. If this fails not a great problem the map
586 if (FAILURE == update_timestamp(((map_ctrl *)map)->entries)) {
597 unlock_map_update((map_ctrl *)map);
599 /* Close the map */
600 shim_dbm_close(map);
604 "Could not update map %s", map_name);
1119 * DESCRIPTION: Generates new map strings and puts them back to LDAP