Gorkhaan Sorry, we encountered an error while displaying this content. If you're a user, please try again later. If you're an administrator, take a look in your Flarum log files for more information.
eric66300 sit got a little bit confuse when can i put this code #!/bin/bash if i write it down on putty it said invalid bash or unrecognized something like that thank you
maikcat eric66300 this is script code not for use directly from command line... use vi to create a new file and paste the commands in. Michael.
eric66300 hi sorry for my noob question vpnnev=`head -n1 $1 | tail -1` # Get the First line -> Username vpnjelszo=`head -n2 $1 | tail -1 ` # Get the Second line -> Password about vpnnev and vpnjelszo is this two are the actual name on the column?
Gorkhaan vpnnev and vpnjelszo are the 2 lines of the temporaly file, what openvpn use to gives to my script, what will compare these variables within the wordpress database. (I'll update this howto a little bit later )
eric66300 Hi thank you im using ubuntu 10.10 and with installed mysql and phpmyadmin when i create user's on mysql using command line it was successful but tying to create using phpmyadmin it was failed but what weird most the one i created inside mysql is in phpmyadmin database but can't be connected on openvpn "authentication failed" how can i implement this script without wordpress?
eric66300 #!/bin/bash ### Database Informations DBUSER='user' DBPASS='pass' DBHOST='localhost' #use ip kng external ang mysql server nyo if not localhost lng DBNAME='dbase' user_name=`head -n1 $1 | tail -1` #first line -> Username pass_word=`head -n2 $1 | tail -1 ` #second line -> Password user_query=`mysql -u $DBUSER -p$DBPASS -D $DBNAME -h $DBHOST --skip-column-name -e "SELECT username FROM user WHERE ( (active = '1') AND (username = '$user_name') AND (password = PASSWORD('$pass_word')) );" $DBNAME` if [ "$user_query" == "$user_name" ]; then exit 0 else exit 1 fi does anyone know what was the problem why i can;t authenticate my self?
eric66300 ./auth_vpn.sh: line 11: unexpected EOF while looking for matching ./auth_vpn.sh: line 18: synteax error: enexpected end of file hi what does this mean?
esson is there any update about this, I want to integrate it on phpbb but looking for md5 password hash like wordpress plugin
Mimiko A good tutorial, thank you. Now, when and how remaining time a reset? Is this time per session or per month?