<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>password Архиви - rosen4o.net</title>
	<atom:link href="https://rosen4o.net/tag/password/feed/" rel="self" type="application/rss+xml" />
	<link>https://rosen4o.net/tag/password/</link>
	<description></description>
	<lastBuildDate>Tue, 25 Feb 2014 14:15:09 +0000</lastBuildDate>
	<language>bg-BG</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>openvpn username password auth</title>
		<link>https://rosen4o.net/2014/02/25/openvpn-username-password-auth/</link>
					<comments>https://rosen4o.net/2014/02/25/openvpn-username-password-auth/#respond</comments>
		
		<dc:creator><![CDATA[rosen4o]]></dc:creator>
		<pubDate>Tue, 25 Feb 2014 14:15:09 +0000</pubDate>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[username]]></category>
		<guid isPermaLink="false">http://rosen4o.net/?p=990</guid>

					<description><![CDATA[<p>In your config you need to add username-as-common-name auth-user-pass-verify /etc/openvpn/verify.php via-file Then create the file and paste in it #Now add this code into the file #!/usr/bin/php Don&#8217;t forget to add users 😉 echo &#8222;myfirstuser:password123&#8220; > /etc/openvpn/users</p>
<p>Материалът <a href="https://rosen4o.net/2014/02/25/openvpn-username-password-auth/">openvpn username password auth</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>In your config you need to add</p>
<blockquote><p>
username-as-common-name<br />
auth-user-pass-verify /etc/openvpn/verify.php via-file
</p></blockquote>
<p>Then create the file and paste in it</p>
<blockquote><p>
#Now add this code into the file<br />
#!/usr/bin/php<br />
<?
$userArray = file('/etc/openvpn/users');
$tmpFile = file($argv[1]);
#userArray should be in the form of
#username:password
foreach ($userArray as $line) {
        $newArray = preg_split("/[:]+/", $line);
        if(trim($newArray[0]) == trim($tmpFile[0]) AND trim($newArray[1]) == trim($tmpFile[1]))
                exit(0); #Found a match
}
exit(1); #No match
?>
</p></blockquote>
<p>Don&#8217;t forget to add users 😉</p>
<blockquote><p>
echo &#8222;myfirstuser:password123&#8220; > /etc/openvpn/users</p></blockquote>
<p>Материалът <a href="https://rosen4o.net/2014/02/25/openvpn-username-password-auth/">openvpn username password auth</a> е публикуван за пръв път на <a href="https://rosen4o.net">rosen4o.net</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://rosen4o.net/2014/02/25/openvpn-username-password-auth/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
