s4-ldb: ldap attribute names can contain a '.'
authorAndrew Tridgell <tridge@samba.org>
Tue, 15 Sep 2009 21:07:43 +0000 (14:07 -0700)
committerAndrew Tridgell <tridge@samba.org>
Wed, 16 Sep 2009 01:45:43 +0000 (18:45 -0700)
When they are of the form of OIDs

source4/lib/ldb/common/ldb_parse.c

index 654a635abf1d7edb016659d2de3b965b2f1063a7..0fab0026f39bbcd1ae97938865e1f08f0489df73 100644 (file)
@@ -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++;
        }