SFTP AD authentication and incorrect home directory
Posted: Sun Apr 20, 2008 12:16 am
I want an SFTP drop zone controlled using AD accounts and NTFS permissions. I don't want to use individual home directories, just the base directory. Problem is that the SFTP & AD authentication combination does not seem to allow this. I have documented my tests below:
I first created a Coreftp user called "ftpuser" with home directory locked to the base directory (SFTPRoot) and full permissions (except execute). NTFS permissions on base directory is set to Everyone Full Control for the moment.
**Test 1**: SFTP connection with AD authentication
Enable Active Directory users: checked
User settings to use: ftpuser
Ignore AD home directory: checked
Use Windows domain: TEST
Use base directory + username: unchecked
**Result**: Authentication is successful but base directory is set to coreftp program directory which the user will not have rights to. Error line in coreftp log is:
LIST denied - /C:/Program Files/CoreFTPServer/
**Test 2**: SFTP connection with NT authentication
Enable WinNT users: checked
User settings to use: ftpuser
Use Windows domain: TEST
Use base directory + username: unchecked
**Result**: Authentication is successful, base directory is set successfully to the root directory as desired.
**Test 3**: FTP connection with AD authentication
Enable Active Directory users: checked
User settings to use: ftpuser
Ignore AD home directory: checked
Use Windows domain: TEST
Use base directory + username: unchecked
**Result**: Authentication is successful, base directory is set successfully to the root directory as desired.
I may be able to get away with using WinNT authentication to the W2003 AD domains, but it's not ideal. Is this a known problem or something to do with my setup?
thanks,
Andy.
I first created a Coreftp user called "ftpuser" with home directory locked to the base directory (SFTPRoot) and full permissions (except execute). NTFS permissions on base directory is set to Everyone Full Control for the moment.
**Test 1**: SFTP connection with AD authentication
Enable Active Directory users: checked
User settings to use: ftpuser
Ignore AD home directory: checked
Use Windows domain: TEST
Use base directory + username: unchecked
**Result**: Authentication is successful but base directory is set to coreftp program directory which the user will not have rights to. Error line in coreftp log is:
LIST denied - /C:/Program Files/CoreFTPServer/
**Test 2**: SFTP connection with NT authentication
Enable WinNT users: checked
User settings to use: ftpuser
Use Windows domain: TEST
Use base directory + username: unchecked
**Result**: Authentication is successful, base directory is set successfully to the root directory as desired.
**Test 3**: FTP connection with AD authentication
Enable Active Directory users: checked
User settings to use: ftpuser
Ignore AD home directory: checked
Use Windows domain: TEST
Use base directory + username: unchecked
**Result**: Authentication is successful, base directory is set successfully to the root directory as desired.
I may be able to get away with using WinNT authentication to the W2003 AD domains, but it's not ideal. Is this a known problem or something to do with my setup?
thanks,
Andy.