Rana,
Here is how I'm setting this folder:
<!-- Default properties file based user manager configuration block
-->
<user-manager>
<class>org.apache.ftpserver.usermanager.PropertiesUserManager</class>
<admin>admin</admin>
<prop-file>c:\ftp\wrapper\user.txt</prop-file>
<prop-password-encrypt>true</prop-password-encrypt>
</user-manager>
I'm creating a user as below:
BaseUser newUser = new BaseUser();
newUser.setName(userName);
newUser.setPassword(pwd);
newUser.setHomeDirectory("./home");
newUser.setWritePermission(true);
try {
// get user mgr
UserManager userMgr =
ftpConfig.getUserManager();
if (userMgr != null) {
userMgr.save(newUser);
} else {
// Throw exception later on...
System.out.println("No user mgr....");
}
}.....
The ftpserver-dev.jar I'm using is dated 10/25/05.
Thanks in advance,
Roopa
-----Original Message-----
From: Rana Bhattacharyya [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 22, 2005 9:56 AM
To: [email protected]
Subject: Re: Configuring location of user.gen
Hi,
a) I have modified the xml configuration and it is working fine. I have
used the follwing configuration
block:
<!-- Default properties file based user manager configuration block -->
<user-manager>
<class>org.apache.ftpserver.usermanager.PropertiesUserManager</class>
<admin>admin</admin>
<prop-file>c:/archive/res/user.gen</prop-file>
<prop-password-encrypt>true</prop-password-encrypt>
</user-manager>
Are you getting any error messages in the log file?
Please send the configuration file.
b) The encryption mechanism is MD5.
Thanks,
Rana Bhattacharyya
--- "Roopa Trivedi (rotrived)" <[EMAIL PROTECTED]>
wrote:
> Hi,
> I had a couple of qs:
>
> (a) I would like to change the location of user.gen from the default
> value (under .\res) to something else. I changed the following value
> in the configuration xml but it did not take effect:
> <user-manager>
> ...
> <prop-file><new value></prop-file>
> </user-manager>
>
> Am I missing something?
> Or is that not configureable?
>
> (b) What encryption mechanism is used to encrypt the pwd?
>
> Thanks in advance,
> Roopa
>
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs