i have a project JSP on netbeans and i have build it and make it to WAR file.
i have import and deploy WAR file on tomcat web application manager. but i have a problem, i have a login page, when i login using it on Netbeans it OK, but when i run it on web using tomcat that i have deploy on tomcat web application manager it show HTTP Status 404 /upfold/Test *upfold is my folder and Test is servlet
as you can see from my first post which contain my code, it already can adding user to LDAP server which i have check using an application call ldapadmin on windows. i can see user have been added. but it still have some problem. i can't login with the user and pass that i have added before. because it need loginShell and homedirectory, (loginShell: /bin/bash/ homeDirectory: /home/username). i have tried to adding attribute like this
but can't, it give me error like this
if you guys have a way or an alternate way to solve this, please tell me how to do it.
just when like when you use login command it always asking for password, so what i need is when i run an sh for login that contain user and pass it can automaticaly input the userpass without me input it.
Paul Clapham wrote:But that was your idea to write that message. In reality you only know that there's some kind of problem with authentication. I'd suggest you let the exception speak for itself:
i have change it to ex.printStackTrace() this is the output:
and when i run this command on terminal : ldapwhoami -vvv -h 192.168.1.1 -p 389 -D "dc=dtn,dc=com" -x -w kosini
the output is this : ldap_initialize( ldap://192.168.1.1:389 )
ldap_bind: Invalid credentials (49)
from my reference site that i have post before, only tell me to setting ldap, am i suppose to setting PAM also ? if yes, what should i do