I'm trying to authenticate to Kerberos using Applet without SSL and I'm getting the following error:
Java Code:
    javax.naming.AuthenticationException: GSSAPI [Root exception is javax.security.sasl.SaslException:   
    GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find   
    any Kerberos tgt)]]
I'm pretty sure user and pass are ok. Here's my code:
Java Code:
    public String domain = "XXXXXXX";  
    public String user = "xxx.xxx.xxx.xxx";  
    public String pass = "xxxxx";  
    public String type = "GSSAPI";  
    public String ip_adress = "xxxxxxx";  
    public  boolean  getLdapContext(){  
        if(pass.equals("")) return false;  
            LdapContext checkAuth = null;  
            boolean value = false;  
                Hashtable<String,String> env = new Hashtable<String,String>();  
                env.put(Context.SECURITY_AUTHENTICATION, type);  
                env.put(Context.PROVIDER_URL, "ldap://"+ip_adress+":389");   
                env.put(Context.SECURITY_CREDENTIALS, pass);   
                checkAuth = new InitialLdapContext(env, null);  
                value = true;  
            } catch(Exception ex) {  
                value = false;  
            } finally {  
                try {if(checkAuth!=null) checkAuth.close();} catch(Exception e) {}  
                return value;  
Could someone help me with this one?