From fe1d56dd3bc901e7dcba8e7d013bfbc47f4a4ea8 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 18 May 2007 07:41:43 +0000 Subject: r22989: allow '@foo' attributes searchable as we allow '@foo' attributes in all other places too... metze (This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d) --- source4/lib/ldb/common/ldb_parse.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/lib/ldb/common') diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c index b0baaa2f7b..4f608eed39 100644 --- a/source4/lib/ldb/common/ldb_parse.c +++ b/source4/lib/ldb/common/ldb_parse.c @@ -264,6 +264,10 @@ static enum ldb_parse_op ldb_parse_filtertype(void *mem_ctx, char **type, char * /* retrieve attributetype name */ t = p; + if (*p == '@') { /* for internal attributes the first char can be @ */ + p++; + } + while ((isascii(*p) && isalnum((unsigned char)*p)) || (*p == '-')) { /* attribute names can only be alphanums */ p++; } -- cgit