Jump to content

Change password using P4API.NET


  • Please log in to reply
1 reply to this topic

#1 Tetris



  • Members
  • Pip
  • 1 posts

Posted 28 June 2015 - 07:49 AM


I'm using P4API.NET and want to provide a change password dialog just like P4V.
But I couldn't use Connection.setPassword(), it said the security level of the server not allow to change password. I guess it's not allowed to use '-O' and '-P' option.

So, my questions is how to change password for a normal user against P4 server with security level 3?

#2 P4Shimada


    Advanced Member

  • Members
  • PipPipPip
  • 831 posts

Posted 14 July 2015 - 08:49 PM


Sorry to hear you are having trouble changing the password.  In order to assist you better, please let us know:

a] Which version of P4API.NET are you using? (Any of the P4API.NET dll files, if you click on their properties it will show the version. For example in Windows Explorer if you select and right click the file 'p4api.net.dll' and select 'Properties' the 'Details' tab there is info for 'Product Name' and 'Product Version'.)

b] Please send an example code snippet of what you were trying to do.

Client applications using the Perforce API's, including P4API.Net, will use valid tickets on the host the client application is run on. This means you can use the "long timeout" trick to keep users validated on machines where the client will be run.


- P4API.Net - Dealing with "P4CommandTimeOutException"

Also tagged with one or more of these keywords: P4API

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users