Mailing List Archives
Public Access
|
|
|
[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)
- Date: Fri, 9 Sep 2011 10:06:36 -0700
- From: "Beaver, Mick" <Mick.Beaver@xxxxxxxxxx>
- Subject: 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
password?
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).
-Mick
#include <windows.h>
#include <stdio.h>
#define GETUSERNAME_BUFFER_LEN 1024
#pragma comment(lib, "advapi32.lib")
int
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;
}