<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/python/samba/tests, 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>tests python krb5: Add python kerberos compatability tests</title>
<updated>2020-11-09T02:46:50+00:00</updated>
<author>
<name>Gary Lockyer</name>
<email>gary@catalyst.net.nz</email>
</author>
<published>2020-11-04T00:58:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=1e1d8b9c83f32c06ecab31214a20b77529ee038e'/>
<id>1e1d8b9c83f32c06ecab31214a20b77529ee038e</id>
<content type='text'>
Add new python test to document the differences between the MIT and
Heimdal Kerberos implementations.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add new python test to document the differences between the MIT and
Heimdal Kerberos implementations.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftest: add a test for the CreateTrustedDomainRelax wrapper</title>
<updated>2020-11-06T10:02:35+00:00</updated>
<author>
<name>Isaac Boukris</name>
<email>iboukris@gmail.com</email>
</author>
<published>2020-09-01T17:14:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=cfaad16ff632df83a881fe5d8ec498bab102c9c9'/>
<id>cfaad16ff632df83a881fe5d8ec498bab102c9c9</id>
<content type='text'>
Originally copied from 'source4/scripting/devel/createtrust'
(had to drop the TRUST_AUTH_TYPE_VERSION part though, as it
fails against samba DC).

Signed-off-by: Isaac Boukris &lt;iboukris@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Originally copied from 'source4/scripting/devel/createtrust'
(had to drop the TRUST_AUTH_TYPE_VERSION part though, as it
fails against samba DC).

Signed-off-by: Isaac Boukris &lt;iboukris@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftest: add a test for py dce transport_encrypted</title>
<updated>2020-11-06T10:02:35+00:00</updated>
<author>
<name>Isaac Boukris</name>
<email>iboukris@gmail.com</email>
</author>
<published>2020-08-20T10:44:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a77551bea969ce73a3dc27384d94b4126bef04f7'/>
<id>a77551bea969ce73a3dc27384d94b4126bef04f7</id>
<content type='text'>
Signed-off-by: Isaac Boukris &lt;iboukris@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Isaac Boukris &lt;iboukris@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "cli_credentials_parse_string: fix parsing of principals"</title>
<updated>2020-11-05T06:30:31+00:00</updated>
<author>
<name>Alexander Bokovoy</name>
<email>ab@samba.org</email>
</author>
<published>2020-11-04T17:20:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=49efe0ca0b07396764f78434989165f941cf5f91'/>
<id>49efe0ca0b07396764f78434989165f941cf5f91</id>
<content type='text'>
This reverts commit eb0474d27bae4592b25ac6bf600da29c6a1cb9f8.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit eb0474d27bae4592b25ac6bf600da29c6a1cb9f8.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests python krb5: Add python kerberos canonicalization tests</title>
<updated>2020-11-04T22:54:41+00:00</updated>
<author>
<name>Gary Lockyer</name>
<email>gary@catalyst.net.nz</email>
</author>
<published>2020-10-26T20:32:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=005435dc4d7de9d442c7513edec8c782fe20fda3'/>
<id>005435dc4d7de9d442c7513edec8c782fe20fda3</id>
<content type='text'>
Add python canonicalization tests, loosely based on the code in
source4/torture/krb5/kdc-canon-heimdal.c.  The long term goal is to move
the integration level tests out of kdc-canon-heimdal, leaving it as a
heimdal library unit test.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add python canonicalization tests, loosely based on the code in
source4/torture/krb5/kdc-canon-heimdal.c.  The long term goal is to move
the integration level tests out of kdc-canon-heimdal, leaving it as a
heimdal library unit test.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests python krb5: Add canonicalize flag to ASN1</title>
<updated>2020-11-04T22:54:41+00:00</updated>
<author>
<name>Gary Lockyer</name>
<email>gary@catalyst.net.nz</email>
</author>
<published>2020-10-26T20:31:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=41c8aa4b991aad306d731b08d068c480eb5c7fed'/>
<id>41c8aa4b991aad306d731b08d068c480eb5c7fed</id>
<content type='text'>
Add the canonicalize flag to KerberosFlags, so that it can be used in
python based canonicalization tests.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add the canonicalize flag to KerberosFlags, so that it can be used in
python based canonicalization tests.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>tests python krb5: Make PrincipalName_create a class method</title>
<updated>2020-11-04T22:54:41+00:00</updated>
<author>
<name>Gary Lockyer</name>
<email>gary@catalyst.net.nz</email>
</author>
<published>2020-10-26T20:29:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=b14dca7c1c063e069517ff01b33c63a000d398c3'/>
<id>b14dca7c1c063e069517ff01b33c63a000d398c3</id>
<content type='text'>
Make PrincipalName_create a class method, so it can be used in helper
classes.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make PrincipalName_create a class method, so it can be used in helper
classes.

