[p4] p4 login does not generate a p4 set P4PASSWD?
robert at vaccaperna.co.uk
Thu Jan 17 06:39:22 PST 2008
P4 login generates a ticket:
If your server security level is such that you can still login with a
password and not just a ticket, then you can set the variable yourself.
IF you have Perl installed, then this one liner should do the trick to show
MD5 of the password "SomePassword"
C:\>perl -MDigest::MD5=md5_hex -e"print uc(md5_hex(@ARGV))" SomePassword
Then set the env variable to the result
p4 set p4passwd=FE51F4E356538AE4856DD8051AB4DCFF
Check it is set:
Finally test to see all is OK:
C:\>p4 login -s
User robertcowham was authenticated by password not ticket.
> -----Original Message-----
> From: perforce-user-bounces at perforce.com
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Ling Lo
> Sent: 17 January 2008 13:40
> To: Perforce Users Group
> Subject: [p4] p4 login does not generate a p4 set P4PASSWD?
> I've got an issue with a script which requires P4PASSWD to be
> set otherwise it thinks the user is not logged in. This
> appeared to have cropped up with our upgrade to 2007.2. On
> my local machine, if I do
> "p4 login", then "p4 set", I see an entry for P4PASSWD=<some long
> hash>. This is the behaviour I want.
> On a few developer machines, I've tried p4
> logout/login/passwd and there is no P4PASSWD set. Am I
> missing something basic here? What are the conditions
> required for p4 to create a P4 PASSWD entry?
> perforce-user mailing list - perforce-user at perforce.com
More information about the perforce-user