[Date Prev][Date Next]
Re: Inconsistent duplicate attributeType
> line 16: Inconsistent duplicate attributeType: "gidNumber"
> my full schema:
> attributetype ( 22.214.171.124.4.1.7006.1.2.1.4 NAME 'gidNumber'
Because gidNumber is multiply defined. You can use grep or a similar tool
to find it in nis.schema as ships with OpenLDAP:
#attributetype ( 126.96.36.199.188.8.131.52 NAME 'uidNumber'
# DESC 'An integer uniquely identifying a user in an administrative domain'
# EQUALITY integerMatch
# SYNTAX 184.108.40.206.4.1.14220.127.116.11.27 SINGLE-VALUE )
Now, this might be a bit deceptive because it appears to be commented out.
However the leading "# builtin" is key. This is a clue that you can find
the definition in the source file servers/slapd/schema_prep.c. Sure
enough, you will find uidNumber there, so you may not redefine it. I'd
suggest either (a) finding a unique namespace for your application or (b)
considering if the standards-compliant definition of 'uidNumber' is
suitable for your application.
You can debug config processing, including schema, with "slaptest -d
config". Unfortunately this will not show you the built-ins from
schema_prep.c, but those are easy enough to find once you know where to