[p4] Triggers and best practice authentication from scripts

Finn Normann Pedersen merenpha at gmail.com
Wed Nov 29 01:14:18 PST 2006


Hi,

I have an authentication trigger (auth-check) on our server up against
our active directory/LDAP server, but I am wondering how you'd best
have scripts authenticate themselves.

I am wondering if the trigger authentication works for all forms of
authentication.

p4 set p4user=myuser
p4 login      (supply mypasswd)

Works fine.

But

p4 -u myuser -P mypasswd somecommand

Does not work?

Also if the P4USER variable is set, the command "p4 login myuser"
ignores the argument "myuser".

Does anyone have any best practice on using authentication triggers?

Cheers,
  Finn



More information about the perforce-user mailing list