winbindd_idmap.tdb recovery

MCCALL,DON (HP-USA,ex1) don_mccall at
Tue Feb 5 12:39:08 GMT 2002

Hi Michael-
I THINK I can cobble up a script using wbinfo to initially assign and record
uid's and 
gids to all domain users and groups;  this would 'initialize' the
winbindd_idmap.tdb with 
all the existing domain users and group to uid/gid mappings... But you'd
still have to take care of new users/groups when they were added....
Let me see what I can do.

-----Original Message-----
From: Michael Steffens [mailto:michael_steffens at]
Sent: Tuesday, February 05, 2002 5:43 AM
To: samba-technical at
Subject: winbindd_idmap.tdb recovery


I'm a bit concerned about how to recover winbindd_idmap.tdb,
in case it should ever be trashed, for whichever reason.

Are there any recommended or proposed ways for doing this?

What I'm dreaming of is a way of creating a plain text dump
of this file, which can be backed up and be used for repairing
winbindd_idmap.tdb in case of desaster.

Even better if winbindd could also log all newly created mappings
in the same plain text format into an ID mapping log.

Using plain text for this purpose would have the advantage
that merging, checking consistency, applying corrections, or
chown'ing through the file system, could be done with standard
Unix methods and adjusted to what has actually happened.


More information about the samba-technical mailing list