chpasswd returns password too long?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   fal_ocite
Posted On:   Wednesday, February 13, 2002 09:37 AM

I am using: Runtime thisRun = Runtime.getRuntime(); String cmd = "/tmp/chgpasswd /tmp/" + UserName + ".pstxt"; proc = thisRun.exec(cmd); you might notice that chgpasswd is a shell script that I picked on this site :) to change a user's password from a jsp file. the password is writen to the user's username.pstxt file. Before writing the password, I encrypted it as such String cryptedID = MD5Crypt.crypt(new_p_word); while will give me something like : userid:encryptedpassword in my file. I get an exception saying that the password is too long. I used -e but with no veil. Any ideas?   More>>

I am using:

Runtime thisRun = Runtime.getRuntime();

String cmd = "/tmp/chgpasswd /tmp/" + UserName + ".pstxt";

proc = thisRun.exec(cmd);

you might notice that chgpasswd is a shell script that I picked on this site :)



to change a user's password from a jsp file. the password is writen to the user's username.pstxt file. Before writing the password, I encrypted it as such

String cryptedID = MD5Crypt.crypt(new_p_word);

while will give me something like :
userid:encryptedpassword in my file.

I get an exception saying that the password is too long. I used -e but with no veil.




Any ideas?

Please write to falocite@yahoo.com


regards.

Please use html tags to format code blocks.

   <<Less
About | Sitemap | Contact