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.
[quoted text, click to view] "nealboy" wrote:
> 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.
> "Rob Thomson" <new@rjtt64.plus.com> ôÈëÓʼþ
> news:%23SpBFgd2EHA.2016@TK2MSFTNGP15.phx.gbl...
> > 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
> >
> >
>
>