Bug#637744: proftpd-mod-ldap: LDAPServer scope doesn't work

Dmitry Katsubo dma_k at mail.ru
Wed Feb 15 23:53:36 GMT 2017


On 2017-02-15 22:37, Hilmar Preuße wrote:
> On 14.08.2011 03:02, Dmitry Katsubo wrote:
> 
> Hi Dimitry,
> 
>> The search scope is always base (scope=0):
>>
>> slapd: SRCH base="cn=persons,cn=server" scope=0 deref=0
>> filter="(uid=dmitry)"
>>
>> regardless the LDAPServer setting:
>>
>> LDAPServer ldap://localhost??sub
>>
>> The workaround is to use LDAPServer+LDAPSearchScope separately:
>>
>> LDAPServer localhost
>> LDAPSearchScope subtree
>>
>> This bug is in some sense the opposite bug for:
>>
>> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500731
>>
> I've noticed that http://bugs.proftpd.org/show_bug.cgi?id=4289 has been
> reported @upstream. AFAICT this is a different one, right?
> 
> Is your issue still reproducible?

Hi,

I think this is about the same matter. If I remember correctly, I have
originally using "LDAPSearchScope subtree", which at some moment was broken
(bug#500731), and then I tried "LDAPServer ldap://localhost??sub" which also
didn't work, but after updating to v1.3.2 it worked fine. Then I believe it was
broken again (bug#637744).

Maybe I miss something (quite some time had passed), however I confirm that
"LDAPServer ldap://localhost??sub" works for me since v1.3.2 up to v1.3.5a-1
which I am using now.

Do you want to focus on "LDAPSearchScope subtree" issue at the moment?
Well, I quickly tried

LDAPServer localhost                                                                                    
LDAPSearchScope subtree                                                                                 

and it seems to work as expected. I cannot be 100% sure, but I'll let one
know in bugzilla if I find any problem.

-- 
With best regards,
Dmitry



More information about the Pkg-proftpd-maintainers mailing list