<feed xmlns='http://www.w3.org/2005/Atom'>
<title>samba.git/auth, 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>Revert "cli_credentials: add a helper to parse user or group names"</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:21:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=5d80b179a1ae43325dde821fc6a869b6c1a1eeea'/>
<id>5d80b179a1ae43325dde821fc6a869b6c1a1eeea</id>
<content type='text'>
This reverts commit 00f4262ed0b22f6e333e5a29c5590b62c783905c.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 00f4262ed0b22f6e333e5a29c5590b62c783905c.
</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>cli_credentials: add a helper to parse user or group names</title>
<updated>2020-11-04T14:59:34+00:00</updated>
<author>
<name>Alexander Bokovoy</name>
<email>ab@samba.org</email>
</author>
<published>2020-11-04T12:00:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=00f4262ed0b22f6e333e5a29c5590b62c783905c'/>
<id>00f4262ed0b22f6e333e5a29c5590b62c783905c</id>
<content type='text'>
cli_credentials_parse_string() parses a string specified for -U option
in command line tools. It has a side-effect that '%' character is always
considered to be a separator after which a password is specified.

Active Directory does allow to create user or group objects with '%' in
the name. It means cli_credentials_parse_string() will not be able to
properly parse such name.

Introduce cli_credentials_parse_name() for the cases when a password is
not expected in the name and call to cli_credentials_parse_name() from
cli_credentials_parse_string().

Test cli_credentials_parse_name() with its intended use in lookup_name()
refactoring.

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>
cli_credentials_parse_string() parses a string specified for -U option
in command line tools. It has a side-effect that '%' character is always
considered to be a separator after which a password is specified.

Active Directory does allow to create user or group objects with '%' in
the name. It means cli_credentials_parse_string() will not be able to
properly parse such name.

Introduce cli_credentials_parse_name() for the cases when a password is
not expected in the name and call to cli_credentials_parse_name() from
cli_credentials_parse_string().

Test cli_credentials_parse_name() with its intended use in lookup_name()
refactoring.

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>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>auth:creds:tests: Migrate test to a cmocka unit test</title>
<updated>2020-11-03T15:25:37+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2020-09-01T10:32:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=1a92994a9513f5e73d30604a1dc217ddeb1ac8d5'/>
<id>1a92994a9513f5e73d30604a1dc217ddeb1ac8d5</id>
<content type='text'>
Signed-off-by: Andreas Schneider &lt;asn@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: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>auth:creds: Rename CRED_USE_KERBEROS values</title>
<updated>2020-11-03T15:25:37+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2020-08-20T07:40:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=1298280a22ef7494fb85a6a5953bae15d22fa204'/>
<id>1298280a22ef7494fb85a6a5953bae15d22fa204</id>
<content type='text'>
Signed-off-by: Andreas Schneider &lt;asn@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: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Alexander Bokovoy &lt;ab@samba.org&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>auth:creds: Add cli_credentials_init_server()</title>
<updated>2020-09-07T12:02:15+00:00</updated>
<author>
<name>Andreas Schneider</name>
<email>asn@samba.org</email>
</author>
<published>2020-09-04T10:21:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=2c00bea2aefdcc69608dffdafa7ce581d31f9354'/>
<id>2c00bea2aefdcc69608dffdafa7ce581d31f9354</id>
<content type='text'>
Signed-off-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>
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
Reviewed-by: Stefan Metzmacher &lt;metze@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>auth:gensec: If Kerberos is required, keep schannel for machine account auth</title>
<updated>2020-09-07T12:02:15+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2020-09-04T15:00:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=515cffb1f20eacb041ff7b3d43f8a122a82ddfbd'/>
<id>515cffb1f20eacb041ff7b3d43f8a122a82ddfbd</id>
<content type='text'>
Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&gt;
Signed-off-by: Andreas Schneider &lt;asn@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>auth:gensec: Pass use_kerberos and keep_schannel to gensec_use_kerberos_mechs()</title>
<updated>2020-09-07T12:02:15+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2020-09-04T12:41:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=a33a40bbc848e5691869cf264009d23a03128f31'/>
<id>a33a40bbc848e5691869cf264009d23a03128f31</id>
<content type='text'>
Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&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: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>auth:gensec: Make gensec_use_kerberos_mechs() a static function</title>
<updated>2020-09-07T12:02:15+00:00</updated>
<author>
<name>Stefan Metzmacher</name>
<email>metze@samba.org</email>
</author>
<published>2020-09-04T12:39:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.exis.tech/samba.git/commit/?id=2186d4131ad4c7961d0c830bf9d48f3d06d27924'/>
<id>2186d4131ad4c7961d0c830bf9d48f3d06d27924</id>
<content type='text'>
Signed-off-by: Stefan Metzmacher &lt;metze@samba.org&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: Stefan Metzmacher &lt;metze@samba.org&gt;
Reviewed-by: Andreas Schneider &lt;asn@samba.org&gt;
</pre>
</div>
</content>
</entry>
</feed>
