-
Notifications
You must be signed in to change notification settings - Fork 101
Description
I have written an LDAP server that, among other things, processes Kerberos authentications. I had been using an old C SSPI library to process these authentications, but would like to use Kerberos.NET since we would like to support untrusted domains and use keytab files to support this.
I'm able to authenticate a user using the KerberosAuthenticator.Authenticate(), which is working great. However, I need to send back a response to the client indicating the authentication was successful. For trusted domains, I am able to use the code:
SspiContext serverContext = new SspiContext(mySpn, "Kerberos");
byte[] serverResponse = null;
serverContext.AcceptToken(token, out serverResponse);
And return the contents of serverResponse to the client. I have downloaded the Kerberos.NET source and have tried exposing the KrbApRep object created in the KerberosIdentity constructor among a few other objects, as well as changing the encoding to BER since that's what we need, but am unable to generate the necessary response token.
Any thoughts or pointers would be much appreciated.