Adding a Site (Add)

Use the ICISites interface Add method to create a new Site and retrieve the Site's ICISite interface.

Signature:

HRESULT Add(

[in] BSTR bstrName,

[in] BSTR bstrRootFolder,

[in] int nAMID,

[in] BSTR bstrAMDB,

[in] VARIANT_BOOL bEncryptPasswords,

[in] int nIP,

[in] UINT nPort,

[in] VARIANT_BOOL bCreateHomeFolder,

[in] VARIANT_BOOL bPermHomeFolder,

[in] VARIANT_BOOL bAutoStart,

[out, retval] ICISite** prop);

 

Parameters

Definition

bstrName

New site name

bstrRootFolder

Site root folder, as a full path for example, "c:\inetpub\eftroot\new site"

nAMID

Authentication manager identifier; this must be a number between 0 and 3 (inclusive), as follows:

   0  :  GlobalSCAPE EFT Server Authentication (proprietary flat file with an ".aud" extension)

   1  :  NTLM/Active Directory Authentication

   2  :  ODBC Authentication

   3  :  LDAP Authentication

bstrAMDB

Authentication manager database configuration string.  This is specific to the Authentication Manager chosen by the nAMID parameter.

 

NT:  "NTLM=1;(DC=<<domain controller name>>;)(GROUP=<<group name>>;)"

AD: ";(DC=<<domain controller name>>;)(GROUP=<<group name>>;)"

ODBC: "<<dsn connection string>>"

LOCAL: "<<path to AUD file>>"

LDAP: "LDAPDB=<<path to AUD file>>;LDAPSERVER=<<host>>;LDAPPORT=<<port>>; BASEDN="<<base dn for users>>;USERFILTER=<<user query filter>>;USERATTRIBUTE=<<logon attribute>>;SSL={0|1};(USERNAME=<<ldap simple bind username>>;PASSWORD=<<ldap simple bind password>>;)"

bEncryptPasswords

TRUE if database should contain encrypted passwords. This applies only to ODBC Authentication sites, and determines if password in the database are to be considered one-way hashed passwords or stored as plain-text in the columns (useful if you have external processes manipulating rows in the database).

nIP

Index of the site IP address. A "0" value means "all incoming."  A number greater than 0 refers to the index in the IP Address list for all addresses on the machine.

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