<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/lib/ldb/tools/ldbedit.c, branch talloc-2.3.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/'/>
<entry>
<title>ldb: ensure that ldbedit operates like ldbmodify: set DONT_CREATE_DB</title>
<updated>2020-03-02T02:47:30+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2020-02-29T03:03:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b8aa05525e276fb315e21f78d468e48fa286e6c3'/>
<id>b8aa05525e276fb315e21f78d468e48fa286e6c3</id>
<content type='text'>
ldb* tools, when passed a raw filename assume tdb://

By default, ldb_tdb will call tdb with O_CREAT.

TDB, when passed O_CREAT and a not-tdb file, will wipe the file.

This means that if you run ldbedit &lt;path to mdb-format-ldb file&gt; the file
will be wiped, which is unexpected.  I noticed this while trying to
corrupt a sam.ldb backend file (for testing), but instead I wiped it!

Ideally tdb would not do that, but the behaviour has been this way for
decades.  Ideally ldb would have had a "create db" command, but this
has been the job of ldbadd for over a decade.

So this just blunts the knife for ldbedit.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14302

Signed-off-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
Reviewed-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
ldb* tools, when passed a raw filename assume tdb://

By default, ldb_tdb will call tdb with O_CREAT.

TDB, when passed O_CREAT and a not-tdb file, will wipe the file.

This means that if you run ldbedit &lt;path to mdb-format-ldb file&gt; the file
will be wiped, which is unexpected.  I noticed this while trying to
corrupt a sam.ldb backend file (for testing), but instead I wiped it!

Ideally tdb would not do that, but the behaviour has been this way for
decades.  Ideally ldb would have had a "create db" command, but this
has been the job of ldbadd for over a decade.

So this just blunts the knife for ldbedit.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14302

Signed-off-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
Reviewed-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>ldbedit: Prevent the use of the reveal internals control</title>
<updated>2017-02-22T03:23:05+00:00</updated>
<author>
<name>Garming Sam</name>
<email>garming@catalyst.net.nz</email>
</author>
<published>2017-01-29T22:08:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=bed19f3744a4193bed1ea99debfb6263feb78b6c'/>
<id>bed19f3744a4193bed1ea99debfb6263feb78b6c</id>
<content type='text'>
This is almost certainly not what you want to do. Providing the output of reveal as the input of modify
will necessarily revivify all dead linked attributes (regardless of --extended-dn or not).

This is extremely unexpected behaviour, so we prevent this from happening.

Signed-off-by: Garming Sam &lt;garming@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12596

Autobuild-User(master): Garming Sam &lt;garming@samba.org&gt;
Autobuild-Date(master): Wed Feb 22 04:23:05 CET 2017 on sn-devel-144
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is almost certainly not what you want to do. Providing the output of reveal as the input of modify
will necessarily revivify all dead linked attributes (regardless of --extended-dn or not).

This is extremely unexpected behaviour, so we prevent this from happening.

Signed-off-by: Garming Sam &lt;garming@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12596

Autobuild-User(master): Garming Sam &lt;garming@samba.org&gt;
Autobuild-Date(master): Wed Feb 22 04:23:05 CET 2017 on sn-devel-144
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function"</title>
<updated>2012-04-10T06:40:05+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2012-04-04T02:51:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=57341c0f29911d09e511c840386a35290febb9f9'/>
<id>57341c0f29911d09e511c840386a35290febb9f9</id>
<content type='text'>
This reverts commit 40a4aea8918c2637703af03383f440d068820e48.

Autocommit is important, as otherwise an ldb module could error out
during an operation, and leave an corrupt database.

Andrew Bartlett
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 40a4aea8918c2637703af03383f440d068820e48.

Autocommit is important, as otherwise an ldb module could error out
during an operation, and leave an corrupt database.

Andrew Bartlett
</pre>
</div>
</content>
</entry>
<entry>
<title>ldb: Permit desactivation of autocomit for every ldb_xxx_ctrl function</title>
<updated>2012-03-30T09:59:09+00:00</updated>
<author>
<name>Matthieu Patou</name>
<email>mat@matws.net</email>
</author>
<published>2012-03-30T08:24:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=40a4aea8918c2637703af03383f440d068820e48'/>
<id>40a4aea8918c2637703af03383f440d068820e48</id>
<content type='text'>
Autobuild-User: Matthieu Patou &lt;mat@samba.org&gt;
Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Autobuild-User: Matthieu Patou &lt;mat@samba.org&gt;
Autobuild-Date: Fri Mar 30 11:59:09 CEST 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>ldbedit: prevent a transaction warning on failure</title>
<updated>2012-01-25T06:06:40+00:00</updated>
<author>
<name>Kelly Yeoh</name>
<email>kyeoh@au1.ibm.com</email>
</author>
<published>2012-01-25T03:58:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=34e7d960d0065a51b5524630a6699834c9b362b1'/>
<id>34e7d960d0065a51b5524630a6699834c9b362b1</id>
<content type='text'>
if a modify fails then cancel the transaction to prevent a dangling
transaction error

Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;

Autobuild-User: Andrew Tridgell &lt;tridge@samba.org&gt;
Autobuild-Date: Wed Jan 25 07:06:40 CET 2012 on sn-devel-104
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
if a modify fails then cancel the transaction to prevent a dangling
transaction error

Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;

Autobuild-User: Andrew Tridgell &lt;tridge@samba.org&gt;
Autobuild-Date: Wed Jan 25 07:06:40 CET 2012 on sn-devel-104
</pre>
</div>
</content>
</entry>
<entry>
<title>ldb: make ldb a top level library for Samba 4.0</title>
<updated>2011-07-05T07:24:47+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2011-07-05T00:01:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=8420a36dc7fe72fb665e065b8673fa44ff1bbf21'/>
<id>8420a36dc7fe72fb665e065b8673fa44ff1bbf21</id>
<content type='text'>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Andrew Tridgell &lt;tridge@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
