Hi Marc, There're recent contribution fixes related to this from Steve. Would you checkout and update to the latest codes?
commit c3c778f3af0fe2a187c10447682bf12b9bed7c6d Author: plusplusjiajia <[email protected]> Date: Tue Nov 17 15:08:59 2015 +0800 DIRKRB-449 Fix the bit manipulation functions in KrbFlags. Contributed by Steve. Regards, Kai -----Original Message----- From: Marc Boorshtein [mailto:[email protected]] Sent: Wednesday, November 18, 2015 10:27 AM To: [email protected] Subject: How to request a forwardable ticket? I can't seem to workout how to specify any options for a ticket. For s4u the TGT and SGTs need to be forwardable. Here's my code so far: KOptions requestOptions = new KOptions(); requestOptions.add(KrbOption.CLIENT_PRINCIPAL, "HTTP/[email protected]"); requestOptions.add(KrbOption.USE_KEYTAB, true); requestOptions.add(KrbOption.KEYTAB_FILE, new File( "/Users/mlb/Documents/localdev.keytab")); requestOptions.add(KrbOption.FORWARDABLE,true); TgtTicket tgt = kerb.requestTgtWithOptions(requestOptions); Looking at the code it doesn't look like the options are ever picked up. Any thoughts on how to set the forwardable flag? Thanks Marc
