protected String getRealInputAttrName(String inputAttrName, String id, boolean isUser) {
        boolean isInputAttrValueDN = UniqueNameHelper.isDN(id) != null;
        boolean isInputAttrIdentifier = isIdentifierTypeProperty(inputAttrName);

        if (!isInputAttrIdentifier && isInputAttrValueDN) {
            // To suppress the below message from coming in trace.log due to defect 94474
            /*
             * if (tc.isWarningEnabled()) {
             * //Tr.warning(tc, "the propertyForInput " + inputAttrName + " doesn't match the format of input value " + id + ", switch to uniqueName");
             * Tr.warning(tc, WIMMessageKey.INVALID_PROPERTY_VALUE_FORMAT, inputAttrName);
             * }
             */
            inputAttrName = "uniqueName";
            //take it as uniqueName because we don't know if it's externalName or uniqueName value
        } else if (isInputAttrIdentifier && !isInputAttrValueDN) {
            // if dealing with LoginAccount or Group
            if (isUser) {
                // To suppress the below message from coming in trace.log due to defect 94474
                /*
                 * if (tc.isWarningEnabled()) {
                 * //Tr.warning(tc, "the propertyForInput " + inputAttrName + " doesn't match the format of input value " + id + ", switch to principalName");
                 * Tr.warning(tc, WIMMessageKey.INVALID_PROPERTY_VALUE_FORMAT, inputAttrName);
                 * }
                 */
                inputAttrName = "principalName"; // loginaccounts
            }
            //OR
            else {
                // To suppress the below message from coming in trace.log due to defect 94474
                /*
                 * if (tc.isWarningEnabled()) {
                 * //Tr.warning(tc, "the propertyForInput " + inputAttrName + " doesn't match the format of input value " + id + ", swith to cn");
                 * Tr.warning(tc, WIMMessageKey.INVALID_PROPERTY_VALUE_FORMAT, inputAttrName);
                 * }
                 */
                inputAttrName = "cn"; // groups
            }
        }
        return inputAttrName;
    }
protected String getRealInputAttrName ( String inputAttrName , String id , boolean isUser ) { boolean isInputAttrValueDN = UniqueNameHelper . isDN ( id ) != null ; boolean isInputAttrIdentifier = isIdentifierTypeProperty ( inputAttrName ) ; if ( ! isInputAttrIdentifier && isInputAttrValueDN ) { inputAttrName = "uniqueName" ; } else if ( isInputAttrIdentifier && ! isInputAttrValueDN ) { if ( isUser ) { inputAttrName = "principalName" ; } else { inputAttrName = "cn" ; } } return inputAttrName ; }
get input securityName.

@param input security attribute defined in the realm.
@param input security name value.
@param loginAccount or Group.

@return uniqueName if the property is an IdentifierType property, principalName otherwise.