Gene6 FTP Server Forum: usernames from mssql db help - Gene6 FTP Server Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

usernames from mssql db help Rate Topic: -----

#1 User is offline   burritobill 

  • Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 05-October 04

Posted 05 October 2004 - 03:34 PM

Sorry if this is a newb question. I have been using BPFTP for years now. We need SSL support. I am switching to g6. Just by coincidence all our account info is stored in a database. I would like to use them with g6 ftp. I have my connection string setup and it is working. I keep getting auth failed errors in the log files. I setup a quick db just to test this app. Info is as follows.

db name ftpdb
server local
odbc ftp_user

g6 odbc auth set to

name db
account prefix = blank
method database via odbc

connection string = data source=ftp_user;server=localhost;uid=ftpdb;pwd=abcd;database=ftpdb

query = select ftp_user from users where ftp_user=%s and ftp_pass=%s

I have run a trace on the sql server and see my query as this
select ftp_user from users where ftp_user='tuna' and ftp_pass='tunapass'

my return is tuna

I am not sure If I am not passing back enough info or not passing back the correct info since I get a login failed. I know my connection string is working and I am getting a valid query.

If anyone can point me to a doc (please not the http://www.g6ftpserver.com/manuals/en/) or if anyone can just simply explain what data needs to be in the database and how do you get it out so g6 can understand it.

Any help is appreciated.

Thanks
Bill
0

#2 User is offline   Codspirit 

  • Mr Code
  • Group: Moderators
  • Posts: 3317
  • Joined: 23-August 04
  • Gender:Male
  • Location:France
  • Interests:Coding, Scripting ...

Posted 05 October 2004 - 03:38 PM

How are your accounts ?

Have you a "tuna" user ?
If you get a "file not found" error when folowing a link to my ftp, please use your favorite ftp client and try getting the file again.
(I have some case sensivity problems)

Please do not use PM for support
0

#3 User is offline   burritobill 

  • Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 05-October 04

Posted 05 October 2004 - 03:48 PM

yes user tuna password of tunapass is a valid row in my table
0

#4 User is offline   Matthieu 

  • Addicted Member
  • Group: Staff
  • Posts: 1964
  • Joined: 22-October 03
  • Gender:Male
  • Location:France : Mouy
  • Interests:Science-fiction, World news

Posted 05 October 2004 - 03:58 PM

Is user tuna also created in the ftp server ? The server will use the account name returned to load the properties to apply for this account.
Gene6, SARL
Do not use PM to ask for support, use the forum or support email.

Special offer : 10% discount with coupon code : DISCOUNT
0

#5 User is offline   burritobill 

  • Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 05-October 04

Posted 05 October 2004 - 05:41 PM

ok so this is where I went wrong. The user has to exist in the ftp users list also? So what is the point of using authentication from the database?
0

#6 User is offline   Matthieu 

  • Addicted Member
  • Group: Staff
  • Posts: 1964
  • Joined: 22-October 03
  • Gender:Male
  • Location:France : Mouy
  • Interests:Science-fiction, World news

Posted 05 October 2004 - 06:27 PM

Only the authentication is stored in the base, all other options need to come from the default source. This allows you to not have to have to synchronize all the passwords.

Note that you can simply indicate the same account for all the users in your base then use access rights based on the username (using tags in access rights $USR_ACCOUNT)
Gene6, SARL
Do not use PM to ask for support, use the forum or support email.

Special offer : 10% discount with coupon code : DISCOUNT
0

#7 User is offline   burritobill 

  • Member
  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 05-October 04

Posted 05 October 2004 - 07:01 PM

thank you very much for all of your help. Its good to see a message board that is usefull.

Bill
0

#8 User is offline   Codspirit 

  • Mr Code
  • Group: Moderators
  • Posts: 3317
  • Joined: 23-August 04
  • Gender:Male
  • Location:France
  • Interests:Coding, Scripting ...

Posted 05 October 2004 - 08:37 PM

Sorry I was meaning in the ftpd ...

QUOTE
Its good to see a message board that is usefull


Yes, this one is really active and I like it too cool.gif
If you get a "file not found" error when folowing a link to my ftp, please use your favorite ftp client and try getting the file again.
(I have some case sensivity problems)

Please do not use PM for support
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users