Hello Sesha,
before modifying the Userstore.xml file, you need to make sure that the CA Directory shipped with the vApp contains the additional fields for the Organization class.
To do this, check the following content:
Q: Does the vApp supports custom user schema?
The vApp comes with 2 schema files (under ~dsa/config/schema/):
1. IDM main Schema file - im_user.dxc
This file contains all required basic IDM attributes as well as 150 custom attributes which you are free to
use:
• Standard attributes: imString00 - imString149
• Case-sensitive attributes: imStringCaseExact00 - imStringCaseExact09
2. Custom schema file - im_user_aux.dxc
This is an empty schema file which you may use for any custom attributes for which the 150 attributes
defined in im_user.dxc are insufficient or inappropriate.
The following im_user_aux.dxc looks contains the custom attribute PSCodiceHost and the definition of the PSOrganization class:
schema set attribute im-UUA-attr:16 = {
name = PSCodiceHost
ldap-names = PSCodiceHost
equality = caseIgnoreMatch
syntax = directoryString
single-valued
};
#
# Object Classes PSOrganization
#
schema set object-class im-UUA-oc:1 = {
name = PSOrganization
ldap-names = PSOrganization
subclass-of organizationalUnit
kind = auxiliary
may-contain
PSAbi,
PSCab,
PSTipoDipLdap,
PSEmailFiliale,
PSDescrizioneFirma,
PSOrigineDato,
PSFaxServer,
PSCodicePadre,
PSDescrizionePadre,
PSResponsabile,
PSDipendenzaContabile,
PSadoudn,
PSStrutturaGerarchica,
PSDescrizione,
PSStrutturaFigli,
PSCodiceHost
};
In your Userstore.xml file, you need to add the PSOrganization object class in the "Organization" section:
<ImsManagedObject name="Organization" description="My Organizations" objectclass="top,organizationalUnit,PSOrganization" pagesize="0" maxrows="0" objecttype="ORG">
<ImsManagedObjectAttr physicalname="ou" description="Organization Name" displayname="Organization Name" valuetype="String" required="true" wellknown="%ORG_NAME%" maxlength="0" permission="WRITEONCE"/>
<ImsManagedObjectAttr physicalname="%ORG_MEMBERSHIP%" description="Parent Organization DN" displayname="Parent Organization" valuetype="String" required="true" wellknown="%ORG_MEMBERSHIP%" maxlength="0"/>
<ImsManagedObjectAttr physicalname="PSCodiceHost" description="Codice Host" displayname="Codice Host" valuetype="String" maxlength="0"/>
and then define the custom attributes, like the PSCodiceHost.
Hope this helps,
Alessandro