I have a need to use a search filter in SASL mappings where it looks like something
(&(uid=\1)(|(objectclass=x)(objectclass=y)))
the & is being substituted like \1 as seen with tracing turned on. I have tried escaping it as & and \& smb://&. I can't find any documentation on how the substitution is handled with the filter. Is it not possible to utilize a normal ldap search filter like this in SASL mappings?
thanks for answers and/or pointers.
/mrg
On 02/11/2012 11:37 AM, Michael Gettes wrote:
I have a need to use a search filter in SASL mappings where it looks like something
(&(uid=\1)(|(objectclass=x)(objectclass=y)))
the & is being substituted like \1 as seen with tracing turned on. I have tried escaping it as & and \& smb://&. I can't find any documentation on how the substitution is handled with the filter. Is it not possible to utilize a normal ldap search filter like this in SASL mappings?
Did you restart slapd after changing it to use & or \&?
thanks for answers and/or pointers.
/mrg
-- 389 users mailing list 389-users@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/389-users
absolutely I restarted!
i looked at the code and slapi_re_subs in ldap/servers/regex.c doesn't seem to allow for any special casing of &… it will always be replaced with the input token. no apparent way to escape it. bummer.
I just created a fedora account to file a bug. tried to login to trac. authentication not working. /mrg
On Mon, Feb 13, 2012 at 10:12 AM, Rich Megginson rmeggins@redhat.comwrote:
** On 02/11/2012 11:37 AM, Michael Gettes wrote:
I have a need to use a search filter in SASL mappings where it looks like something
(&(uid=\1)(|(objectclass=x)(objectclass=y)))
the & is being substituted like \1 as seen with tracing turned on. I have tried escaping it as & and \&. I can't find any documentation on how the substitution is handled with the filter. Is it not possible to utilize a normal ldap search filter like this in SASL mappings?
Did you restart slapd after changing it to use & or \&?
thanks for answers and/or pointers.
/mrg
-- 389 users mailing list389-users@lists.fedoraproject.orghttps://admin.fedoraproject.org/mailman/listinfo/389-users
On 02/13/2012 08:30 AM, Michael Gettes wrote:
absolutely I restarted!
i looked at the code and slapi_re_subs in ldap/servers/regex.c doesn't seem to allow for any special casing of &… it will always be replaced with the input token. no apparent way to escape it. bummer.
I just created a fedora account to file a bug. tried to login to trac. authentication not working.
If you are on freenode irc, join #fedora-admin and ask those guys for help otherwise, let me know your fedora account name and I will file a ticket for you
/mrg
On Mon, Feb 13, 2012 at 10:12 AM, Rich Megginson <rmeggins@redhat.com mailto:rmeggins@redhat.com> wrote:
On 02/11/2012 11:37 AM, Michael Gettes wrote:
I have a need to use a search filter in SASL mappings where it looks like something (&(uid=\1)(|(objectclass=x)(objectclass=y))) the & is being substituted like \1 as seen with tracing turned on. I have tried escaping it as \& and \\&. I can't find any documentation on how the substitution is handled with the filter. Is it not possible to utilize a normal ldap search filter like this in SASL mappings?
Did you restart slapd after changing it to use \& or \\&?
thanks for answers and/or pointers. /mrg -- 389 users mailing list 389-users@lists.fedoraproject.org <mailto:389-users@lists.fedoraproject.org> https://admin.fedoraproject.org/mailman/listinfo/389-users
389-users@lists.fedoraproject.org