Hi Ben,
Are you referring to a sample for KerberosToken, or KerberosToken2 for
tcp? If you are referring to KerberosToken2, then there is a good reason
why WSE did not ship with a sample. Well, in order to run a KerberosToken2
sample on soap.tcp, you would
a) need to map the account that you are running the server executable to
the appropriate machine - this can be done using a tool called setspn.exe
b) need to be running on a private domain
In order for you to run (a), you need to be domain administrator of your
domain. This is because WSE2 supports only one-shot kerberos. In WSE3, there
is support for user to user kerberos, which means that you don't have to go
through the hassle of running setspn.
The actual sample for KerberosToken2 is exactly the same in tcp as it
looks like in ASMX, with the additional steps highlighted above. For
KerberosToken, the sample should
run by default out of the box with no needed changes. The only caveat is
that this behavior changes in Win2K3 SP1 where even this scenario stops
working.
Please let me know if you have any more questions.
Thanks,
Sidd [MSFT]
> Does anyone know of a Keberos policy example for soap.tcp?
BenW - 23 Jun 2005 20:20 GMT
Hi Sidd, thanks for the reply, actually I was refering to WSE 3.0 which I'm
having a crack with, which I think there there is only one KerberosToken now,
if I remeber the notes. The samples are biased to http but I would of
thought a lot of peole not wanting to start going down the Remoting route
would like to know how to do secured soap.tcp messaging with WSE 3.0 and
using policy. I see it as becoming a very powerful technology.
> Hi Ben,
>
[quoted text clipped - 25 lines]
>
> > Does anyone know of a Keberos policy example for soap.tcp?
Sidd - 06 Jul 2005 07:53 GMT
Currently if you need to use kerberos with soap.tcp then you have to either
do
a) be on a private domain, where you can set the service principal name of
the service
b) use the low level kerberosClientContext and KerberosServerContext to do
user to user authentication. This will enable you to do user to user
authentication, in which case (a) not be necessary.
If you want to do (a) above, there is a little bit of work setting up te
dmain.
Please let me knowi if the babove makes sense.
Thanks,
Sidd [MSFT]
> Hi Sidd, thanks for the reply, actually I was refering to WSE 3.0 which I'm
> having a crack with, which I think there there is only one KerberosToken now,
[quoted text clipped - 32 lines]
> >
> > > Does anyone know of a Keberos policy example for soap.tcp?