Get AD Groups with kerberos ticket in Java
问题 I am obtaining a kerberos ticket with the following code: String client = "com.sun.security.jgss.krb5.initiate"; LoginContext lc = new LoginContext(client, new CallbackHandler() { @Override public void handle(Callback[] arg0) throws IOException, UnsupportedCallbackException { System.out.println("CB: " + arg0); } }); lc.login(); System.out.println("SUBJ: " + lc.getSubject()); This code works fine, I get a subject that shows my user ID. The problem I'm having is now I need to know whether the