mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aizaz AZ (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FTPSERVER-451) Could not set "~UNG3$$ABL3~123~#@!" as password
Date Mon, 21 Oct 2013 10:12:42 GMT

     [ https://issues.apache.org/jira/browse/FTPSERVER-451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Aizaz AZ updated FTPSERVER-451:
-------------------------------

    Description: 
I am using ClearTextPasswordEncryptor while creating PropertiesUserManagementFactory and I
am setting "~UNG3$$ABL3~123~#@!" as password for my login and it throws me Authentication
failed in response and If I don't use any special character in my password it works.

{code}
Response:	530 Authentication failed.
Error:	Critical error
Error:	Could not connect to server
{code}

{code}

PropertiesUserManagerFactory propUserManagerFactory = new PropertiesUserManagerFactory();
		propUserManagerFactory.setFile(new File("ftpusers.properties"));
		propUserManagerFactory.setPasswordEncryptor(new ClearTextPasswordEncryptor());
		SFTPServer.mUserManager = (PropertiesUserManager) propUserManagerFactory.createUserManager();
		SFTPServer.mFTPServerFactory.setUserManager(mUserManager);


String adminName = SFTPServer.mUserManager.getAdminName();

		if (!SFTPServer.mUserManager.doesExist(adminName)) {
			// LOG.info((new
			// StringBuilder()).append("Creating user : ").append(adminName).toString());
			BaseUser adminUser = new BaseUser();
			adminUser.setName(adminName);
			adminUser.setPassword("~UNG3$$ABL3~123~#@!");
			adminUser.setEnabled(true);
			adminUser.setAuthorities(ADMIN_AUTHORITIES);
			adminUser.setHomeDirectory(DEFAULT_CONTENT_DIR);
			adminUser.setMaxIdleTime(MAX_IDLE_TIMEOUT);
			SFTPServer.mUserManager.save(adminUser);
			SFTPServer.mUserManager.refresh();
		}

SFTPServer.mFTPServer = SFTPServer.mFTPServerFactory.createServer();

		SFTPServer.mFTPServer.start();

{code}


  was:
I am using ClearTextPasswordEncryptor while creating PropertiesUserManagementFactory and I
am setting "~UNG3$$ABL3~123~#@!" as password for my login and it throws me Authentication
failed in response and If I don't use any special character in my password it works.

{code}
Response:	530 Authentication failed.
Error:	Critical error
Error:	Could not connect to server
{code}

{quote}
{code}
PropertiesUserManagerFactory propUserManagerFactory = new PropertiesUserManagerFactory();
		propUserManagerFactory.setFile(new File("ftpusers.properties"));
		propUserManagerFactory.setPasswordEncryptor(new ClearTextPasswordEncryptor());
		SFTPServer.mUserManager = (PropertiesUserManager) propUserManagerFactory.createUserManager();
		SFTPServer.mFTPServerFactory.setUserManager(mUserManager);


String adminName = SFTPServer.mUserManager.getAdminName();

		if (!SFTPServer.mUserManager.doesExist(adminName)) {
			// LOG.info((new
			// StringBuilder()).append("Creating user : ").append(adminName).toString());
			BaseUser adminUser = new BaseUser();
			adminUser.setName(adminName);
			adminUser.setPassword("~UNG3$$ABL3~123~#@!");
			adminUser.setEnabled(true);
			adminUser.setAuthorities(ADMIN_AUTHORITIES);
			adminUser.setHomeDirectory(DEFAULT_CONTENT_DIR);
			adminUser.setMaxIdleTime(MAX_IDLE_TIMEOUT);
			SFTPServer.mUserManager.save(adminUser);
			SFTPServer.mUserManager.refresh();
		}

SFTPServer.mFTPServer = SFTPServer.mFTPServerFactory.createServer();

		SFTPServer.mFTPServer.start();
{code}
{quote}


> Could not set "~UNG3$$ABL3~123~#@!" as password
> -----------------------------------------------
>
>                 Key: FTPSERVER-451
>                 URL: https://issues.apache.org/jira/browse/FTPSERVER-451
>             Project: FtpServer
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 1.0.6
>         Environment: Java 6
> Windows 7 64 bit
>            Reporter: Aizaz AZ
>            Priority: Blocker
>              Labels: security
>
> I am using ClearTextPasswordEncryptor while creating PropertiesUserManagementFactory
and I am setting "~UNG3$$ABL3~123~#@!" as password for my login and it throws me Authentication
failed in response and If I don't use any special character in my password it works.
> {code}
> Response:	530 Authentication failed.
> Error:	Critical error
> Error:	Could not connect to server
> {code}
> {code}
> PropertiesUserManagerFactory propUserManagerFactory = new PropertiesUserManagerFactory();
> 		propUserManagerFactory.setFile(new File("ftpusers.properties"));
> 		propUserManagerFactory.setPasswordEncryptor(new ClearTextPasswordEncryptor());
> 		SFTPServer.mUserManager = (PropertiesUserManager) propUserManagerFactory.createUserManager();
> 		SFTPServer.mFTPServerFactory.setUserManager(mUserManager);
> String adminName = SFTPServer.mUserManager.getAdminName();
> 		if (!SFTPServer.mUserManager.doesExist(adminName)) {
> 			// LOG.info((new
> 			// StringBuilder()).append("Creating user : ").append(adminName).toString());
> 			BaseUser adminUser = new BaseUser();
> 			adminUser.setName(adminName);
> 			adminUser.setPassword("~UNG3$$ABL3~123~#@!");
> 			adminUser.setEnabled(true);
> 			adminUser.setAuthorities(ADMIN_AUTHORITIES);
> 			adminUser.setHomeDirectory(DEFAULT_CONTENT_DIR);
> 			adminUser.setMaxIdleTime(MAX_IDLE_TIMEOUT);
> 			SFTPServer.mUserManager.save(adminUser);
> 			SFTPServer.mUserManager.refresh();
> 		}
> SFTPServer.mFTPServer = SFTPServer.mFTPServerFactory.createServer();
> 		SFTPServer.mFTPServer.start();
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message