---

** [tickets:#2270] imm: Missing check for SaString attributes with ATTR_DN 
flag**

**Status:** accepted
**Milestone:** 5.0.2
**Created:** Wed Jan 18, 2017 11:03 AM UTC by Hung Nguyen
**Last Updated:** Wed Jan 18, 2017 11:03 AM UTC
**Owner:** Hung Nguyen


A combination of SA_IMM_ATTR_SASTRINGT and SA_IMM_ATTR_DN should be treated as 
SA_IMM_ATTR_SANAMET.
Some places in IMM code miss the check for SaStringT

Example:
~~~
ImmModel::rtObjectCreate()
        } else if (attrValues->n.attrValueType == SA_IMM_ATTR_SANAMET
                && !longDnsPermitted) {
...
            if(attrValues->n.attrValue.val.x.size >= 
SA_MAX_UNEXTENDED_NAME_LENGTH) {
                LOG_NO("ERR_NAME_TOO_LONG: Attribute '%s' has long DN. "
                    "Not allowed by IMM service or extended names are disabled",
                    attrName.c_str());
                err = SA_AIS_ERR_NAME_TOO_LONG;
                goto rtObjectCreateExit;
            }
~~~



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to