directory-kerby mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zheng, Kai" <kai.zh...@intel.com>
Subject RE: How to request a forwardable ticket?
Date Wed, 18 Nov 2015 02:32:50 GMT
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 <jiajia.li@intel.com>
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:mboorshtein@gmail.com] 
Sent: Wednesday, November 18, 2015 10:27 AM
To: kerby@directory.apache.org
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/s4u.rhelent.lan@RHELENT.LAN");

        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
Mime
View raw message