You are viewing a plain text version of this content. The canonical link for it is here.
Posted to api@directory.apache.org by Sébastien Bahloul <se...@gmail.com> on 2011/11/17 23:49:23 UTC
LDAP filter
Hi guys,
In the API, is there a way to accept simple filters that don't start and
end with parenthesis ? I understand that this is closer to the standards
but it's quite disturbing for people switching from other APIs or that used
mostly other vendors products that don't require such format ?
Best regards,
--
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/
Re: LDAP filter
Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Thanks very much Sébastien!
Regards,
Pierre-Arnaud
On 21 nov. 2011, at 22:55, Sébastien Bahloul wrote:
> Hi Pierre-Arnaud,
>
> I've just created it as you've proposed: https://issues.apache.org/jira/browse/DIRAPI-64
>
> Regards,
> --
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
>
>
>
> 2011/11/18 Pierre-Arnaud Marcelot <pa...@marcelot.net>
> Hi Sébastien,
>
> I guess you refer to a filter like:
> attr=value
> instead of:
> (attr=value)
>
> At the moment, the parser will complain because, as you said, it follows the standards.
> But, it might be a good thing to relax it a little to accept those kinds of simplified 'hacked' filters.
> Since the API's goal is to facilitate LDAP, I think you're right and it makes sense.
>
> It would be great to create a JIRA issue about it.
>
> Regards,
> Pierre-Arnaud
>
> On 17 nov. 2011, at 23:49, Sébastien Bahloul wrote:
>
>> Hi guys,
>>
>> In the API, is there a way to accept simple filters that don't start and
>> end with parenthesis ? I understand that this is closer to the standards
>> but it's quite disturbing for people switching from other APIs or that used
>> mostly other vendors products that don't require such format ?
>>
>> Best regards,
>>
>>
>> --
>> Sebastien BAHLOUL
>> IAM / Security specialist
>> Ldap Synchronization Connector : http://lsc-project.org
>> Blog : http://sbahloul.wordpress.com/
>
>
Re: LDAP filter
Posted by Sébastien Bahloul <se...@gmail.com>.
Hi Pierre-Arnaud,
I've just created it as you've proposed:
https://issues.apache.org/jira/browse/DIRAPI-64
Regards,
--
Sebastien BAHLOUL
IAM / Security specialist
Ldap Synchronization Connector : http://lsc-project.org
Blog : http://sbahloul.wordpress.com/
2011/11/18 Pierre-Arnaud Marcelot <pa...@marcelot.net>
> Hi Sébastien,
>
> I guess you refer to a filter like:
> attr=value
> instead of:
> (attr=value)
>
> At the moment, the parser will complain because, as you said, it follows
> the standards.
> But, it might be a good thing to relax it a little to accept those kinds
> of simplified 'hacked' filters.
> Since the API's goal is to facilitate LDAP, I think you're right and it
> makes sense.
>
> It would be great to create a JIRA issue about it.
>
> Regards,
> Pierre-Arnaud
>
> On 17 nov. 2011, at 23:49, Sébastien Bahloul wrote:
>
> Hi guys,
>
> In the API, is there a way to accept simple filters that don't start and
> end with parenthesis ? I understand that this is closer to the standards
> but it's quite disturbing for people switching from other APIs or that used
> mostly other vendors products that don't require such format ?
>
> Best regards,
>
>
> --
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
>
>
>
Re: LDAP filter
Posted by Pierre-Arnaud Marcelot <pa...@marcelot.net>.
Hi Sébastien,
I guess you refer to a filter like:
attr=value
instead of:
(attr=value)
At the moment, the parser will complain because, as you said, it follows the standards.
But, it might be a good thing to relax it a little to accept those kinds of simplified 'hacked' filters.
Since the API's goal is to facilitate LDAP, I think you're right and it makes sense.
It would be great to create a JIRA issue about it.
Regards,
Pierre-Arnaud
On 17 nov. 2011, at 23:49, Sébastien Bahloul wrote:
> Hi guys,
>
> In the API, is there a way to accept simple filters that don't start and
> end with parenthesis ? I understand that this is closer to the standards
> but it's quite disturbing for people switching from other APIs or that used
> mostly other vendors products that don't require such format ?
>
> Best regards,
>
>
> --
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
Re: LDAP filter
Posted by Kiran Ayyagari <ka...@apache.org>.
you can construct using the XXXNode classes present in the API [1]
[1] https://svn.apache.org/repos/asf/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/filter
On Thu, Nov 17, 2011 at 5:49 PM, Sébastien Bahloul
<se...@gmail.com> wrote:
> Hi guys,
>
> In the API, is there a way to accept simple filters that don't start and
> end with parenthesis ? I understand that this is closer to the standards
> but it's quite disturbing for people switching from other APIs or that used
> mostly other vendors products that don't require such format ?
>
> Best regards,
>
>
> --
> Sebastien BAHLOUL
> IAM / Security specialist
> Ldap Synchronization Connector : http://lsc-project.org
> Blog : http://sbahloul.wordpress.com/
>
--
Kiran Ayyagari