<feed xmlns='http://www.w3.org/2005/Atom'>
<title>sssd2.git/src/db/sysdb.h, branch sssd-1-8</title>
<subtitle>System Security Services Daemon [okos' clone]</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/'/>
<entry>
<title>sysdb: try dealing with binary-content attributes</title>
<updated>2013-02-26T16:22:16+00:00</updated>
<author>
<name>Jan Engelhardt</name>
<email>jengelh@inai.de</email>
</author>
<published>2013-02-21T12:12:25+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=7cd86ef19cdde175f318aeca4ef2530d33158342'/>
<id>7cd86ef19cdde175f318aeca4ef2530d33158342</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/1818

I have here a LDAP user entry which has this attribute

	loginAllowedTimeMap::
	 AAAAAAAAAP///38AAP///38AAP///38AAP///38AAP///38AAAAAAAAA

In the function sysdb_attrs_add_string(), called from
sdap_attrs_add_ldap_attr(), strlen() is called on this blob, which is
the wrong thing to do. The result of strlen is then used to populate
the .v_length member of a struct ldb_val - and this will set it to
zero in this case. (There is also the problem that there may not be
a '\0' at all in the blob.)

Subsequently, .v_length being 0 makes ldb_modify(), called from
sysdb_set_entry_attr(), return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX. End
result is that users do not get stored in the sysdb, and programs like
`id` or `getent ...` show incomplete information.

The bug was encountered with sssd-1.8.5. sssd-1.5.11 seemed to behave
fine, but that may not mean that is the absolute lower boundary of
introduction of the problem.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/1818

I have here a LDAP user entry which has this attribute

	loginAllowedTimeMap::
	 AAAAAAAAAP///38AAP///38AAP///38AAP///38AAP///38AAAAAAAAA

In the function sysdb_attrs_add_string(), called from
sdap_attrs_add_ldap_attr(), strlen() is called on this blob, which is
the wrong thing to do. The result of strlen is then used to populate
the .v_length member of a struct ldb_val - and this will set it to
zero in this case. (There is also the problem that there may not be
a '\0' at all in the blob.)

Subsequently, .v_length being 0 makes ldb_modify(), called from
sysdb_set_entry_attr(), return LDB_ERR_INVALID_ATTRIBUTE_SYNTAX. End
result is that users do not get stored in the sysdb, and programs like
`id` or `getent ...` show incomplete information.

The bug was encountered with sssd-1.8.5. sssd-1.5.11 seemed to behave
fine, but that may not mean that is the absolute lower boundary of
introduction of the problem.
</pre>
</div>
</content>
</entry>
<entry>
<title>SYSDB: Make sysdb_attrs_get_el_int() public</title>
<updated>2012-08-21T10:33:15+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2012-08-21T10:33:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=e6709b54aae7cde6a3d6c73c756cb220a8129e2a'/>
<id>e6709b54aae7cde6a3d6c73c756cb220a8129e2a</id>
<content type='text'>
Also rename it to sysdb_attrs_get_el_ext()
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Also rename it to sysdb_attrs_get_el_ext()
</pre>
</div>
</content>
</entry>
<entry>
<title>Search netgroups by alias, too</title>
<updated>2012-03-06T20:29:40+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2012-03-06T17:47:15+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=9027034fcfe8d967c9250eb78a78edcc0811c805'/>
<id>9027034fcfe8d967c9250eb78a78edcc0811c805</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/1228
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/1228
</pre>
</div>
</content>
</entry>
<entry>
<title>Delete missing attributes from netgroups to be stored</title>
<updated>2012-02-24T19:58:15+00:00</updated>
<author>
<name>Jan Zeleny</name>
<email>jzeleny@redhat.com</email>
</author>
<published>2012-02-21T12:07:30+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=720396bedc032e2c3d6fd48b4f7913fcb0429641'/>
<id>720396bedc032e2c3d6fd48b4f7913fcb0429641</id>
<content type='text'>
https://fedorahosted.org/sssd/ticket/1136
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://fedorahosted.org/sssd/ticket/1136
</pre>
</div>
</content>
</entry>
<entry>
<title>LDAP: Add support for SSH user public keys</title>
<updated>2012-02-06T23:26:57+00:00</updated>
<author>
<name>Jan Cholasta</name>
<email>jcholast@redhat.com</email>
</author>
<published>2012-02-03T21:29:47+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=af5a58fc3811af8521721f731d8234d983042cea'/>
<id>af5a58fc3811af8521721f731d8234d983042cea</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Added some SELinux-related sysdb routines</title>
<updated>2012-02-06T13:25:22+00:00</updated>
<author>
<name>Jan Zeleny</name>
<email>jzeleny@redhat.com</email>
</author>
<published>2012-01-24T11:21:07+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=4c11f752e1f10cf5740d53a3206bb795e9e34fe8'/>
<id>4c11f752e1f10cf5740d53a3206bb795e9e34fe8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Renamed some sysdb constants for their wider usage</title>
<updated>2012-02-06T13:25:22+00:00</updated>
<author>
<name>Jan Zeleny</name>
<email>jzeleny@redhat.com</email>
</author>
<published>2012-01-16T11:57:20+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=9674f0f018c65a9af6b18dd0a4e515f726803d27'/>
<id>9674f0f018c65a9af6b18dd0a4e515f726803d27</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>AUTOFS: sysdb interface</title>
<updated>2012-02-06T00:16:16+00:00</updated>
<author>
<name>Jakub Hrozek</name>
<email>jhrozek@redhat.com</email>
</author>
<published>2012-01-03T07:12:57+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=1f1e6cbc59868f06dee3ab4b3df660fcb77ce1c8'/>
<id>1f1e6cbc59868f06dee3ab4b3df660fcb77ce1c8</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SYSDB: Add sysdb_attrs_get_uint16_t</title>
<updated>2012-01-31T14:37:40+00:00</updated>
<author>
<name>Stephen Gallagher</name>
<email>sgallagh@redhat.com</email>
</author>
<published>2012-01-28T16:35:42+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=48b6eab1b369107af0d568e016a87637b7affc55'/>
<id>48b6eab1b369107af0d568e016a87637b7affc55</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>SYSDB: extend sysdb_store_service() to accept additional attributes</title>
<updated>2012-01-31T14:37:40+00:00</updated>
<author>
<name>Stephen Gallagher</name>
<email>sgallagh@redhat.com</email>
</author>
<published>2012-01-28T15:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/okos/public_git/sssd2.git/commit/?id=e299638926171e0e92a36122aeff6611cd52418d'/>
<id>e299638926171e0e92a36122aeff6611cd52418d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
