Express (Distributed operating systems), v8.0 > Secure applications and their environment > Authenticate users > Select a registry or repository > Manage realms in a federated repository > Virtual member manager > Develop with virtual member manager > Integrate virtual member manager into the application > Program tasks


Create an entity type and adding an existing property to it

Use the data graph to create an entity type ExtendedLogin and add an existing property type uid to it.


Input data graph

<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:sdo="commonj.sdo"
    xmlns:wim="//www.ibm.com/websphere/wim">
<wim:Root>
<wim:schema>
<wim:entitySchema nsURI="//publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=/  ://www.yourco.com/wim/yourext" entityName="ExtendedLoginAccount"
          parentEntityName="LoginAccount">  
<wim:properties name="uid">    
<wim:metaData/>  
</wim:properties>  
<wim:entityConfiguration defaultParent="cn=users,dc=yourco,dc=com" rdnProperty="uid">    
<wim:metaData name="objectClasses">      
<wim:values>eAccount
</wim:values>    
</wim:metaData>    
<wim:metaData name="rdnAttributes">      
<wim:values>uid
</wim:values>    
</wim:metaData>  
</wim:entityConfiguration>
</wim:entitySchema>
</wim:schema>
</wim:Root>
</sdo:datagraph> 


Output data graph

<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:sdo="commonj.sdo"
    xmlns:wim="//www.ibm.com/websphere/wim">
<wim:Root>
<wim:schema>
<wim:entitySchema nsURI="//publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=/  ://www.yourco.com/wim/yourext" entityName="ExtendedLoginAccount"
          parentEntityName="LoginAccount">  
<wim:repositoryIds>LDAP1
</wim:repositoryIds>  
<wim:properties name="uid">    
<wim:metaData/>  
</wim:properties>  
<wim:entityConfiguration defaultParent="cn=users,dc=yourco,dc=com" rdnProperty="uid">    
<wim:metaData name="objectClasses">      
<wim:values>eAccount
</wim:values>    
</wim:metaData>    
<wim:metaData name="rdnAttributes">      
<wim:values>uid
</wim:values>    
</wim:metaData>  
</wim:entityConfiguration>
</wim:entitySchema>
</wim:schema>
</wim:Root>
</sdo:datagraph> 


wimxmlextension.xml file

After schema is created, the wimxmlextension.xml looks like the following snippet:
<?xml version="1.0" encoding="UTF-8"?>
<sdo:datagraph xmlns:sdo="commonj.sdo"
    xmlns:wim="//www.ibm.com/websphere/wim">
<wim:schema>
<wim:entitySchema nsURI="//publib.boulder.ibm.com/infocenter/wasinfo/v8r0/index.jsp?topic=/  ://www.yourco.com/wim/yourext" entityName="ExtendedLoginAccount"
        parentEntityName="LoginAccount">
<wim:properties name="uid"/>
</wim:entitySchema>
</wim:schema>
</sdo:datagraph> 


wimconfig.xml file

After schema is created, the following section is added to wimconfig.xml:
<config:supportedEntityTypes defaultParent="cn=users,dc=yourco,dc=com"
    name="yourext:ExtendedLoginAccount">
<config:rdnProperties>uid
</config:rdnProperties>
</config:supportedEntityTypes>

<config:ldapEntityTypes name="yourext:ExtendedLoginAccount">
<config:objectClasses>eAccount
</config:objectClasses>
</config:ldapEntityTypes> 

Parent topic: Program tasks



+

Search Tips   |   Advanced Search