useradd.sh added, and temporarily adding abc_users.txt to put on ABC servers
parent
f4b9d3e1b9
commit
9713c09f9f
@ -0,0 +1,69 @@
|
|||||||
|
Aderbal.Ramos@abctech.com Aderbal Ramos
|
||||||
|
Alan.Wei@abctech.com Alan Wei
|
||||||
|
Almas.Akram@abctech.com Almas Akram
|
||||||
|
Alwin.DaniSam@abctech.com Alwin Dani Sam
|
||||||
|
Amelia.Beaulieu@abctech.com Amelia Beaulieu
|
||||||
|
Artemio.Villarreal@abctech.com Artemio Villarreal
|
||||||
|
Atif.Rizvi@abctech.com Atif Rizvi
|
||||||
|
Beno.Jacob@abctech.com Beno Jacob
|
||||||
|
Brandon.Strzyzewski@abctech.com Brandon Strzyzewski
|
||||||
|
Cassy.Portman@abctech.com Cassy Portman
|
||||||
|
Cesar.Alpizar@abctech.com Cesar Alpizar
|
||||||
|
Chris.Braznick@abctech.com Chris Braznick
|
||||||
|
Colton.Rhodes@abctech.com Colton Rhodes
|
||||||
|
Cory.Fields@abctech.com Cory Fields
|
||||||
|
Daniela.Perdomo@abctech.com Daniela Perdomo
|
||||||
|
Daniel.Barreto@abctech.com Daniel Barreto
|
||||||
|
David.Messina@abctech.com David Messina
|
||||||
|
Davinder.Singh@abctech.com Davinder Singh
|
||||||
|
Dev.Patel@abctech.com Dev Patel
|
||||||
|
Erick.Gonzalez@abctech.com Erick Gonzalez
|
||||||
|
Florian.Schuerrle@abctech.com Florian Schürrle
|
||||||
|
Frederic.Devaux@abctech.com Frederic Devaux [Contractor]
|
||||||
|
Gilberto.Miranda@abctech.com Gilberto Miranda
|
||||||
|
heather.wright@abctech.com Heather Wright
|
||||||
|
Hussein.Moctezuma@abctech.com Hussein Oriza Moctezuma
|
||||||
|
Ifarajimi.Kalesanwo@abctech.com Ifarajimi Kalesanwo
|
||||||
|
Isaac.Perez@abctech.com Isaac Perez
|
||||||
|
Jake.Reid@abctech.com Jake Reid
|
||||||
|
Jamie.Mennie@abctech.com Jamie Mennie [Contractor]
|
||||||
|
Jason.Bennett@abctech.com Jason Bennett
|
||||||
|
jason.frazer@abctech.com Jason Frazer
|
||||||
|
Jeffrey.Hendery@abctech.com Jeffrey Hendery
|
||||||
|
Jeremy.Hammock@abctech.com Jeremy Hammock
|
||||||
|
Jeremy.Styles@abctech.com Jeremy Styles
|
||||||
|
Jonathan.Pfaff@abctech.com Jonathan Pfaff
|
||||||
|
josh.heath@abctech.com Josh Heath
|
||||||
|
Julie.Peters@abctech.com Julie Peters
|
||||||
|
Kanishka.Karimi@abctech.com Kanishka Karimi
|
||||||
|
Keegan.Roberts@abctech.com Keegan Roberts
|
||||||
|
Keith.Swafford@abctech.com Keith Swafford
|
||||||
|
Kevin.Rosairo@abctech.com Kevin Rosairo
|
||||||
|
Kirk.Hansen@abctech.com Kirk Hansen
|
||||||
|
Kostiantyn.Savochkin@abctech.com Kostiantyn Savochkin
|
||||||
|
Kyle.Newton@abctech.com Kyle Newton
|
||||||
|
Liliana.Fernandez@abctech.com Liliana Fernandez
|
||||||
|
Mario.Bento@abctech.com Mario Bento
|
||||||
|
Mario.Schoenberg@abctech.com Mario Schoenberg
|
||||||
|
Mark.Zonavetch@abctech.com Mark Zonavetch
|
||||||
|
Matt.Schmidt@abctech.com Matt Schmidt
|
||||||
|
Meegan.Howard@abctech.com Meegan Howard
|
||||||
|
Michael.Long@abctech.com Michael Long
|
||||||
|
Mike.McMillen@abctech.com Mike McMillen
|
||||||
|
Mina.Girges@abctech.com Mina Girges
|
||||||
|
Nelson.Lim@abctech.com Nelson Lim
|
||||||
|
Phillip.Soetebier@abctech.com Phillip Soetebier
|
||||||
|
Phil.Tucker@abctech.com Phil Tucker
|
||||||
|
Ping.Yong@abctech.com Ping Yong
|
||||||
|
Redi.Muca@abctech.com Redi Muca
|
||||||
|
Rey.Pineiro@abctech.com Rey Pineiro
|
||||||
|
Rick.Muniz@abctech.com Rick Muniz
|
||||||
|
Robert.Kidd@abctech.com Robert Kidd
|
||||||
|
Rob.Stark@abctech.com Rob Stark
|
||||||
|
Sameed.Siddique@abctech.com Sameed Siddique [Contractor]
|
||||||
|
Sanel.Badic@abctech.com Sanel Badic
|
||||||
|
Scott.Corneil@abctech.com Scott Corneil
|
||||||
|
Sergio.SanQuirico@abctech.com Sergio San Quirico
|
||||||
|
Smit.Patel@abctech.com Smit Patel [Contractor]
|
||||||
|
Wahba.Hanna@abctech.com Wahba Hanna
|
||||||
|
William.Bennett@abctech.com William Bennett
|
||||||
@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
key="9RTG9Aq2NTfefE3XeAiDUbacmNvOJPWfRV3Vbs5DS8ZCCAr6XrIUDLqZeBCceQUo"
|
||||||
|
host="http://192.168.1.15"
|
||||||
|
|
||||||
|
declare -A myOpts
|
||||||
|
|
||||||
|
user=""
|
||||||
|
pass=""
|
||||||
|
name=""
|
||||||
|
email=""
|
||||||
|
go=""
|
||||||
|
opts=""
|
||||||
|
|
||||||
|
while [ -n "$1" ]; do
|
||||||
|
case "$1" in
|
||||||
|
--user) user="$2"; shift 2;;
|
||||||
|
--pass) pass="$2"; shift 2;;
|
||||||
|
--name) name="$2"; shift 2;;
|
||||||
|
--email) email="$2"; shift 2;;
|
||||||
|
--go) go="true"; shift 1;;
|
||||||
|
*) shift 1;;
|
||||||
|
esac
|
||||||
|
done
|
||||||
|
|
||||||
|
if [ -z "$user" -o -z "$pass" -o -z "$name" -o -z "$email" ]; then
|
||||||
|
echo "Must specify all of --user --pass --email and --name"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
opts+="&force_pw_change=0"
|
||||||
|
opts+="&email_info=0"
|
||||||
|
opts+="&monitoring_contact=1"
|
||||||
|
opts+="&enable_notifications=1"
|
||||||
|
opts+="&auth_level=user"
|
||||||
|
opts+="&can_see_all_hs=1" # Default is 0
|
||||||
|
opts+="&can_control_all_hs=0"
|
||||||
|
opts+="&can_reconfigure_hs=0"
|
||||||
|
opts+="&can_control_engine=0"
|
||||||
|
opts+="&can_use_advanced=0"
|
||||||
|
opts+="&read_only=1" # Default is 0
|
||||||
|
opts+="&auth_type=local"
|
||||||
|
|
||||||
|
name=$(echo "$name" | sed -e "s/ /%20/g")
|
||||||
|
echo curl -XPOST "\"${host}/nagiosxi/api/v1/system/user?apikey=${key}&pretty=1\"" \
|
||||||
|
-d "\"username=${user}&password=${pass}&name=${name}&email=${email}${opts}\""
|
||||||
|
[ -n "$go" ] && curl -XPOST "${host}/nagiosxi/api/v1/system/user?apikey=${key}&pretty=1" \
|
||||||
|
-d "username=${user}&password=${pass}&name=${name}&email=${email}${opts}"
|
||||||
Loading…
Reference in New Issue