Is there a way to change sponsorship text on Enterasys NAC / Mobile IAM?

  • 0
  • 2
  • Question
  • Updated 3 years ago
  • Answered
Photo of Alexandre Canalle

Alexandre Canalle

  • 100 Points 100 badge 2x thumb

Posted 5 years ago

  • 0
  • 2
Photo of Alexandre Canalle

Alexandre Canalle

  • 100 Points 100 badge 2x thumb
Hi,
I'm still waiting on this answer. Has anyone already solved this?

It is important to note that i'm referring to the text sent on e-mail body, that looks like the following:

****************************************************************************

User: FirstName LastName (LastName-FirstName-AA:AA:AA:AA:AA:AA)
Email: user@corp.com Has requested sponsorship to obtain network access.

Go to http://<<ip_nac>>/sponsor to Approve/Deny this request.

****************************************************************************

We have received an information from Support with the following instruction, but they didn't work:

----- Forwarded Message ----- 

The strings can be updated by adding the below updates to the C:\Program Files\Enterasys Networks\NetSight\appdata\NSJBoss.properties file. Once the file is edited you will need to restart the NetSight server in order for the changes to take effect. 

private static String SPONSOR_EMAIL_TEXT_NOT_SPECIFIED = System.getProperty("SPONSOR_EMAIL_TEXT_NOT_SPECIFIED", "Not Specified"); 
private static String SPONSOR_PORTAL_URL = System.getProperty("SPONSOR_PORTAL_URL", "_http://%tagip%/sponsor")
private static String SPONSOR_EMAIL_MSGBODY_DEFAULT = "User: %fullname% (%username%) \nEmail: %useremail% \nHas requested sponsorship to obtain network access. \n\n" + "Go to " + SPONSOR_PORTAL_URL + " to Approve/Deny this request."; 
private static String SPONSOR_EMAIL_SUBJECT = System.getProperty("SPONSOR_EMAIL_SUBJECT", "Sponsorship Request"); 
private static String SPONSOR_EMAIL_MSGBODY = System.getProperty("SPONSOR_EMAIL_MSGBODY", SPONSOR_EMAIL_MSGBODY_DEFAULT); 
private static String SPONSOR_EMAIL_SENTFROM = System.getProperty("SPONSOR_EMAIL_SENTFROM", "NAC - Automated Email"); 

These are the variables you will most likely want to update: 
SPONSOR_EMAIL_MSGBODY=User: %fullname% (%username%) \nEmail: %useremail% \nHas requested sponsorship to obtain network access. \n\nGo to _http://%tagip%/sponsor to Approve/Deny this request. 
SPONSOR_EMAIL_SUBJECT 
SPONSOR_EMAIL_SENTFROM 

----- END of Forwarded Message ----- 


Does anybody has any hint on  how to do it?
(Edited)
Photo of Yacobucci, Ryan

Yacobucci, Ryan, Multi-Tier Technical Support Engineer

  • 5,734 Points 5k badge 2x thumb
Hello,

The information provided includes the underlying code that shows you what variables can be modified.

We have updated our information to make it a little more clear. Please consider the following:

Here are the fields that can be customized/overridden for sponsorship email in the nsjboss.properties file on the NetSight Server.

SPONSOR_EMAIL_MSGBODY= User: %fullname% (%username%) \nEmail: %useremail% \nHas requested sponsorship to obtain network access. \n\n" + "Go to " + SPONSOR_PORTAL_URL + " to Approve/Deny this request.

SPONSOR_EMAIL_SUBJECT= Sponsorship Request

SPONSOR_EMAIL_SENTFROM=NAC - Automated Email

SPONSOR_PORTAL_URL=_http://%tagip%/sponsor  

In the <install directory>/NetSight/appdata/nsjboss.properties files include which variables you would like to modify. So your file would look something like this:


log4j.configuration=file\:./log4j.properties

enterasys.mysqlrealm.rpt.password=

java.security.manager=

enterasys.embeddednac.enable=false

enterasys.datasource.connectionurl=jdbc\:mysql\://127.0.0.1\:4589/netsight?jdbcCompliantTruncation\=false&amp;useUnicode\=true&amp;characterEncoding\=UTF-8

