<?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>not set Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/not-set/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/not-set/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:56:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>A script to find all users who have not set passwords</title>
		<link>https://www.scmgalaxy.com/tutorials/a-script-to-find-all-users-who-have-not-set-passwords/</link>
					<comments>https://www.scmgalaxy.com/tutorials/a-script-to-find-all-users-who-have-not-set-passwords/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Mon, 24 Nov 2008 11:21:44 +0000</pubDate>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[not set]]></category>
		<category><![CDATA[Passwords]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[script to find all users]]></category>
		<category><![CDATA[Users]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2008/11/24/a-script-to-find-all-users-who-have-not-set-passwords/</guid>

					<description><![CDATA[<p>Write a script to find all users who have not set passwords. #!/usr/bin/ruby require &#8220;P4&#8221; p4 = P4.new p4.parse_forms p4.connect [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/a-script-to-find-all-users-who-have-not-set-passwords/">A script to find all users who have not set passwords</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="size-full wp-image-3611 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/script-to-find-all-users-wh.png" alt="a-script-to-find-all-users-who-have-not-set-passwords" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/script-to-find-all-users-wh.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2008/11/script-to-find-all-users-wh-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p><strong>Write a script to find all users who have not set passwords.</strong></p>
<p><span style="color: #800000;">#!/usr/bin/ruby<br />
require &#8220;P4&#8221;<br />
p4 = P4.new<br />
p4.parse_forms<br />
p4.connect<br />
p4.run_users.each do<br />
|u|<br />
user = p4.fetch_user( u[ &#8220;User&#8221; ] )<br />
puts( user[ &#8220;User&#8221; ] ) unless user.has_key?( &#8220;Password&#8221; )<br />
end<br />
#!/</span></p>
<p><strong>OR</strong></p>
<p><span style="color: #800000;">#!/usr/bin/perl<br />
use P4;<br />
my $p4 = new P4;<br />
$p4-&gt;ParseForms();<br />
$p4-&gt;Init() or die( &#8220;Can&#8217;t connect to Perforce&#8221; );<br />
foreach my $u ( $p4-&gt;Users() )<br />
{<br />
my $user = $p4-&gt;FetchUser( $u-&gt;{ &#8220;User&#8221; } );<br />
print( $user-&gt;{ &#8220;User&#8221; }, &#8220;\n&#8221; ) unless defined ( $user-&gt;{ &#8220;Password&#8221; }<br />
);<br />
}</span></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/a-script-to-find-all-users-who-have-not-set-passwords/">A script to find all users who have not set passwords</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/a-script-to-find-all-users-who-have-not-set-passwords/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
