Skip to content
Snippets Groups Projects
Commit 7e53b5bd authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Change 'attribute' directive to 'attributetype'

(and allowing 'attribute' for backwards compatibility).
manuals and *.schema to be updated as time permits.
parent 60d00d46
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ information on using the ...@@ -76,7 +76,7 @@ information on using the
access-control mechanisms. access-control mechanisms.
.TP .TP
.B .B
attribute ( <oid> [NAME <name>] [DESC <description>] [OBSOLETE] \ attributetype ( <oid> [NAME <name>] [DESC <description>] [OBSOLETE] \
[SUP <oid>] [EQUALITY <oid>] [ORDERING <oid>] [SUBSTR <oid>] \ [SUP <oid>] [EQUALITY <oid>] [ORDERING <oid>] [SUBSTR <oid>] \
[SYNTAX <oidlen>] [SINGLE-VALUE] [COLLECTIVE] [NO-USER-MODIFICATION] \ [SYNTAX <oidlen>] [SINGLE-VALUE] [COLLECTIVE] [NO-USER-MODIFICATION] \
[USAGE <attributeUsage>] ) [USAGE <attributeUsage>] )
...@@ -85,8 +85,7 @@ This is the preferred format for attribute type definitions. The slapd ...@@ -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 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. as numeric OIDs to be used for the attribute OID and attribute syntax OID.
(See the (See the
.B .B objectidentifier
objectidentifier
description.) Currently the syntax name parser is case-sensitive. description.) Currently the syntax name parser is case-sensitive.
The known syntax names are: The known syntax names are:
.RS .RS
...@@ -107,7 +106,7 @@ SubstringAssertion NISnetgrouptriple Bootparameter ...@@ -107,7 +106,7 @@ SubstringAssertion NISnetgrouptriple Bootparameter
.RE .RE
.TP .TP
.B .B
attribute <name> [<name2>] { bin | ces | cis | tel | dn } attribute[type] <name> [<name2>] { bin | ces | cis | tel | dn }
Associate a syntax with an attribute name. This directive is deprecated Associate a syntax with an attribute name. This directive is deprecated
in favor of the one above. By default, an in favor of the one above. By default, an
attribute is assumed to have syntax attribute is assumed to have syntax
......
...@@ -434,6 +434,7 @@ read_config( const char *fname ) ...@@ -434,6 +434,7 @@ read_config( const char *fname )
/* specify an Object Identifier macro */ /* specify an Object Identifier macro */
} else if ( strcasecmp( cargv[0], "objectidentifier" ) == 0 ) { } else if ( strcasecmp( cargv[0], "objectidentifier" ) == 0 ) {
parse_oidm( fname, lineno, cargc, cargv ); parse_oidm( fname, lineno, cargc, cargv );
/* specify an objectclass */ /* specify an objectclass */
} else if ( strcasecmp( cargv[0], "objectclass" ) == 0 ) { } else if ( strcasecmp( cargv[0], "objectclass" ) == 0 ) {
if ( *cargv[1] == '(' ) { if ( *cargv[1] == '(' ) {
...@@ -444,8 +445,10 @@ read_config( const char *fname ) ...@@ -444,8 +445,10 @@ read_config( const char *fname )
parse_oc_old( be, fname, lineno, cargc, cargv ); parse_oc_old( be, fname, lineno, cargc, cargv );
} }
/* specify an attribute */ /* specify an attribute type */
} else if ( strcasecmp( cargv[0], "attribute" ) == 0 ) { } else if (( strcasecmp( cargv[0], "attributetype" ) == 0 )
|| ( strcasecmp( cargv[0], "attribute" ) == 0 ))
{
if ( *cargv[1] == '(' ) { if ( *cargv[1] == '(' ) {
char * p; char * p;
p = strchr(saveline,'('); p = strchr(saveline,'(');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment