diff options
author | Nathan Kinder <nkinder@redhat.com> | 2009-12-11 08:54:16 -0800 |
---|---|---|
committer | Nathan Kinder <nkinder@redhat.com> | 2009-12-11 08:54:16 -0800 |
commit | 9f337eb80b6446c2f99eef600f55392dbf4970cb (patch) | |
tree | 757b33e9ae5d21719bf5f23f8815617979c61a46 /ldap/servers/slapd/attr.c | |
parent | 99ac483608108e04e6e87c478058a7ab3d944018 (diff) | |
download | ds-9f337eb80b6446c2f99eef600f55392dbf4970cb.tar.gz ds-9f337eb80b6446c2f99eef600f55392dbf4970cb.tar.xz ds-9f337eb80b6446c2f99eef600f55392dbf4970cb.zip |
Set unknown attribute syntax to Octet String.
When an unknown attribute type is used (when adding an entry using
the extensibleObject objectclass for example), the syntax of the
attribute defaults to "Directory String". This places syntax
restrictions on the attribute, limiting the attribtues use to
specific types of values. This patch changes the syntax for
unknown attribute to "Octet String", which allows 0 or more UTF-8
bytes. This will allow unknown attributes to store binary or empty
values.
Diffstat (limited to 'ldap/servers/slapd/attr.c')
-rw-r--r-- | ldap/servers/slapd/attr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ldap/servers/slapd/attr.c b/ldap/servers/slapd/attr.c index d78342ee..89aa9f51 100644 --- a/ldap/servers/slapd/attr.c +++ b/ldap/servers/slapd/attr.c @@ -255,12 +255,12 @@ slapi_attr_init_locking_optional(Slapi_Attr *a, const char *type, PRBool use_loc { a->a_type = attr_syntax_normalize_no_lookup( type ); /* - * no syntax for this type... return DirectoryString + * no syntax for this type... return Octet String * syntax. we accomplish this by looking up a well known * attribute type that has that syntax. */ asi = attr_syntax_get_by_name_locking_optional( - ATTR_WITH_DIRSTRING_SYNTAX, use_lock); + ATTR_WITH_OCTETSTRING_SYNTAX, use_lock); } else { |