//Internal
public LDAPIdentityObjectImpl createIdentityObjectInstance(IdentityStoreInvocationContext ctx, IdentityObjectType type, Attributes attrs, String dn) throws IdentityException
{
LDAPIdentityObjectImpl ldapio = null;
try
{
String idAttrName = getTypeConfiguration(ctx, type).getIdAttributeName();
Attribute ida = attrs.get(idAttrName);
if (ida == null)
{
throw new IdentityException("LDAP entry doesn't contain proper attribute:" + idAttrName);
}
//make DN as user ID
ldapio = new LDAPIdentityObjectImpl(dn, ida.get().toString(), type);
}
catch (Exception e)
{
throw new IdentityException("Couldn't create LDAPIdentityObjectImpl object from ldap entry (SearchResult)", e);