----- Original Message -----
From: Olga Agady <[EMAIL PROTECTED]>
Sent: Dec 25, 11:38 PM

> Hi, 
> 
> I am trying to figure out how I can add a user
> programmatically from a web application. 

RemoteHandler as you know exposes telnet. You can programatically mimick telnet 
behaviour.
Take a look at this.
http://cvs.apache.org/viewcvs.cgi/jakarta-james/tests/src/conf/admin.protocolsession?rev=1.1&content-type=text/vnd.viewcvs-markup

C:  part is what your servlet will need to do, S: part is what the server will send 
back.


You could template user name password and feed it to a telnet protocol simulator. You 
could use this one or write your own.

http://cvs.apache.org/viewcvs.cgi/jakarta-james/tests/src/java/org/apache/james/testing/ProtocolSimulator.java?rev=1.6&content-type=text/vnd.viewcvs-markup

Harmeet

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

Reply via email to