Environment(W2k, WS2, .Net 1.1,c#)
Program(SmatClient, WebServices)
Hi
I am overriding the AuthenticateToken method to authenticate a user. All the
examples of this I have seen check the password against xml, databases etc.
I want to authenticate against AD. I have tried the Winapi LogonUser, but
this gives me access denied, due to security settings in W2k. I am passing
in a UserNameToken on the client side to the Security.Tokens.Add. Maybe Im
missing something, but if you could point in the right direction
Many thanks
Martin Kulov - 04 Dec 2004 10:36 GMT
Hi Rob,
Just send the UsernameToken with password in plain text. On the server side use policy to define the Windows group, that should have access to your web service, in format DOMAIN\Group.
HTH,
Martin Kulov
www.codeattest.com
Softwaremaker - 04 Dec 2004 12:43 GMT
In case, you want to encrypt the username token so that your password cannot
be viewed, try this:
http://www.softwaremaker.net/blog/PermaLink,guid,43d85031-3e0b-48a7-bdd7-1f49932
db40a.aspx
hth.

Signature
Thank you.
Regards,
Softwaremaker
==================================
> Hi Rob,
>
> Just send the UsernameToken with password in plain text. On the server side use policy to define the Windows group, that should have access to your
web service, in format DOMAIN\Group.
> HTH,
>
> Martin Kulov
> www.codeattest.com
nealboy - 04 Dec 2004 11:39 GMT
Hi Rob
If you want Web Services authenticate against AD you don't need override
the AuthenticateToken method in server side.
You should just send your password in plaintext and WSE will do
everything OK.
> Environment(W2k, WS2, .Net 1.1,c#)
> Program(SmatClient, WebServices)
[quoted text clipped - 8 lines]
>
> Many thanks
Yedu - 28 Mar 2005 22:29 GMT
nealboy,
I am doing a web service authentication by passing the UserNameToken in the
soap header, but in my Web Method the Thread.CurrentPrincipal is empty. The
authentication is against the AD.
My thought is that it is authenticating but the Thread.CurrentPrincipal is
empty, I know this fact because if i pass Invalid UserName, it throws an
exception.
Please Help.
Thanks
Yedu.
> Hi Rob
> If you want Web Services authenticate against AD you don't need override
[quoted text clipped - 15 lines]
> >
> > Many thanks