Signed-off-by: Gary Lockyer &lt;gary@catalyst.net.nz&gt;
Reviewed-by: Andrew Bartlett &lt;abartlet@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>cli_credentials_parse_string: fix parsing of principals</title>
<updated>2020-11-04T14:59:34+00:00</updated>
<author>
<name>Alexander Bokovoy</name>
<email>ab@samba.org</email>
</author>
<published>2020-10-07T16:25:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=eb0474d27bae4592b25ac6bf600da29c6a1cb9f8'/>
<id>eb0474d27bae4592b25ac6bf600da29c6a1cb9f8</id>
<content type='text'>
When parsing a principal-like name, user name was left with full
principal instead of taking only the left part before '@' sign.

&gt;&gt;&gt; from samba import credentials
&gt;&gt;&gt; t = credentials.Credentials()
&gt;&gt;&gt; t.parse_string('admin@realm.test', credentials.SPECIFIED)
&gt;&gt;&gt; t.get_username()
'admin@realm.test'

The issue is that cli_credentials_set_username() does a talloc_strdup()
of the argument, so we need to change order of assignment to allow
talloc_strdup() to copy the right part of the string.

Signed-off-by: Alexander Bokovoy &lt;ab@samba.org&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When parsing a principal-like name, user name was left with full
principal instead of taking only the left part before '@' sign.

&gt;&gt;&gt; from samba import credentials
&gt;&gt;&gt; t = credentials.Credentials()
&gt;&gt;&gt; t.parse_string('admin@realm.test', credentials.SPECIFIED)
&gt;&gt;&gt; t.get_username()
'admin@realm.test'

The issue is that cli_credentials_set_username() does a talloc_strdup()
of the argument, so we need to change order of assignment to allow
talloc_strdup() to copy the right part of the string.

Signed-off-by: Alexander Bokovoy &lt;ab@samba.org&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>selftest: add test for new "samba-tool user unlock" command</title>
<updated>2020-11-04T00:19:25+00:00</updated>
<author>
<name>Björn Baumbach</name>
<email>bb@sernet.de</email>
</author>
<published>2020-10-29T11:38:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a1b021200e3d068631798942a1f219b26afadca7'/>
<id>a1b021200e3d068631798942a1f219b26afadca7</id>
<content type='text'>
Signed-off-by: Björn Baumbach &lt;bb@sernet.de&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;

Autobuild-User(master): Douglas Bagnall &lt;dbagnall@samba.org&gt;
Autobuild-Date(master): Wed Nov  4 00:19:25 UTC 2020 on sn-devel-184
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Björn Baumbach &lt;bb@sernet.de&gt;
Reviewed-by: Douglas Bagnall &lt;douglas.bagnall@catalyst.net.nz&gt;

Autobuild-User(master): Douglas Bagnall &lt;dbagnall@samba.org&gt;
Autobuild-Date(master): Wed Nov  4 00:19:25 UTC 2020 on sn-devel-184
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: avoid returning an already used ID in randomXid()</title>
<updated>2020-10-29T18:54:24+00:00</updated>
<author>
<name>Jule Anger</name>
<email>ja@sernet.de</email>
</author>
<published>2020-10-20T07:42:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=9214fcec349bbda1c9ceb25f835b7aef5024f61a'/>
<id>9214fcec349bbda1c9ceb25f835b7aef5024f61a</id>
<content type='text'>
The error 'uidNumber xxx is already being used.' in the samba tool tests
occurs when the random.randint functions returns the same value twice and
therefore a user or group with an already used gid or uid should be created.

Avoid this error by adding a list that stores the used IDs, so that the randomXid
function can check wheter a value is already used before returning it.

Signed-off-by: Jule Anger &lt;ja@sernet.de&gt;
Reviewed-by: Björn Baumbach &lt;bb@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;

Autobuild-User(master): Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date(master): Thu Oct 29 18:54:24 UTC 2020 on sn-devel-184
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error 'uidNumber xxx is already being used.' in the samba tool tests
occurs when the random.randint functions returns the same value twice and
therefore a user or group with an already used gid or uid should be created.

Avoid this error by adding a list that stores the used IDs, so that the randomXid
function can check wheter a value is already used before returning it.

Signed-off-by: Jule Anger &lt;ja@sernet.de&gt;
Reviewed-by: Björn Baumbach &lt;bb@samba.org&gt;
Reviewed-by: Jeremy Allison &lt;jra@samba.org&gt;

Autobuild-User(master): Jeremy Allison &lt;jra@samba.org&gt;
Autobuild-Date(master): Thu Oct 29 18:54:24 UTC 2020 on sn-devel-184
</pre>
</div>
</content>
</entry>
</feed>
