ext Relho de Couro ([EMAIL PROTECTED]) wrote:
> Hi,
> 
> Does anyone know how to define (in a LDAP schema) an attribute of any kind?
> I would like to create an attribute that supports any kind of symbol
> contained in a keyboard or even binary data.
> 
> Example of values for the desired attribute:
> 
> attr: { anything } + { anything};
> attr: binary data
> attr: normal text
> attr: any kind of programming source code
> 
> Is there a way to do so?

Hi,
 When you create the new attribute, just define it's syntax as

DirectoryString -> 1.3.6.1.4.1.1466.115.121.1.15

Example from OpenLDAP's core.schema:

attributetype ( 2.5.4.9 NAME ( 'street' 'streetAddress' )
    DESC 'RFC2256: street address of this object'
    EQUALITY caseIgnoreMatch
    SUBSTR caseIgnoreSubstringsMatch
    SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} )


NOTE the {128} at the end of the syntax, defining the max length of the value in
characters.

 You can put anything you want into that type. It allows matching rules of:

 - caseIgnoreMatch
 - caseIgnoreSubstringsMatch

 Note that you will need to encode binary data as base64 before adding it to
the directory.


BR,
--
mike 

Reply via email to