Second option is to store your users in a database.
James creates a table called users.

You could create a web server page to update this database table.
First step is to setup users table with james and have a look at the data in the table.

I use tomcat with a jsp page to add users to may james on win 2000.

Only issue is setting the password.
You could hard code one in your insert statement or use the java to encode it.

Some thing like the following java or maybe it might possible to encode it with java script.

public String sha_pwd(String pass) {
try {

MessageDigest md ;
ByteArrayOutputStream bos;

md = MessageDigest.getInstance("SHA");
byte[] digest = md.digest(pass.getBytes("iso-8859-1"));
bos = new ByteArrayOutputStream();
OutputStream encodedStream = MimeUtility.encode(bos, "base64");
encodedStream.write(digest);
return bos.toString("iso-8859-1");
}
catch (Exception e)
{
return "failed " + e;
}
}

Regards,
Simon

Olga Agady wrote:

Hi,
I am trying to figure out how I can add a user
programmatically from a web application. Could someone
give me a hint how I could get a reference to James
(probably to RemoteManagerHandler) from an external
application (not using telnet).
Thanks in advance for any help

Agady

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to