On 19.09.2016 13:41, Florence Blanc-Renaud wrote:
On 09/19/2016 01:31 PM, Deepak Dimri wrote:
I want to add couple of custom attribute to IPA Host. I have already
added custom attributes and objectclass "AWSInstanceDetails" to my
schema succesfully but when i am trying to modify existing host to
include the new objectclass i am getting below error
ldap_modify: Object class violation (65)
additional info: missing attribute "sn" required by object class
my ldif file to add the newly created objectclass.
How can i extend my ipahost objectclass to include additional
attributes? i followed this document to extend ipa
now i need help with ipahost
As always any help would be much appreciated!
What is your schema definition for AWSInstanceDetails? If it requires
the "sn" attribute as a mandatory attribute (i.e in the MUST section),
then you need to define a value for sn in your ldif file. Otherwise
the schema would not be respected by your object.
If, on the contrary, you do not want the attribute to be mandatory,
you can define the AWSInstanceDetails objectclass with an optional
"sn" attribute, by putting sn in the MAY section.
Hope this helps,
Yes please use only MAY attributes otherwise you will not be able to
create new entries using IPA CLI/webUI
Manage your subscription for the Freeipa-users mailing list:
Go to http://freeipa.org for more info on the project