Quantcast
Channel: IP АТС Asterisk
Viewing all articles
Browse latest Browse all 1135

freeswitch a1-hash and password generating

$
0
0
freeswitch a1-hash and password generating a1-hash & password for Directory in Postgresql apt-get install uuid #!/bin/bash s=$(date +%d-%m-%y_%H:%M:%S) d=pass_gen_md5-$s RES=`su -c "psql -t -d DB -c 'SELECT domain, id FROM directory';" USER` printf "$RES">> $d echo "">> $d while IFS="|" read domain id; do trdom=`echo "$domain" | tr -d [:blank:]` trid=`echo "$id" | tr -d [:blank:]` pswd=`uuid | tr -d [:blank:]-` hash=`echo "$trid:$trdom:$pswd" | md5sum | tr -d [:blank:]-` #su -c…

Viewing all articles
Browse latest Browse all 1135

Trending Articles