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

uid not case-sensitiv / How can i modify to octetstring / in core.schema not included / Version 2.3.80 [Virus checked]


i'am new on this List.

We upgraded from openldap 2.2.30 to 2.3.80.  (Solaris 10)

Is it right, that in core.schema the entry for uid (and others) is now removed (commented) ? How can i now found this entry ? Is it hardcoded in Source ?

The Reason/Problem is,  that we have modified the core.schema (in Version 2.2.30) for entry uid, while uid is not case-sensitiv (it allows, that  uid=a4711 is the same as uid=A4711). We need strict lowercase.

So we change some times ago:

attributetype ( 0.9.2342.19200300.100.1.1
        NAME ( 'uid' 'userid' )
        DESC 'RFC1274: user identifier'
        EQUALITY caseIgnoreMatch
        SUBSTR caseIgnoreSubstringsMatch
        SYNTAX{256} )

To new

attributetype ( 0.9.2342.19200300.100.1.1
        NAME ( 'uid' 'userid' )
        DESC 'RFC1274: user identifier'
               EQUALITY octetStringMatch
               SYNTAX{128} )

OK, it was not good,  to modify the core.schema. So i have now an new local.schema. But when i copy this section to local.schema i got an error about "duplicate entry". (so i remove it, an local.schema is empty and LDAP works but with case-insensitiv for uid).

The reason was, that the uid is NOT CaseSensitiv. So with octetStringMatch the uid was case-sensitiv. And it works fine with Apache and cgi-scripts.

But now, when i upgrade to 2.3.80, first i got an Error, while we use the "old" core.schema. Then i correct this with the original core.schema and it will now work.  

But i can not found any place, how uid is defined in Version 2.3.80.

in slapd.conf we include

include                /soft/openldap/etc/openldap/schema/core.schema
include                /soft/openldap/etc/openldap/schema/cosine.schema
include                /soft/openldap/etc/openldap/schema/nis.schema
include                /soft/openldap/etc/openldap/schema/local.schema

How can i change uid ? Or how can i overwrite it ?

Many thanks