|
This online help file is for EFT Server version 6.2.x. For other versions of EFT Server, please refer to http://help.globalscape.com/help/index.html. (If the Index and Contents are hidden, click Show Contents pane in the top left corner of this topic.) |
Use the ICISites interface AddODBCSite method to add a Site that uses an ODBC database for user authentication to the Server and retrieve the Site's COM interface.
Signature:
HRESULT AddODBCSite(
[in] BSTR bstrName,
[in] BSTR bstrRootFolder,
[in] BSTR bstrDSN,
[in] VARIANT_BOOL bEncryptPasswords,
[in] int nIP,
[in] UINT nPort,
[in] VARIANT_BOOL bCreateHomeFolder,
[in] VARIANT_BOOL bPermHomeFolder,
[in] VARIANT_BOOL bAutoStart,
//(Usr, Bin, Incoming, Pub)?
[out, retval] ICISite** prop);
[out, retval] ICISite** prop);
Example (VBScript):
Set Site = Sites.AddODBCSite("ODBC Site", "C:\sites\ODBC", "", 0, 21, True, True, True, True)
Parameters |
Definition |
bstrName |
New site name |
bstrRootFolder |
Site root folder |
bstrDSN |
Database DSN |
bEncryptPasswords |
TRUE if the database should contain encrypted passwords |
nIP |
Index of the site IP address |
nPort |
Port number of the site |
bCreateHomeFolder |
TRUE means that a home folder for new site users should be created |
bPermHomeFolder |
TRUE means that new site users should be granted full permissions in their home folders |
bAutoStart |
TRUE means that the site should start automatically |
bCreateFTPFolders |
TRUE means to create standard FTP folders (Usr, Bin, Incoming, Pub) (v6.1 and later) |