[p4] scripting with ticket-based authentication?

steve at vance.com steve at vance.com
Fri Oct 7 04:46:35 PDT 2005

But you can set it to 999999999 in 2004.2, which for all practical purposes
is forever.


Original Message:
From: Johan Nilsson johan.nilsson at esrange.ssc.se
Date: 	Fri, 7 Oct 2005 08:45:17 +0200
To: jgrills at junctionpoint.com, John.Davis at sophos.com,
perforce-user at perforce.com
Subject: RE: [p4] scripting with ticket-based authentication?


> -----Original Message-----
> From: perforce-user-bounces at perforce.com 
> [mailto:perforce-user-bounces at perforce.com] On Behalf Of Jeff Grills
> Sent: den 6 oktober 2005 21:27
> To: John.Davis at sophos.com; perforce-user at perforce.com
> Cc: Amanda.Culver at sophos.com
> Subject: RE: [p4] scripting with ticket-based authentication?
> I've been in this exact situation before.  Perforce ticket 
> expiration times are based on groups, and users in multiple 
> groups get the longest timeout of any of the groups.  You can 
> also set the timeout for a group to be 0, indicating that the 
> ticket never expires.  We dedicated a perforce license for 
> the automated scripts (you should be able to get a free 
> license for an automated user from perforce - just ask!).  We 
> then put that automated user in a group consisting of only 
> themselves and gave that group a ticket timeout of 0.  Then 
> we just simply issued a single "p4 login" on the automated 
> machine to get a ticket that will never expire.  After that, 
> the password for the automated user is no longer needed for 
> anything.  The automated scripts never have to deal with 
> embedded passwords or anything else - the ticket always works.

FWIW I've also done exactly the same thing and so far it works just
fine. I've also made sure that this user can only access the depots from
the local machine using 'p4 protect'.

Just as a side note, setting the timeout field to '0' for a group
requires 2005.1, IIRC.

// Johan

perforce-user mailing list  -  perforce-user at perforce.com

mail2web - Check your email from the web at
http://mail2web.com/ .

More information about the perforce-user mailing list