r22989: allow '@foo' attributes searchable as we allow '@foo' attributes
authorStefan Metzmacher <metze@samba.org>
Fri, 18 May 2007 07:41:43 +0000 (07:41 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:52:36 +0000 (14:52 -0500)
in all other places too...

metze
(This used to be commit 4e32aafb9ebdcc70966aaa2e3891ec9a0959535d)

source4/lib/ldb/common/ldb_parse.c

index b0baaa2f7b8c8edf8fcf9e92c58e5d6bcb559cd8..4f608eed391a09f279606afd9ceab61d646b4f9e 100644 (file)
@@ -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++;
        }