This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
username=username | |
password=password | |
baseurl=https://localhost:8443 | |
site=default | |
cookie=/tmp/unifi_cookie | |
mac=aa:bb:cc:dd:ee:ff | |
curl_cmd="curl --tlsv1 --silent --cookie ${cookie} --cookie-jar ${cookie} --insecure " |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Example to bulk add RADIUS users to UniFi from csv in /tmp/users | |
# format of /tmp/users like: | |
# user1,password1 | |
# user2,password2 | |
# change username and password to controller admin credentials, and baseurl to actual controller URL | |
username=admin | |
password=password |