The Samba-Bugzilla – Attachment 3941 Details for
Bug 6117
Samba 3.3.0: pdbedit -a core dumps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.3.0.
look (text/plain), 1.32 KB, created by
Jeremy Allison
on 2009-02-17 15:45:05 UTC
(
hide
)
Description:
Patch for 3.3.0.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-02-17 15:45:05 UTC
Size:
1.32 KB
patch
obsolete
>diff --git a/source/passdb/pdb_tdb.c b/source/passdb/pdb_tdb.c >index eab9110..143a2e2 100644 >--- a/source/passdb/pdb_tdb.c >+++ b/source/passdb/pdb_tdb.c >@@ -357,7 +357,7 @@ static NTSTATUS tdbsam_getsampwrid (struct pdb_methods *my_methods, > /* open the database */ > > if ( !tdbsam_open( tdbsam_filename ) ) { >- DEBUG(0,("tdbsam_getsampwnam: failed to open %s!\n", tdbsam_filename)); >+ DEBUG(0,("tdbsam_getsampwrid: failed to open %s!\n", tdbsam_filename)); > return NT_STATUS_ACCESS_DENIED; > } > >@@ -400,6 +400,11 @@ static bool tdb_delete_samacct_only( struct samu *sam_pass ) > slprintf(keystr, sizeof(keystr)-1, "%s%s", USERPREFIX, name); > > /* it's outaa here! 8^) */ >+ if ( !tdbsam_open( tdbsam_filename ) ) { >+ DEBUG(0,("tdb_delete_samacct_only: failed to open %s!\n", >+ tdbsam_filename)); >+ return false; >+ } > > status = dbwrap_delete_bystring(db_sam, keystr); > if (!NT_STATUS_IS_OK(status)) { >@@ -777,6 +782,12 @@ static bool tdbsam_new_rid(struct pdb_methods *methods, uint32 *prid) > > rid = BASE_RID; /* Default if not set */ > >+ if (!tdbsam_open(tdbsam_filename)) { >+ DEBUG(0,("tdbsam_new_rid: failed to open %s!\n", >+ tdbsam_filename)); >+ return false; >+ } >+ > if (dbwrap_change_uint32_atomic(db_sam, NEXT_RID_STRING, &rid, 1) != 0) { > DEBUG(3, ("tdbsam_new_rid: Failed to increase %s\n", > NEXT_RID_STRING));
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6117
: 3941