[p4] p4 login does not generate a p4 set P4PASSWD?

Robert Cowham robert at vaccaperna.co.uk
Thu Jan 17 06:39:22 PST 2008


Hi Ling

P4 login generates a ticket:

http://www.perforce.com/perforce/doc.073/manuals/cmdref/env.P4TICKETS.html#1
040647

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.

E.g.

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[0]))" SomePassword 
FE51F4E356538AE4856DD8051AB4DCFF 

Then set the env variable to the result 

p4 set p4passwd=FE51F4E356538AE4856DD8051AB4DCFF 

Check it is set: 

C:\>p4 set 
P4PASSWD=FE...... (set) 

Finally test to see all is OK: 

C:\>p4 login -s 
User robertcowham was authenticated by password not ticket. 

Robert

> -----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?
> 
> Hello,
> 
> 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?
> 
> Thanks,
> Ling
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com 
> http://maillist.perforce.com/mailman/listinfo/perforce-user
> 
> 



More information about the perforce-user mailing list