Click here to get back home

.NET Identity question

 HomeNewsGroups | Search | About
 microsoft.public.windows.server.security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
.NET Identity question Robert Ginsburg 01-19-2006
Posted by Robert Ginsburg on January 19, 2006, 7:59 am
Please log in for more thread options
One of the constructors for a WindowsIdentity allows you to pass the UPN of
a user and have an identity created for that user. If your permissions are
setup correctly then the system is supposed to return you a delegatable
token that you can use for impersonation. I have been attempting just this,
I have set my local account to have permission to act as part of the
operating system and have flaged it as trusted for delegation, however
whenever I use this function I get a System.Security exception with the
message "Incorrect Function", I get the exact same result if I call
LsaLogonUser using the Kerberos S4U format.

Any thoughts or advice are appreciated

Robert



Posted by Ondrej Sevecek on January 19, 2006, 9:31 am
Please log in for more thread options
There are actually two identities involved:
- the user (or the local system) under which account runs the LsaLogonUser
function
this user/computer must be set up for "Account is trusted for delegation"
or "Trust computer for delegation",
should have the SeTCBPrivilege (and for w2k3 the account must have
SeImpersonatePrivilege).

- the user you are logging on by the LsaLogonUser function should *not* have
the "Account is sensitive and cannot be delegated" checkbox set. Then, the
account should have appropriate logon rights (local, network, ...) on the
computer the LsaLogonUser runs


More, kerberos must be functioning properly. Also you can troubleshoot by
using auditing: Account Logon Events on DC, Logon Events on the workstation.

Also, you can try to enable kerberos logging on both the workstation and
server:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters
LogLevel = DWORD = 0x1


O.


> One of the constructors for a WindowsIdentity allows you to pass the UPN
> of a user and have an identity created for that user. If your permissions
> are setup correctly then the system is supposed to return you a
> delegatable token that you can use for impersonation. I have been
> attempting just this, I have set my local account to have permission to
> act as part of the operating system and have flaged it as trusted for
> delegation, however whenever I use this function I get a System.Security
> exception with the message "Incorrect Function", I get the exact same
> result if I call LsaLogonUser using the Kerberos S4U format.
>
> Any thoughts or advice are appreciated
>
> Robert
>



Similar ThreadsPosted
Machine Cert Question - Web Request Question February 13, 2008, 1:11 pm
CA Question August 1, 2006, 11:16 am
ASR question. September 15, 2006, 8:13 pm
SCW question. November 7, 2006, 11:17 am
CA question November 30, 2007, 12:53 pm
eventcombMT question December 8, 2005, 11:34 am
ftp newbie question March 20, 2006, 9:36 am
tricky question? March 24, 2006, 1:59 pm
DHCP QUEstion . June 6, 2006, 5:39 am
Question on passwords June 9, 2006, 3:07 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap