iulian roman via FreeIPA-users wrote:
Hello,
I would like to extend the ldap schema in order to get rid of tnsnames.ora and use ldap
for that. I try to update the schema using ipa-ldap-updater, but so far no success. Can
anybody point what would be the correct update file I should create for the schema file
bellow (this is only one of the schema files which need to be updated, but the others
would be similar) :
attributetype ( 2.16.840.1.113894.3.2.6 NAME 'orclNetServiceAlias' EQUALITY
caseIgnoreMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' SINGLE-VALUE )
objectclass ( 2.16.840.1.113894.3.2.6 NAME 'orclNetServiceAlias' SUP alias
STRUCTURAL MUST cn )
The syntax is wrong.
Both the attributetype and objectclass have the same OID. They need to
be unique (and it is not safe to just pick something).
The naming is wrong too, it should also be attributetypes and
objectclasses, and you need a colon.
And a dn.
So something like:
dn: cn=config
attributetypes: ( 2.16.840.1.113894.3.2.X NAME 'orclNetServiceAlias'
EQUALITY caseIgnoreMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.15'
SINGLE-VALUE )
objectclasses: ( 2.16.840.1.113894.3.2.Y NAME 'orclNetServiceAlias' SUP
alias STRUCTURAL MUST cn )
Then you can run:
# ipa-ldap-updater --schema-file /path/to/schema/file
rob