Welcome, Guest
Username Password: Remember me

Write a script to find all users who have not set
(1 viewing) (1) Guest
Perforce
  • Page:
  • 1

TOPIC: Write a script to find all users who have not set

Write a script to find all users who have not set 2 years, 7 months ago #33

  • rajeshatbuzz
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
  • Points: 243
  • Karma: 0
#!/usr/bin/ruby
require "P4"
p4 = P4.new
p4.parse_forms
p4.connect
p4.run_users.each do
|u|
user = p4.fetch_user( u[ "User" ] )
puts( user[ "User" ] ) unless user.has_key?( "Password" )
end

Re: Write a script to find all users who have not set 1 year, 4 months ago #475

  • rajeshkumar
  • OFFLINE
  • Moderator
  • I love software configuration management
  • Posts: 370
  • Points: 44560
  • Karma: 4
  • Honor Medal 2009
Above program is useful when you have p4 security level set to 0.

However, 0 is not recommend practice and you can increase the p4 server authentication process by setting up following command..

p4 counter -f security 1 or 2 or 3

for more info...refer p4 counter and seclevel in manuals
Regards,
Rajesh Kumar
Build and Release Engineer
My Blog: community.scmgalaxy.com/pg/profile/rajeshkumar
  • Page:
  • 1
Time to create page: 0.65 seconds

     
    
Home Forum