In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

You are here: Big Brother Bot ForumSupport ForumsInstallation Support (Moderator: MordyT)'@' in database or ftp username/password
Pages: [1]   Go Down
  Print  
Author Topic: '@' in database or ftp username/password  (Read 777 times) Bookmark and Share
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« on: August 08, 2011, 04:52:18 AM »

I've recently noticed that you can't use "@" (at) symbol in your username or password in database or ftp connections. Quickfix is just not use this symbol, but for some people it might be more serious issue.

For example, my webhosting where I store bbb database and status.xml, forces ftp username in the form: "something@hostname.pl", so in status.xml I had to enter:
<set name="output_file">http://ftp://something@hostname.pl:password@ftp_address/status.xml</set>
which was wrongly parsed. I had to modify status.py, because I couldn't change the username.

Moreover, for keeping high security, I use random password generators. In obtained passwords I have to replace "@" to different character, because of BBB.

Is there any way of entering such password/usernames without modifying source files, or it needs a more serious fix?
Logged


Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #1 on: August 08, 2011, 04:58:03 AM »

Seconded. I can't tell you how many times I have had to ask clients to change their FTP password because of the @ sign in it. However, I have no idea on how to fix this - this issue is with more then B3 - the same issue occurs if you try to use a browser for FTP access.

What was your fix for source? Maybe there can be some"comment" entered so it will take it?
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« Reply #2 on: August 08, 2011, 05:06:19 AM »

My fix was a bit "brutal" Smiley I've changed the line 288 of status.py from:
Code:
ftp=FTP(self._ftpinfo['host'],self._ftpinfo['user'],passwd=self._ftpinfo['password'])

To:

Code:
ftp=FTP('ftphost','username@something','password')

But every time BBB gets updated I have to manually change this again... And as I said, I can't change the ftp username so that it won't contain "@".
Logged

Moderator
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2627
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #3 on: August 08, 2011, 05:32:04 AM »

Quick noob question - if you try (in status.xml)
Code:
ftp://'username@something':password@host/path/you/want/it.xml
does that work? Notice the '
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« Reply #4 on: August 08, 2011, 06:55:29 AM »

I believe I tried doing it this way with no luck... The function which parses the URL probably needs to be changed.
Logged

[ www.xlrstats.com ]
Project Lead
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: CoD, CoD2, CoD5, UrT
Posts: 2022
Offline Offline
WWW
Support Specialty: B3-Core, CoD/UrT/WoP/ETPro parsers, Plugin development
« Reply #5 on: August 09, 2011, 02:54:02 AM »

When testing this dns in our function:
Code:
ftp://username@something:password@host/path/you/want/it.xml
the result is:
Code:
{u'protocol': u'ftp', u'host': u'host', u'user': u'username@something', u'path': u'/path/you/want/it.xml', u'password': u'password', u'port': None}

You see it recognizes: username@something as a valid username

But using pass@word (with @ in it) will fail tho:
Code:
{u'protocol': u'ftp', u'host': u'word@host', u'user': u'username@something', u'path': u'/path/you/want/it.xml', u'password': u'pass', u'port': None}

password: pass
host: word@host

For now don't accept @ in passwords since it will get parsed wrongly. Perhaps we can fix it in a later version
Logged

Beta Testers
*
OS: Linux
Type: Owner dedicated server(s)
Gameservers: UrT
Posts: 244
Offline Offline
« Reply #6 on: August 09, 2011, 03:50:35 AM »

I'll try it for you while upgrading BBB to 1.7.0 on my main server. But as far as I remember, something was wrong with it, but it could be random ftp server error...
Logged

Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal