[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] submit_dag + Windows + run_as_owner breaks (on 7.2.5)

On 9/9/2011 11:15 AM, Ross, Jason wrote:
> (LocalCredd =?= "mylocalcredd"))'

A few things to check:

1. Is your credd actually named "mylocalcredd" or is that a default value?
2. Did you store your credentials?
3. Are all of your execute nodes running with the same credd and pool

When I was getting credd to work, I used a little C program as a sanity
check that I was indeed running as my domain user and not the local
condor user. I've attached the source (but maybe there is a better way
to do this on Windows).

#include <windows.h>
#include <stdio.h>


#pragma comment(lib, "advapi32.lib")

main(int argc, char* argv[])
	TCHAR username_buffer[GETUSERNAME_BUFFER_LEN] = {0};
	DWORD username_buffer_len = GETUSERNAME_BUFFER_LEN;

	if (GetUserName(username_buffer, &username_buffer_len)) {
		(void) printf("GetUserName returned %s\n", username_buffer);

	return 0;