<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ds.git, branch openldap</title>
<subtitle>Unnamed repository; edit this file to name it for gitweb.</subtitle>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/'/>
<entry>
<title>implement slapi_ldap_explode_dn and slapi_ldap_explode_rdn</title>
<updated>2010-08-31T16:51:34+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-27T17:55:29+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=bb75d74d5ea1695e64cc63b1e328cc5ebeb5cdd5'/>
<id>bb75d74d5ea1695e64cc63b1e328cc5ebeb5cdd5</id>
<content type='text'>
The DS has some problems with the openldap versions of these functions:
1) They are deprecated - should use the str2[r]dn and [r]dn2str and the
bv versions of those functions instead
2) They escape utf-8 and other values in the strings - the mozldap functions
do not do this
3) They handle double quoted strings, but they remove the quotes - our
code expects the quotes to be left in place
Until we fix our DN handling, and get rid of the double quoted DNs, we just
use the mozldap versions of these functions.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The DS has some problems with the openldap versions of these functions:
1) They are deprecated - should use the str2[r]dn and [r]dn2str and the
bv versions of those functions instead
2) They escape utf-8 and other values in the strings - the mozldap functions
do not do this
3) They handle double quoted strings, but they remove the quotes - our
code expects the quotes to be left in place
Until we fix our DN handling, and get rid of the double quoted DNs, we just
use the mozldap versions of these functions.
</pre>
</div>
</content>
</entry>
<entry>
<title>do not un-null-terminate normalized DN until new url is constructed</title>
<updated>2010-08-31T16:51:34+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-25T21:31:43+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=4f54c63d50d8552b59fbeb1f6f0e59422282f897'/>
<id>4f54c63d50d8552b59fbeb1f6f0e59422282f897</id>
<content type='text'>
rawdn may be normalized in place - if we add back the '?' to the URL
before we construct the new URL with the normalized DN, we will create
a bogus URL string - so delay that until we construct the new URL
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
rawdn may be normalized in place - if we add back the '?' to the URL
before we construct the new URL with the normalized DN, we will create
a bogus URL string - so delay that until we construct the new URL
</pre>
</div>
</content>
</entry>
<entry>
<title>use slapi_ldap_url_parse in the acl code</title>
<updated>2010-08-31T16:43:52+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-25T18:45:11+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=c14fb2675e17c7af4348559c417f734567ecae6d'/>
<id>c14fb2675e17c7af4348559c417f734567ecae6d</id>
<content type='text'>
I missed a couple of places in the acl code that should use
slapi_ldap_url_parse - I also added some more debugging
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I missed a couple of places in the acl code that should use
slapi_ldap_url_parse - I also added some more debugging
</pre>
</div>
</content>
</entry>
<entry>
<title>check src &lt; *out only; only check for \nspace if src &lt; *out - 2</title>
<updated>2010-08-31T16:36:02+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-24T19:35:33+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=2f9745ed4bc3d39486c61f997ecf62d7d67252e3'/>
<id>2f9745ed4bc3d39486c61f997ecf62d7d67252e3</id>
<content type='text'>
*out will never be NULL here, so we only need to check that src &lt; *out as
the loop condition
when looking for a continuation line, make sure there are two characters
in *out to check
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
*out will never be NULL here, so we only need to check that src &lt; *out as
the loop condition
when looking for a continuation line, make sure there are two characters
in *out to check
</pre>
</div>
</content>
</entry>
<entry>
<title>move the out pointer back if continuation lines were removed</title>
<updated>2010-08-31T16:36:02+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-24T16:16:36+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=a4b1bfeccd6d3221d7a7d0d4f8b812127522b09b'/>
<id>a4b1bfeccd6d3221d7a7d0d4f8b812127522b09b</id>
<content type='text'>
when putting ldif data with the no wrap option, if we removed some
continuation lines, we have to move the output data pointer back since
the continuation line markers are removed in place
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
when putting ldif data with the no wrap option, if we removed some
continuation lines, we have to move the output data pointer back since
the continuation line markers are removed in place
</pre>
</div>
</content>
</entry>
<entry>
<title>convert mozldap host list to openldap uri list</title>
<updated>2010-08-31T16:36:02+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-23T21:07:51+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=1e933d0eaf6591a96a034f3da85d9c6d54c94a88'/>
<id>1e933d0eaf6591a96a034f3da85d9c6d54c94a88</id>
<content type='text'>
mozldap accepts hostnames in the form host1[:port1] ... hostN[:portN]
in the ldap_init argument and in ldap urls/uris.  DS code uses
ldap_initialize() which takes a list of uris in the form
ldap[s]://host1[:port1]/ ldap[s]://host2[:port2]/ ...
We have to convert the host:port list into a list of LDAP uris
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mozldap accepts hostnames in the form host1[:port1] ... hostN[:portN]
in the ldap_init argument and in ldap urls/uris.  DS code uses
ldap_initialize() which takes a list of uris in the form
ldap[s]://host1[:port1]/ ldap[s]://host2[:port2]/ ...
We have to convert the host:port list into a list of LDAP uris
</pre>
</div>
</content>
</entry>
<entry>
<title>slapi_ldap_url_parse must handle multiple host:port in url</title>
<updated>2010-08-31T16:36:02+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-20T21:36:12+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=d0b39138e041e0053421a0002341c1f300be3e1c'/>
<id>d0b39138e041e0053421a0002341c1f300be3e1c</id>
<content type='text'>
mozldap supports a non-standard URL extension which allows multiple host:port
combinations - openldap does not support this - fake out openldap by
converting spaces to %20 and all but the last colon to %3A before calling
ldap_url_parse, then unescape ludp-&gt;lud_host before returning
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
mozldap supports a non-standard URL extension which allows multiple host:port
combinations - openldap does not support this - fake out openldap by
converting spaces to %20 and all but the last colon to %3A before calling
ldap_url_parse, then unescape ludp-&gt;lud_host before returning
</pre>
</div>
</content>
</entry>
<entry>
<title>do not terminate unwrapped LDIF line with another newline</title>
<updated>2010-08-31T16:36:02+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-20T18:33:01+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=c40f6877c1c528e77751dea94d86bd9aaaaf26cb'/>
<id>c40f6877c1c528e77751dea94d86bd9aaaaf26cb</id>
<content type='text'>
The function ldif_sput already terminates the line with a newline character -
we do not need to add another one when unwrapping a wrapped line.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function ldif_sput already terminates the line with a newline character -
we do not need to add another one when unwrapping a wrapped line.
</pre>
</div>
</content>
</entry>
<entry>
<title>openldap_read_function needs to set EWOULDBLOCK if the buffer is empty</title>
<updated>2010-08-31T16:36:01+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-19T22:27:28+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=d48a2c94731a25fc63a294e854b76bedfd0ced22'/>
<id>d48a2c94731a25fc63a294e854b76bedfd0ced22</id>
<content type='text'>
If the openldap_read_function has returned all of the buffered data,
it needs to set errno to EWOULDBLOCK to let the code know that it needs
to read more data into the buffer.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the openldap_read_function has returned all of the buffered data,
it needs to set errno to EWOULDBLOCK to let the code know that it needs
to read more data into the buffer.
</pre>
</div>
</content>
</entry>
<entry>
<title>have to use LDAP_OPT_X_TLS_NEVER to defeat cert hostname checking</title>
<updated>2010-08-31T16:36:01+00:00</updated>
<author>
<name>Rich Megginson</name>
<email>rmeggins@redhat.com</email>
</author>
<published>2010-08-18T20:14:17+00:00</published>
<link rel='alternate' type='text/html' href='https://fedorapeople.org/cgit/rmeggins/public_git/ds.git/commit/?id=74b655b434144e2aa30c86df1e9ec801839ffe28'/>
<id>74b655b434144e2aa30c86df1e9ec801839ffe28</id>
<content type='text'>
Even though the ldap.conf man page is not really clear about this,
looking at the code in libraries/libldap/tls2.c:ldap_int_tls_start()
if you don't specify LDAP_OPT_X_TLS_REQUIRE_CERT as
LDAP_OPT_X_TLS_NEVER it will check the hostname
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Even though the ldap.conf man page is not really clear about this,
looking at the code in libraries/libldap/tls2.c:ldap_int_tls_start()
if you don't specify LDAP_OPT_X_TLS_REQUIRE_CERT as
LDAP_OPT_X_TLS_NEVER it will check the hostname
</pre>
</div>
</content>
</entry>
</feed>
