I'm writing an gss server/client application with mutual auth and credential delegate support but I can't get credential delegation to work. I base my code mainly on the SampleClient.java/SampleServer.java in the GSS tutorial and I get the mutual auth to work without any problems. I'm using jdk1.5.
Oid krb5Oid = new Oid("1.2.840.113554.1.2.2");
GSSManager manager = GSSManager.getInstance();
GSSName serverName = manager.createName(server, null);
GSSContext context = manager.createContext(serverName, krb5Oid, null,
GSSContext.DEFAULT_LIFETIME);
context.requestMutualAuth(true);
context.requestCredDeleg(true);
klist -a
Credentials cache: FILE:/tmp/krb5cc_D15505
Principal: wikm@SU.SE
Cache version: 4
Server: krbtgt/SU.SE@SU.SE
Ticket etype: des3-cbc-sha1, kvno 1
Auth time: Jul 22 12:14:39 2005
End time: Jul 22 22:14:39 2005
Renew till: Jul 29 12:14:39 2005
Ticket flags: forwardable, renewable, initial
Addresses:
I have also tryed with des-cbc-crc.
Do java suport CredDelegate yet?
/ Mikael Wikstrom