[PATCH] MACHINE.SID -> secrets.tdb

Stefan (metze) Metzmacher metze at metzemix.de
Mon Apr 1 22:49:01 GMT 2002


In 2.2.4pre and HEAD the migration from MACHINE.SID to secrets.tdb stored 
SID's doesn't work! When the SID drom the file is stored the function 
doesn't return with True and stores a new generated SID...

This patch should fix that.

metze

--------------------------------------------------------------------------------------------
diff -Nur HEAD/source/passdb/machine_sid.c HEAD-fix/source/passdb/machine_sid.c
--- HEAD/source/passdb/machine_sid.c    Thu Mar 14 05:32:06 2002
+++ HEAD-fix/source/passdb/machine_sid.c        Tue Apr  2 08:37:37 2002
@@ -4,6 +4,7 @@
     Copyright (C) Jeremy Allison                1996-2002
     Copyright (C) Andrew Tridgell               2002
     Copyright (C) Gerald (Jerry) Carter         2000
+   Copyright (C) Stefan (metze) Metzmacher     2002

     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -139,9 +140,9 @@
                                 return False;
                         }
                 }
+               SAFE_FREE(fname);
+               return True;
         }
-
-       SAFE_FREE(fname);

         /* we don't have the SID in secrets.tdb, we will need to
                 generate one and save it */


metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: machine_sid.patch
Type: application/octet-stream
Size: 771 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020401/62d7b240/machine_sid.obj


More information about the samba-technical mailing list