Wireless Access

last person joined: 20 hours ago 

Access network design for branch, remote, outdoor, and campus locations with HPE Aruba Networking access points and mobility controllers.
Expand all | Collapse all

Create a guest account

This thread has been viewed 6 times
  • 1.  Create a guest account

    Posted Mar 04, 2019 02:35 PM

    Hello,

    We would like to allow employees who are at the reception of the building to provide a visitor wifi to our visitors.

     

    The "Instant guest users" portal does not suit us.

     

    We would like to use a script. I saw that it was possible via SSH to use the command local-userdb but it is not available with the version we have.

     

    Aruba type 205 6.5.3.7

     

    Would you have an idea please?

     

    Thank you in advance.

    Best regards,



  • 2.  RE: Create a guest account

    Posted Mar 04, 2019 07:55 PM
    The desired requirements are too broad.
    Do you want to organize a separate web page?
    
    Alternatively, you can use clearpass.
    
    Current version configuration information is needed.


  • 3.  RE: Create a guest account

    Posted Mar 05, 2019 05:06 AM

    I will try to be more precise.

     

    When a visitor comes to the reception, an employee gives him a visitor wifi by connecting to the "Instant guest users" interface.

     

    The guest connects to the "captive portal" and inserts his username and password that has been provided.

     

    The username contains the company name and a random password.

     

    The problem is that when the employee creates the visitor account via "Instant guest users", the credentials created by the employee and the credentials provided by the employee to the visitor may be different due to an employee error. The visitor wants to log in and the username and password are not correct.

     

    When you say that we can use clearpass, I suppose you are talking about the ClearPass Guest module which will have an additional cost?

     

    Regarding an external web page, can you tell me more?

     

    Thank you in advance for your answer.



  • 4.  RE: Create a guest account

    Posted Mar 15, 2019 02:56 PM

    I found a solution that I would like to automate.

     

    I log in SSH:

    1. username

    2. password
    1. configure
    2. user add "username" "password" portal
    3. end
    4. commit apply
    5. exit

     

    Manually, the guest wifi is created.

     

    I would like to automate this task via a script using PLINK.

     

    plink username@ipaddress -pw password -m commands.txt

     

    The command works if I do not use the -m commands.txt

    When I add the commands.txt -m I have the message "Aborted".

     

    Do you have an idea?

     

    Best regards,



  • 5.  RE: Create a guest account
    Best Answer

    Posted Mar 18, 2019 01:53 PM

    Finally, to automate guest wifi creation, I connect to the controller via PLINK and send commands via AutoIT (Send)

    Regards



  • 6.  RE: Create a guest account

    Posted May 01, 2019 05:05 AM

    Hi i am also looking for such kind of solution.

    Can you share the script ?

     



  • 7.  RE: Create a guest account

    Posted May 03, 2019 12:56 PM

    Hi,

     

    Here is the script via autoit:

    #include <Constants.au3>
    
    $username = ""
    $password = ""
    
    $PPID = Run("C:\plink.exe -ssh login@ipcontroller -pw password", "", @SW_SHOW)
    Sleep(5000)
    Send("configure")
    Send("{ENTER}")
    Sleep(100)
    Send("user " & $username & " " & $password & " portal")
    Send("{ENTER}")
    Sleep(100)
    Send("end")
    Send("{ENTER}")
    Sleep(100)
    Send("commit apply")
    Send("{ENTER}")
    Sleep(5000)
    Send("exit")
    Send("{ENTER}")
    Sleep(100)
    ProcessClose($PPID)