1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
Dismiss Notice

Welcome To SNBForums

SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.

If you'd like to post a question, simply register and have at it!

While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!

[TUTORIAL] OpenVPN Connection/Disconnection Email Notifications

Discussion in 'Asuswrt-Merlin' started by Boy1979, Nov 19, 2014.

  1. Martineau

    Martineau Part of the Furniture

    Joined:
    Jul 8, 2012
    Messages:
    3,392
    Location:
    UK
    Try adding
    Code:
    username-as-common-name
    in the 'Custom Configuration' GUI, or change the script references
    Code:
    $common_name
    
    to
    
    $username
     
    JoGi likes this.
  2. elorimer

    elorimer Very Senior Member

    Joined:
    Dec 16, 2013
    Messages:
    1,200
    If you are using username/password authentication try adding in the Custom Configuration box:
    Code:
    --username-as-common-name
    I'm not sure that will change what is logged, but then after authentication I think the username is substituted in the environment variables.

    EDIT: @Martineau beat me to it with a better answer.
     
    JoGi likes this.
  3. JoGi

    JoGi Occasional Visitor

    Joined:
    Dec 6, 2014
    Messages:
    16
    Location:
    The Netherlands
    Thx @elorimer & @Martineau for the quick reply & solution.

    i just change the code to:

    Name:</b> $username<br><br>")

    and now its working great :)