From: Kurt Zeilenga Date: Wed, 13 Oct 1999 20:28:00 +0000 (+0000) Subject: Change 'attribute' directive to 'attributetype' X-Git-Tag: UCDATA_2_4~345 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7e53b5bdeb72144c8a3440eb308a16a88d273997;p=openldap Change 'attribute' directive to 'attributetype' (and allowing 'attribute' for backwards compatibility). manuals and *.schema to be updated as time permits. --- diff --git a/doc/man/man5/slapd.conf.5 b/doc/man/man5/slapd.conf.5 index 6f92c102ba..2ebec753ac 100644 --- a/doc/man/man5/slapd.conf.5 +++ b/doc/man/man5/slapd.conf.5 @@ -76,7 +76,7 @@ information on using the access-control mechanisms. .TP .B -attribute ( [NAME ] [DESC ] [OBSOLETE] \ +attributetype ( [NAME ] [DESC ] [OBSOLETE] \ [SUP ] [EQUALITY ] [ORDERING ] [SUBSTR ] \ [SYNTAX ] [SINGLE-VALUE] [COLLECTIVE] [NO-USER-MODIFICATION] \ [USAGE ] ) @@ -85,8 +85,7 @@ This is the preferred format for attribute type definitions. The slapd parser extends the RFC 2252 definition by allowing string forms as well as numeric OIDs to be used for the attribute OID and attribute syntax OID. (See the -.B -objectidentifier +.B objectidentifier description.) Currently the syntax name parser is case-sensitive. The known syntax names are: .RS @@ -107,7 +106,7 @@ SubstringAssertion NISnetgrouptriple Bootparameter .RE .TP .B -attribute [] { bin | ces | cis | tel | dn } +attribute[type] [] { bin | ces | cis | tel | dn } Associate a syntax with an attribute name. This directive is deprecated in favor of the one above. By default, an attribute is assumed to have syntax diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 1d6367907d..fa546aac22 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -434,6 +434,7 @@ read_config( const char *fname ) /* specify an Object Identifier macro */ } else if ( strcasecmp( cargv[0], "objectidentifier" ) == 0 ) { parse_oidm( fname, lineno, cargc, cargv ); + /* specify an objectclass */ } else if ( strcasecmp( cargv[0], "objectclass" ) == 0 ) { if ( *cargv[1] == '(' ) { @@ -444,8 +445,10 @@ read_config( const char *fname ) parse_oc_old( be, fname, lineno, cargc, cargv ); } - /* specify an attribute */ - } else if ( strcasecmp( cargv[0], "attribute" ) == 0 ) { + /* specify an attribute type */ + } else if (( strcasecmp( cargv[0], "attributetype" ) == 0 ) + || ( strcasecmp( cargv[0], "attribute" ) == 0 )) + { if ( *cargv[1] == '(' ) { char * p; p = strchr(saveline,'(');