Markus.Scheffknecht@t-systems.com
2005-Nov-30 14:17 UTC
[Samba] Modify and backup winbindd_idmap.tdb
Hello list, Is there a possibility to add entries to the winbindd_idmap.tdb manually? I know I can use tdbdump to see the entries, but is there a chance to modify? My problem is I have to map some uid to some Windows SID without using LDAP. On the other hand new user not having any uid in linux should map to the range of uid I defind by using idmap uid = 10000-20000 2nd Question: Is it possible to backup winbindd_idmap.tdb by just copy the file and use this file to replace in case of corruption of the original file? Greetings Markus -----Urspr?ngliche Nachricht----- Von: Gerald (Jerry) Carter [mailto:jerry@samba.org] Gesendet: Mittwoch, 30. November 2005 14:50 An: Schreiber Martin Cc: samba@lists.samba.org Betreff: Re: [Samba] winbindd_idmap.tdb -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Schreiber Martin wrote: | Hello list, | | I want to migrate from samba 3.0.14a to 3.0.2* . Now | my question ; is it possible to keep the | winbindd_idmap.tdb with new installation, because | keeping that relations is a __MUST__ , otherwise | i would have to run some unix scripts over the | user directories to fix uids and gids of | them. Samba and Wnibind are designed to upgrade cleanly. And this works for me. I've had one report of problems but have not been able to confirm that as of yet. cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org Centeris ----------- http://www.centeris.com "There's an anonymous coward in all of us." --anonymous -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDja4QIR7qMdg1EfYRApW8AKDsZPHDUAkKR7bUzz5Sqo90w62gXACfbPQ9 RsG6Wa6/CLg6Yl+7hHFuaQk=eMrK -----END PGP SIGNATURE----- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
On Wed, 2005-11-30 at 15:16 +0100, Markus.Scheffknecht@t-systems.com wrote:> Hello list, > > Is there a possibility to add entries to the winbindd_idmap.tdb manually?use net idmap dump and net idmap restore to dump the db, modify it and restore, but be extremely careful in what you do.> I know I can use tdbdump to see the entries, but is there a chance to modify?not with tdbdump, see above> My problem is I have to map some uid to some Windows SID without using LDAP. On the other hand new user not having any uid in linux should map to the range of uid I defind by using > > idmap uid = 10000-20000 > > 2nd Question: > > Is it possible to backup winbindd_idmap.tdb by just copy the file and use this file to replace in case of corruption of the original file?no, you may have a corrup file as outcome, use tdbbackup that guarantees a complete database traversal record by record. Simo. -- Simo Sorce - idra@samba.org Samba Team - http://www.samba.org Italian Site - http://samba.xsec.it