diff --git a/lib/SAML2/Utils.php b/lib/SAML2/Utils.php index 156ab941eb82f2c1dd15215ee2bd890500a6d644..7f1aaa63db51882b47adf6b01c21c3e0858d5b30 100644 --- a/lib/SAML2/Utils.php +++ b/lib/SAML2/Utils.php @@ -173,7 +173,7 @@ class SAML2_Utils { public static function addNameId(DOMElement $node, array $nameId) { assert('array_key_exists("Value", $nameId)'); - $xml = $node->ownerDocument->createElementNS(SAML2_Const::NS_SAML, 'saml_assertion:NameID'); + $xml = $node->ownerDocument->createElementNS(SAML2_Const::NS_SAML, 'saml:NameID'); $node->appendChild($xml); if (array_key_exists('NameQualifier', $nameId) && $nameId['NameQualifier'] !== NULL) {