Originally posted by Fernando Queiroz Fonseca:
I don't need connect to Active directory using Kerberos (GSSAPI), help, I Want change password in LDAP Server (Windows 2000), but display this Error :
javax.naming.AuthenticationException: GSSAPI. Root exception is com.sun.security.sasl.preview.SaslException: Failure to initialize security context [Caused by GSSException: Invalid name provided (Mechanism level: Could not load configuration file c:\winnt\krb5.ini (The system cannot find the file specified))]
at com.sun.security.sasl.gsskerb.GssKerberosV5.<init>(GssKerberosV5.java:102)
at com.sun.security.sasl.gsskerb.ClientFactory.createSaslClient(ClientFactory.java:44)
at com.sun.security.sasl.preview.Sasl.createSaslClient(Sasl.java:334)
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(LdapSasl.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.jndi.ldap.LdapClient.saslBind(LdapClient.java:399)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:215)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2569)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:275)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:173)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:191)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
at ldap.TipoLogin.main(TipoLogin.java:35)
Caused by: GSSException: Invalid name provided (Mechanism level: Could not load configuration file c:\winnt\krb5.ini (The system cannot find the file specified))
at sun.security.jgss.krb5.Krb5NameElement.getInstance(Krb5NameElement.java:110)
at sun.security.jgss.krb5.Krb5MechFactory.getNameElement(Krb5MechFactory.java:46)
at sun.security.jgss.GSSManagerImpl.getNameElement(GSSManagerImpl.java:159)
at sun.security.jgss.GSSNameImpl.getElement(GSSNameImpl.java:456)
at sun.security.jgss.GSSNameImpl.init(GSSNameImpl.java:151)
at sun.security.jgss.GSSNameImpl.<init>(GSSNameImpl.java:121)
at sun.security.jgss.GSSManagerImpl.createName(GSSManagerImpl.java:86)
at com.sun.security.sasl.gsskerb.GssKerberosV5.<init>(GssKerberosV5.java:74)
... 21 more
Caused by: GSSException: Invalid name provided (Mechanism level: Could not load configuration file c:\winnt\krb5.ini (The system cannot find the file specified))
at sun.security.jgss.krb5.Krb5NameElement.getInstance(Krb5NameElement.java:110)
at sun.security.jgss.krb5.Krb5MechFactory.getNameElement(Krb5MechFactory.java:46)
at sun.security.jgss.GSSManagerImpl.getNameElement(GSSManagerImpl.java:159)
at sun.security.jgss.GSSNameImpl.getElement(GSSNameImpl.java:456)
at sun.security.jgss.GSSNameImpl.init(GSSNameImpl.java:151)
at sun.security.jgss.GSSNameImpl.<init>(GSSNameImpl.java:121)
at sun.security.jgss.GSSManagerImpl.createName(GSSManagerImpl.java:86)
at com.sun.security.sasl.gsskerb.GssKerberosV5.<init>(GssKerberosV5.java:74)
at com.sun.security.sasl.gsskerb.ClientFactory.createSaslClient(ClientFactory.java:44)
at com.sun.security.sasl.preview.Sasl.createSaslClient(Sasl.java:334)
at com.sun.jndi.ldap.sasl.LdapSasl.saslBind(LdapSasl.java:98)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.jndi.ldap.LdapClient.saslBind(LdapClient.java:399)
at com.sun.jndi.ldap.LdapClient.authenticate(LdapClient.java:215)
at com.sun.jndi.ldap.LdapCtx.connect(LdapCtx.java:2569)
at com.sun.jndi.ldap.LdapCtx.<init>(LdapCtx.java:275)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:173)
at com.sun.jndi.ldap.LdapCtxFactory.getUsingURLs(LdapCtxFactory.java:191)
at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:136)
at com.sun.jndi.ldap.LdapCtxFactory.getInitialContext(LdapCtxFactory.java:66)
at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at javax.naming.InitialContext.init(InitialContext.java:219)
at javax.naming.InitialContext.<init>(InitialContext.java:195)
at javax.naming.directory.InitialDirContext.<init>(InitialDirContext.java:80)
at ldap.TipoLogin.main(TipoLogin.java:35)
Thank's
---------------------------
Fernando Queiroz Fonseca
Uberl�ndia - MG - Brasil
wm@eletrica.ufu.br
---------------------------