X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslapd%2Findex.c;h=4ee35194426b0e4164cd8b21750ef0a72bc4ff60;hb=1fbbc1181152a32c1b9b82342ad6d63034ec7fbb;hp=a3b1032f5c6ce03de047c867350c0d36e5b0437f;hpb=057dda50d3e7206c286d29e5b270f30466f331d1;p=openldap diff --git a/servers/slapd/index.c b/servers/slapd/index.c index a3b1032f5c..4ee3519442 100644 --- a/servers/slapd/index.c +++ b/servers/slapd/index.c @@ -1,7 +1,7 @@ /* index.c - index utilities */ /* $OpenLDAP$ */ /* - * Copyright 1998-2002 The OpenLDAP Foundation, All Rights Reserved. + * Copyright 1998-2003 The OpenLDAP Foundation, All Rights Reserved. * COPYING RESTRICTIONS APPLY, see COPYRIGHT file */ @@ -29,8 +29,9 @@ int slap_str2index( const char *str, slap_mask_t *idx ) strcasecmp( str, "sub" ) == 0 ) { *idx = SLAP_INDEX_SUBSTR_DEFAULT; - } else if ( strcasecmp( str, "nolang" ) == 0 ) { - *idx = SLAP_INDEX_NOLANG; + } else if ( strcasecmp( str, "nolang" ) == 0 || /* backwards compat */ + strcasecmp( str, "notags" ) == 0 ) { + *idx = SLAP_INDEX_NOTAGS; } else if ( strcasecmp( str, "nosubtypes" ) == 0 ) { *idx = SLAP_INDEX_NOSUBTYPES; } else {