[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: Checking whether credentials are valid?

From: Bruce J Clark <BJClark_at_metrol.co.uk>
Date: Thu, 6 Oct 2016 16:38:19 +0000

It’s only part of the answer, at best, but on a Windows system you can check when the current user’s password was last set using the following command (from a Command Prompt):
                net user %UserName% /domain | findstr "/c:Password last set"

The response will be similar to the following:
Password last set 10/02/2016 11:36:42

N.B. The format will likely be region dependant and need to be parsed to be useful. The date/time of the password change could then be compared to the date/time of the previous time the task was performed. That would allow the user to be alerted to the fact that the password has been changed since the last run.


From: Ron W [mailto:ronw.mrmx_at_gmail.com]
Sent: 06 October 2016 17:17
To: users_at_tortoisesvn.tigris.org
Subject: Re: Checking whether credentials are valid?

On Thu, Oct 6, 2016 at 3:40 AM, Niemann, Hartmut <hartmut.niemann_at_siemens.com<mailto:hartmut.niemann_at_siemens.com>> wrote:
We use the Windows domain passwort for authentication in TortoiseSVN.

One update process (for a tool directory) is run as a task (normally without user interaction) at login time,
using TSVN’s command line tools.

I would suggest that, for an automatic update, you use the command line SVN client. This will give you more control over what happens during automated operations.

This fails (i.e. it asks for a password but there is no command window and the user can not interact)
when the windows password was recently changed and has not yet been entered in TSVN.

Is there a way to check whether the password is still current, without prompting the user for a new one?
Then we could check before the update and abort cleanly.

As far as I know, no.

However, this is really a question for an expert Windows administrator. If your company's IT helpdesk is unable to help, I'd suggest asking at Stackoverflow or the Microsoft Developer Network forum (or, if there is one, Microsoft Administrators Network forum).

Bruce Clark
Senior Software Engineer

[Metrol logo]<http://www.metrol.co.uk>
Howe Moss Place, Kirkhill Industrial Estate, Dyce, Aberdeen, AB21 0GS
Switch: +44 (0) 1224 772771 Fax: +44 (0) 1224 772660

This email and any attachments or links herein are confidential and may contain Metrol Technology Limited proprietary information that is legally privileged or otherwise protected from disclosure. It is solely intended for the person(s) named above. If you are not the intended recipient, any reading, use, disclosure, copying or distribution of all or parts of this email or associated attachments or links to other web locations, is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message or by telephone and delete this email and any attachments or links permanently from your system. Metrol accepts no liability for any damage of whatever nature caused by this email. Registration Number SC105658. Registered in Scotland.


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2016-10-06 18:38:32 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.