> On 13 Jun 2019, at 16:09, Viktor Ashirov <vashirov@xxxxxxxxxx> wrote: > > On Thu, Jun 13, 2019 at 3:26 PM William Brown <wbrown@xxxxxxx> wrote: >> >> Is the test case *just* testing if binary searching of attributes works? > The test was to check if we can query the server for > userCertificate=<data>, where <data> is a string representation of a > base64 encoded x509 certificate. The original test was also passing > binary representation (usercertificate;binary=...) to ldapsearch (to > see if it translates correctly to base64). Thanks for telling me what the test is meant to do! This is what I wanted to know from the start ... So the base64 is only if the attribute is "longer" than a certain amount the ldapclient tools base64 it for viewing - the server actually doesn't care or know that it's going on at all, so really, this is a test if binary matching works. You can thus, setup a simpler test by setting with open('/tmp/test') as f: data = f.readlines() # or read(), I can't remember what does it all without newlines) Account.set('usercertificate', data) Accounts.filter('userCert=%b' % data) So then I'd tweak if it's %b or %s, I'd probably also to see what works and prevents python leaking state or formatting. Then work up to a full certificate. If you have a failuing example, please send me the access log and -v (DEBUGGING=True) lib389 output so I can help Thanks, > > -- > Viktor > _______________________________________________ > 389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx > To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx > Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html > List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines > List Archives: https://lists.fedoraproject.org/archives/list/389-devel@xxxxxxxxxxxxxxxxxxxxxxx — Sincerely, William Brown Senior Software Engineer, 389 Directory Server SUSE Labs _______________________________________________ 389-devel mailing list -- 389-devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to 389-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/389-devel@xxxxxxxxxxxxxxxxxxxxxxx