diff options
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb_parse.c | 4 |
1 files changed, 4 insertions, 0 deletions
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++; } |