summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-09-15 14:07:43 -0700
committerAndrew Tridgell <tridge@samba.org>2009-09-15 14:07:43 -0700
commitf2b5b5bb17910c8a2b709fd62e214c96da3fdd2d (patch)
tree2c1ca6a3c9c44e79f7dbb00bd52a60cd450af9fd /source4/lib/ldb/common
parenta99e216a47259ca2c2837b1ea95c995c5e5a4968 (diff)
downloadsamba-f2b5b5bb17910c8a2b709fd62e214c96da3fdd2d.tar.gz
samba-f2b5b5bb17910c8a2b709fd62e214c96da3fdd2d.tar.bz2
samba-f2b5b5bb17910c8a2b709fd62e214c96da3fdd2d.zip
s4-ldb: ldap attribute names can contain a '.'
When they are of the form of OIDs
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_parse.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/ldb/common/ldb_parse.c b/source4/lib/ldb/common/ldb_parse.c
index 654a635abf..0fab0026f3 100644
--- a/source4/lib/ldb/common/ldb_parse.c
+++ b/source4/lib/ldb/common/ldb_parse.c
@@ -267,7 +267,8 @@ static enum ldb_parse_op ldb_parse_filtertype(void *mem_ctx, char **type, char *
p++;
}
- while ((isascii(*p) && isalnum((unsigned char)*p)) || (*p == '-')) { /* attribute names can only be alphanums */
+ while ((isascii(*p) && isalnum((unsigned char)*p)) || (*p == '-') || (*p == '.')) {
+ /* attribute names can only be alphanums */
p++;
}