only existing users: Pre-authentication information was invalid (24) error

Our application is java based, and we use JAAS to allow authentication for the users though Active Directory.

In particular we alwyas encourage our prospect clients to use Krb5LoginModule.

We would

1. add new user to AD , set DES for the account, reset the password

2.

setspn -A host/newUser.DOMAIN.COM newUser

setspn -A HTTP/newUser.DOMAIN.COM newUser

run ktpass

pass the keytab to the server where the server application will be running from and setup there

-Djava.security.auth.login.config=c:\config\config.conf

-Djava.security.realm=DOMANNAME

-Djava.security.kdc=<Ip address of kdc>

where config.conf file would have line

Krb5LoginModule tryFirstPass=true storePass=true storeKey=true useKeyTab=true keyTab="c:\keytab.key";

and it works...

However, I have encountered a situation where the above would return

Pre-authentication information was invalid (24) error.

We have reset the password, re-generate the keytab, it is the same time zone ... and nothing.

Then I asked to have a new user added (just to test it) - and it worked for the new user.

Now - what do I need to do to get to work for the hunders of others?

Thanks

[1261 byte] By [Farmington1965a] at [2007-10-3 5:37:56]
# 1
What version of JDK are you using ?If you are using JDK 5.0, please download the latest JDK 5.0 Update 8 release that includes support for the new Kerberos Pre-authentication mechanisms.Seema
Seema-1a at 2007-7-14 23:45:37 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...
# 2
Thank you,Should this be upgraded on the AD server ?
Farmington1965a at 2007-7-14 23:45:37 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...
# 3
You need to upgrade to J2SE 5.0 Update 8 on the client machine.Seema
Seema-1a at 2007-7-14 23:45:37 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...
# 4
Hi all,I have the same problem, but I'm using jdk 1.4.2_06... this problem could happen in this version of jdk too?ps.: my project run at an unix machine with Oracle AS 10g (10.1.2)..thanks a lot
Danilo.Marchioria at 2007-7-14 23:45:37 > top of Java-index,Security,Kerberos & Java GSS (JGSS)...