Is it possible to set the Admin password via a configuration script ?
The password at within a normal backup file but not an exportet config file. I had hoped for an hashed password ore something like that.
The problem is i need to configure 850 individual hAP Lite boxes with an custom config file so i have mad a script that generates each config file so that it can be loaded with Flashfig because each has different IP Addresses and WiFi Settings so cant use a normal backup file.
Everything works but it has a blank Admin password afterwords.
I have tryed to inset the command
/password new-password=12345678 new-password=12345678 old-password=
In my config file but it seems to require some password as the old password even if its a blank password or i at least have to press enter once again.
So dos sent seems to be working to put that line in a config file.
Anyone have en ide how to set the password via a configuration file, because would be a lot of extra work for me logging in en each of the 850 boxes and manual setting the password.
better just make a new user that is not admin, and then delete admin. making a new user is done with a single command, no confirmation. using a non-admin user is more secure, since one also has to guess the username
In my setup its not necessary.
Management is blocked from the LAN Site.
And on the WAN site ist only allowed from an specific Subnet on an separate VLAN.
But else its right its best to make a new admin account wit another username.
Out of interest how did you generate all the individual script files?
Iām facing something similar with a lot of haps as well. Looking into milliscript and flashfig and all the rest but I can see that you will still need create a per device script to load (for identity etc).
I have en MySQL database with all the Individual settings for each apartment, with the WAN IP, SSID and SSID Password.
Then i have a VB script reading chose information and and and passes them in to a template config and replaces {SSID} and {SSIDKEY} alt other information with the values from the Database and saves each config in a separate config..
Part of the Template Config
/system identity
set name={Apartment}
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce
country=denmark disabled=no distance=indoors frequency=auto
frequency-mode=regulatory-domain l2mtu=1600 mode=ap-bridge rx-chains=0,1
ssid={SSID} tx-chains=0,1 wireless-protocol=802.11
The reason why i have all in a database in because i have made a Web System from where its possible to change the SSID Passwords and some other settings.