[Date Prev][Date Next] [Chronological] [Thread] [Top]

Custom ldapSyntax

I use OpenLDAP 2.4.19 and I try to build 
an own gender attribute.

I need a custom syntax for the value,
"M" or "W".

I cannot find a description for ldapsyntax,
I only find an example and I try this:

attributetype (
        NAME ( 'gender' 'sex' )
        DESC 'Gender: M for male, F for female'

ldapsyntax (
        NAME 'GenderType'
        DESC 'Case Insensitive Gender Type'
        X-VALIDATE-RE '^(?i)M|W|m|w$' )

but I think X-VALIDATE-RE is an extension for another 
LDAP-Server not for OpenLDAP because it does not work:

[LDAP: error code 21 -
 gender: no validator for syntax]

How can I create my own custom syntax?

Thanks for any hints.

  Peter SchÃtt