enterasys.mysqlrealm.rpt.username=netsight

username=root

oneView.responsetime.app.redline=1000

java.security.policy=../server/default/conf/server.policy

dashboard.cache.time=2

enterasys.tomcat.ciphers=

enterasys.webservices.queryendsystems=true

oneView.responsetime.tcp.redline=1000

enterasys.mysqlrealm.password=

nmsMobile.demoMode=false

enterasys.mysqlrealm.username=netsight

USE_NETSNMP=true

enterasys.tomcat.https.port=8443

enterasys.tomcat.http.port=8080

enterasys.jboss.log4j.logfile=../../appdata/logs/server.log

enterasys.datasource.rpt.connectionurl=jdbc\:mysql\://127.0.0.1\:4589/netsightrpt?jdbcCompliantTruncation\=false&amp;useUnicode\=true&amp;characterEncoding\=UTF-8

domain=

SPONSOR_EMAIL_MSGBODY= User: %fullname% (%username%) \nEmail: %useremail% \nHas requested sponsorship to obtain network access. \n\n" + "Go to " + SPONSOR_PORTAL_URL + " to Approve/Deny this request.

SPONSOR_EMAIL_SUBJECT= Sponsorship Request

SPONSOR_EMAIL_SENTFROM=NAC - Automated Email

SPONSOR_PORTAL_URL=_http://%tagip%/sponsor  



Do not copy and paste the entire previous log, your nsjboss.properties file has specific information for your deployment, it is only meant as an example of how to configure the variables.


After you edit the file a restart of the netsight services will be required.


Let me know if this helps.


Thanks

-Ryan

Photo of Alexandre Canalle

Alexandre Canalle

  • 100 Points 100 badge 2x thumb
Yes,

It solved my issue and now I can write anything I want to send to the sponsor. 

Now when I have an accent in a word in the mail body, like "ç", "à", "õ" it appears with strange caracters like "ç". I have tried to change those ASCII caracters by its respective HTML Number and after that for HTML Name, with no sucess at all.

Is there any way to surpass this issue?
Photo of Yacobucci, Ryan

Yacobucci, Ryan, Multi-Tier Technical Support Engineer

  • 5,734 Points 5k badge 2x thumb
Hello,

The issue you're running into may be related to the email services you're using not supporting the character set.

If you'd like to investigate this further I'd suggest that you create a case with GTAC that includes the email client information and attach your nsjboss.properties file and version/build of NetSight and NAC.

Thanks
-Ryan
Photo of Raul Carbonari

Raul Carbonari

  • 210 Points 100 badge 2x thumb
Alexandre, parece que você está tratando de escrever protugues.
Eu não tive éxito numa resposta satisfatoria por parte do GTAC por esse mesmo problema. Até enviei um pedido para incorporar suporte de multiples idiomas e ainda estou esperando.
Infelizmente não tenho mais acesso ao equipamento que configurei mas o caminho certo é a utilização do "HTML name", lembra de colocar o ";".
A customização do NAC é feita de duas formas diferentes, em alguns casos você modifica texto HTML diretamente, em outros casos são campos de uma DB, eses campos são ao final de contas variaveis de um script, e aqui novamente há dois casos, campos que não tem variaveis de reemplazo e campos que tem variaveis de reemplazo, identificadas por %1 (ou alguma coisa similar, não lembro).
Se o campo não tem variavel de reemplazo, pode usar HTML name y ele aparece corretamente, no caso que exista uma variavel de reemplazo no campo não funciona. parece que existe uma rutina para tratar eses casos e não respeita o HTML name.
Eu tive que fazer magica para que as mensagens ficasem consistentes em toda a plataforma, mas em alguns casos não teve jeito, ficou com "erro". Graças a Deus nesse cliente não utilizaram as funcionalidade completas do produto, deixe muitos campos sem traduzir porque no eram necesarios.

Abraços
Raúl Carbonari
Thanks a lot for that nice information!

known Parameters:
%fullname%
%username%
%useremail%

Do you also know the Parameters for the additional fields?

like the following notification Parameters
$regName
$regEmail
$regData1
$regData2
$regData3
$regData4
$regData5
$regPhone