posted 19 years ago
hi,
I tried to use NTLogin module for my JAAS login.
I put NTSystem.dll in right place.
But when i run the program it gives following erroe message
Load NTLibrary..........
Username: msamarasinghe
Password: Tgb5Nhy6
Domain: VIRTUSA
Just before calling ntSystem.logon()
userName manoj
pasword ijnmko
domain SAMPLE
javax.security.auth.login.LoginException: java.lang.UnsatisfiedLinkError: logon
at NTSystem.logon(Native Method)
at NTSystemLogin.login(NTSystemLogin.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.invoke(Unknown Source)
at javax.security.auth.login.LoginContext.access$000(Unknown Source)
at javax.security.auth.login.LoginContext$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(Unknown Source)
at javax.security.auth.login.LoginContext.login(Unknown Source)
at JaasTest.main(JaasTest.java:35)
I have no any idea what causes it.
help me
thanks.
manoj