<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/python/pyglue.c, branch talloc-2.4.0</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>python: whitespace fixes</title>
<updated>2022-10-03T20:03:32+00:00</updated>
<author>
<name>Volker Lendecke</name>
<email>vl@samba.org</email>
</author>
<published>2022-09-20T14:21:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=25bb94e00e2b82b8637814399241c382212bc180'/>
<id>25bb94e00e2b82b8637814399241c382212bc180</id>
<content type='text'>
Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Volker Lendecke &lt;vl@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyglue:generate_random_[machine]_password: ValueError for bad values</title>
<updated>2022-08-26T08:59:28+00:00</updated>
<author>
<name>Douglas Bagnall</name>
<email>douglas.bagnall@catalyst.net.nz</email>
</author>
<published>2022-06-22T03:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=fa3f0499cc1709fefaf95a6a6902651ba3961c8d'/>
<id>fa3f0499cc1709fefaf95a6a6902651ba3961c8d</id>
<content type='text'>
The actual range is 14 to 255 for machine passwords, and there is a
min &lt;= max check for both.

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;

Autobuild-User(master): Andreas Schneider &lt;asn@cryptomilk.org&gt;
Autobuild-Date(master): Fri Aug 26 08:59:28 UTC 2022 on sn-devel-184
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The actual range is 14 to 255 for machine passwords, and there is a
min &lt;= max check for both.

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;

Autobuild-User(master): Andreas Schneider &lt;asn@cryptomilk.org&gt;
Autobuild-Date(master): Fri Aug 26 08:59:28 UTC 2022 on sn-devel-184
</pre>
</div>
</content>
</entry>
<entry>
<title>pyglue: generate_random_[machine]_password: reject negative numbers</title>
<updated>2022-08-26T07:59:32+00:00</updated>
<author>
<name>Douglas Bagnall</name>
<email>douglas.bagnall@catalyst.net.nz</email>
</author>
<published>2022-06-21T23:12:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=4f902dba336f9d2aabb31e2ba6acf2b8ad726fcc'/>
<id>4f902dba336f9d2aabb31e2ba6acf2b8ad726fcc</id>
<content type='text'>
Other range errors (e.g. min &gt; max) are caught in the wrapped
functions which returns EINVAL, so we don't recapitulate that logic
(see next commit though).

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Other range errors (e.g. min &gt; max) are caught in the wrapped
functions which returns EINVAL, so we don't recapitulate that logic
(see next commit though).

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>pyglue: generate_random_bytes/str accept positive numbers only</title>
<updated>2022-08-26T07:59:32+00:00</updated>
<author>
<name>Douglas Bagnall</name>
<email>douglas.bagnall@catalyst.net.nz</email>
</author>
<published>2019-08-04T12:41:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b7b4d6da5fa81635e71c5e5e84dbdd13e7915b4b'/>
<id>b7b4d6da5fa81635e71c5e5e84dbdd13e7915b4b</id>
<content type='text'>
We aren't yet able to generate negative numbers of random bytes.

Instead a request for -n bytes is implicitly converted into one for
SIZE_MAX - n bytes, which is typically very large. Memory exhaustion
seems a likely outcome.

With this patch callers will see a ValueError.

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We aren't yet able to generate negative numbers of random bytes.

Instead a request for -n bytes is implicitly converted into one for
SIZE_MAX - n bytes, which is typically very large. Memory exhaustion
seems a likely outcome.

With this patch callers will see a ValueError.

Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>pyglue: check talloc buffer for random bytes</title>
<updated>2022-08-26T07:59:32+00:00</updated>
<author>
<name>Douglas Bagnall</name>
<email>douglas.bagnall@catalyst.net.nz</email>
</author>
<published>2019-08-04T12:28:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=333e1efa27f1d99bbfc69d94d3bf47e7b99c1e40'/>
<id>333e1efa27f1d99bbfc69d94d3bf47e7b99c1e40</id>
<content type='text'>
Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>selftest: Add test of NDR marshalling from python, starting with wbint</title>
<updated>2021-06-02T03:56:36+00:00</updated>
<author>
<name>Andrew Bartlett</name>
<email>abartlet@samba.org</email>
</author>
<published>2021-05-25T09:12:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=0cc4478070b9c980d653adf31647dd541cf4be22'/>
<id>0cc4478070b9c980d653adf31647dd541cf4be22</id>
<content type='text'>
These patches are to address an issue unpacking a very large
winbind.wbint_Principals array (100,000).

We need the NDR_TOKEN_MAX_LIST_SIZE value exposed as
otherwise a well-meaning incrase of this value would
invalidate the test.

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

Signed-off-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These patches are to address an issue unpacking a very large
winbind.wbint_Principals array (100,000).

We need the NDR_TOKEN_MAX_LIST_SIZE value exposed as
otherwise a well-meaning incrase of this value would
invalidate the test.

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

Signed-off-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>python: glue function for detecting if selftest is enabled</title>
<updated>2021-04-21T20:51:31+00:00</updated>
<author>
<name>David Mulder</name>
<email>dmulder@suse.com</email>
</author>
<published>2021-03-19T18:31:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=d01a588c20723090b4d672d869c89a4397bce3c0'/>
<id>d01a588c20723090b4d672d869c89a4397bce3c0</id>
<content type='text'>
Signed-off-by: David Mulder &lt;dmulder@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Mulder &lt;dmulder@samba.org&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>pyglue: add float2nttime() and nttime2float()</title>
<updated>2021-03-01T03:50:35+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2020-12-02T14:42:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=06851084cac3cfeab08ddb89d48dded4c0d50156'/>
<id>06851084cac3cfeab08ddb89d48dded4c0d50156</id>
<content type='text'>
The float value is what the native python time.time()
returns, it's basically a struct timespec converted to
double/float.

Pair-Programmed-With: Björn Baumbach &lt;bb@sernet.de&gt;

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Signed-off-by: Björn Baumbach &lt;bb@sernet.de&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The float value is what the native python time.time()
returns, it's basically a struct timespec converted to
double/float.

Pair-Programmed-With: Björn Baumbach &lt;bb@sernet.de&gt;

Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Signed-off-by: Björn Baumbach &lt;bb@sernet.de&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>py3: Add is_ad_dc_built option to python glue</title>
<updated>2020-10-23T03:25:34+00:00</updated>
<author>
<name>David Mulder</name>
<email>dmulder@suse.com</email>
</author>
<published>2020-09-18T17:27:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=895c729ce36107af44ce8564f8ef9bcf46d98b70'/>
<id>895c729ce36107af44ce8564f8ef9bcf46d98b70</id>
<content type='text'>
Signed-off-by: David Mulder &lt;dmulder@suse.com&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: David Mulder &lt;dmulder@suse.com&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix clang 9 missing-field-initializer warnings</title>
<updated>2020-05-08T09:31:31+00:00</updated>
<author>
<name>Gary Lockyer</name>
<email>gary@catalyst.net.nz</email>
</author>
<published>2020-05-05T01:47:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=13a2f70a4dd6dd68e0dbd0379d35409c5f100f06'/>
<id>13a2f70a4dd6dd68e0dbd0379d35409c5f100f06</id>
<content type='text'>
Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;</pre>
</div>
</content>
</entry>
</feed>
