VMware Cloud Community
darrenoid
Enthusiast
Enthusiast
Jump to solution

How to remove AD Plugin Password from email notifications

Hello,

With our latest deployment of vRA 7.0.1 we are now receiving email notifications that contain the AD plugin password in plain text. These email notifications look a lot different than what we had for vra 6.X. According to the documentation, we should be able to change this in the template files on the IaaS server. We looked in %systemdrive%\Program Files(x86)\VMware\vCAC\Server\Templates at the LeaseAboutToExpire.xslt and ManagerLeaseAboutToExpire.xslt. These templates do not seem to match the information we are seeing in the emails.

For example, the email subject and footer contents do not match anything in the template file:

leaseexpire.jpg

The footer has a link like:

"Click here to view the Deployment details"

Whereas the template file has different text, which does not mention the word "Deployment" anywhere. For example:

<?xml version="1.0" encoding="UTF-8" ?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:output omit-xml-declaration="yes"/>

  <xsl:template match="/">

   

    <xsl:choose>

      <xsl:when test="string(//VirtualMachineEx/IsMasterMachine)=string(true())">

Lease for <xsl:value-of select="//ContainerName"/><xsl:text> </xsl:text> <xsl:value-of select="//VirtualMachineEx/Name"/>

    <xsl:for-each select="//VirtualMachineEx/Properties/NameValue">

    <xsl:if test="starts-with(Name, 'VirtualMachine.Admin.NameCompletion')">

      [<xsl:value-of select="//VirtualMachineEx/Name"/>.<xsl:value-of select="Value"/>]

    </xsl:if>

  </xsl:for-each> will expire on <xsl:value-of select="substring-before(//VirtualMachineEx/Expires, 'T')"/>. List of components: <xsl:value-of select="//MultiMachineServiceComponents"/>.

      </xsl:when>

      <xsl:otherwise>

Lease for machine <xsl:value-of select="//VirtualMachineEx/Name"/>

        <xsl:for-each select="//VirtualMachineEx/Properties/NameValue">

          <xsl:if test="starts-with(Name, 'VirtualMachine.Admin.NameCompletion')">

            [<xsl:value-of select="//VirtualMachineEx/Name"/>.<xsl:value-of select="Value"/>]

          </xsl:if>

        </xsl:for-each> will expire on <xsl:value-of select="substring-before(//VirtualMachineEx/Expires, 'T')"/>.

      </xsl:otherwise>

    </xsl:choose>

  </xsl:template>

</xsl:stylesheet>

We are having a hard time understanding the template and how it works. I see different text in there like "Lease for" and "will expire on", that I do not see anywhere in the actual email.

Does anyone know how to go about removing the ad plugin password from the email notifications or customize the exact fields that show up in the email?

Thanks,

Darrenoid

Reply
0 Kudos
1 Solution

Accepted Solutions
darrenoid
Enthusiast
Enthusiast
Jump to solution

I figured this out. We were applying the AD plugin properties to the deployment and not he machine component. When doing it this way the Ad plugin password is shown in plain text on the properties tab of the deployment details and is also included in the email notifications. We moved the AD plugin properties to the machine component to resolve this issue.

Darrenoid

View solution in original post

Reply
0 Kudos
1 Reply
darrenoid
Enthusiast
Enthusiast
Jump to solution

I figured this out. We were applying the AD plugin properties to the deployment and not he machine component. When doing it this way the Ad plugin password is shown in plain text on the properties tab of the deployment details and is also included in the email notifications. We moved the AD plugin properties to the machine component to resolve this issue.

Darrenoid

Reply
0 Kudos