From: John Terpstra Date: Fri, 2 Dec 2005 21:04:10 +0000 (+0000) Subject: Added IDMAP dump/restore command info. X-Git-Tag: samba-4.0.0alpha6~801^2~1971 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=df0bf64c958d9f165214c55196f96eaf0aa9a7e9;p=thirdparty%2Fsamba.git Added IDMAP dump/restore command info. (This used to be commit 4204fcb6349a913f4d49ba725a638dfc6a7695af) --- diff --git a/docs/Samba3-HOWTO/TOSHARG-TheNetCommand.xml b/docs/Samba3-HOWTO/TOSHARG-TheNetCommand.xml index 63dbf7bfcea..ebcfd4abb6c 100644 --- a/docs/Samba3-HOWTO/TOSHARG-TheNetCommand.xml +++ b/docs/Samba3-HOWTO/TOSHARG-TheNetCommand.xml @@ -1802,6 +1802,62 @@ net ads printer search <printer_name> -Uadministrator%secret + + Managing IDMAP UID/SID Mappings + + + The IDMAP UID to SID, and SID to UID, mappings that are created by winbindd can be + backed up to a text file. The text file can be manually edited, although it is highly recommended that + you attempt this only if you know precisely what you are doing. + + + + An IDMAP text dump file can be restored (or reloaded). There are two situations that may necessitate + this action: a) The existing IDMAP file is corrupt, b) It is necessary to install an editted version + of the mapping information. + + + + Winbind must be shut down to dump the IDMAP file. Before restoring a dump file, shut down + winbindd and delete the old winbindd_idmap.tdb file. + + + + Creating an IDMAP Database Dump File + + + The IDMAP database can be dumped to a text file as shown here: + +net idmap dump <full_path_and_tdb_filename> > dumpfile.txt + + Where the Samba run-time tdb files are stored in the /var/lib/samba directory + the the following commands to create the dump file will suffice: + +net idmap dump /var/lib/samba/winbindd_idmap.tdb > idmap_dump.txt + + + + + + + Restoring the IDMAP Database Dump File + + + The IDMAP dump file can be restored using the following command: + +net idmap restore <full_path_and_tdb_filename> < dumpfile.txt + + Where the Samba run-time tdb files are stored in the /var/lib/samba directory + the the following commands can be used to restore the data to the tdb file. + +net idmap restore /var/lib/samba/winbindd_idmap.tdb < idmap_dump.txt + + + + + + + Other Miscellaneous Operations