VIP Authentication - SMTP issue when smtpAuthEnabled set to false
search cancel

VIP Authentication - SMTP issue when smtpAuthEnabled set to false

book

Article ID: 368305

calendar_today

Updated On:

Products

VIP Authentication Hub

Issue/Introduction

After updating the SMTP provider details using POSTMAN as listed below, 

PATCH: https://{{sspMgmtHost}}/system/admin/v1/MessageProviders/smtp

[
{
"name": "smtpFromAddress",
"value": "[email protected]"
},
{
"name": "smtpPortNumber",
"value": "25"
},
{
"name": "smtpServerHostName",
"value": "smtprelay.com"
}
]

 

The email notification stopped working with the following errors 

 msg: Unable to send notifications: SMTP Provider Properties not set properlythread: authhub_thread_executor1
   throwable: com.broadcom.layer7authentication.mds.service.common.MdsException: SMTP Provider Properties not set properly. at com.broadcom.layer7authentication.mds.service.util.ExceptionUtil.getBadRequestException(ExceptionUtil.java:19) at com.broadcom.layer7authentication.mds.service.providers.email.SMTPEmailService.initialize(SMTPEmailService.java:114) at com.broadcom.layer7authentication.mds.service.providers.email.SMTPEmailService.init(SMTPEmailService.java:58) at com.broadcom.layer7authentication.mds.service.impl.MessageDeliveryHandler.getOrCreateNotificationService(MessageDeliveryHandler.java:170) at com.broadcom.layer7authentication.mds.service.impl.MessageDeliveryHandler.getNotificationService(MessageDeliveryHandler.java:157)

msg: SMTP Email Service initialization failed.

msg: SMTP user password is not supplied. Hint: Property 'smtpUserPassword'

msg: SMTP user name is not supplied. Hint: Property 'smtpUserName'

 

Does AuthHub requires the usage of name and password in the SMTP Service ? 

Environment

VIP Authentication Hub 3.1

Resolution

Currently in VIP Authentication Hub product when smtpAuthEnabled is set to 'false' , It still requires the smtpUserName and smtpUserPassword values, it need not be the correct values but any can be populated with any dummy values. Here is an example of the patch API call. There is a backlog item in the product to not require to pass the smtpUserName and smtpUserPassword when smtpAuthEnabled is set to 'false' and it will be part of some future release.