Jump to content

login fails using P4PASSWD env variable

  • Please log in to reply
2 replies to this topic

#1 adams_s



  • Members
  • Pip
  • 3 posts

Posted 02 January 2020 - 09:26 AM

I am unable to get Perforce login to work with password set as an env variable.

I'm able to login normally from the command line using "P4 login" - I get prompted for a password, and this is accepted by our server.

Based on the the instructions listed in https://community.pe.../s/article/3413 ...
- I've generated the capitalzied MD5 hash of my password.
- echo %P4PASSWD% returns the hash, so this is properly set
- echo %P4USER% returns my user name, so this is also properly set

"p4 login - s" returns "Perforce password (P4PASSWD) invalid or unset."

Am I missing something?

#2 Sambwise


    Advanced Member

  • Members
  • PipPipPip
  • 994 posts

Posted 07 January 2020 - 03:49 PM

Authenticating via P4PASSWD is less secure than using a login ticket, so your server's security setting might not allow it.  What's the "security" counter set to?

#3 Matt Janulewicz

Matt Janulewicz

    Advanced Member

  • Members
  • PipPipPip
  • 204 posts
  • LocationSan Francisco, CA

Posted 09 January 2020 - 11:30 AM

Also worth noting that if you are using LDAP authentication, 'security = 3' is the default/required, but I'm not sure it actually sets it.
-Matt Janulewicz
Staff SCM Engineer, Perforce Administrator
Dolby Laboratories, Inc.
1275 Market St.
San Francisco, CA 94103, USA

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users