Problem with adding users through command line
Posted: Mon Nov 23, 2009 12:37 pm
Hi,
I have successfully added a user through the command line:
c_AddUser(string strDomain,string strUsername,string strPassword,int nProtocolType,int bEnablePassword,int bEnableAccount,int nMaxDownloadSpeed,int nMaxUploadSpeed,int nMaxConnection,int nConnectTimeout,int nIdleTimeout,int nConnectPerIp,int nPassLength,int bShowHiddenFile,int bChangePass,int bSendMessage,int nRatioCredit, int nRatioDownload,int nRatioUpload,int nRatioCountMethod,int bEnableRatio,int nCurrentQuota,int nMaxQuota,int bEnableQuota,string strNoteName ,string strNoteAddress,string strNoteZip,string strNotePhone,string strNoteFax,string strNoteEmail,string strNoteMemo, table tabUserDirectory, table tabUserIpmasks, table tabUserFilemasks, table tabUserUsergroups,int bEnableSchedule, table tabUserSchedules, int nLimitResetType, int bLimitEnableUpload, int nCurUploadSize,int nMaxUploadSize, int bLimitEnableDownload, int nCurDownloadSize, int nMaxDownloadSize,int bEnableExpire,string strExpireTime,int nMaxDownloadSpeedPerUser,int nMaxUploadSpeedPerUser)
I am having a few problems though. Each time I add a user this way, the directory never gets set up. Also after I manually set up the directory and try to enter the ftp, it says: username and password not matched. When I disable the password, I enter the ftp with no problems at all.
To sum up I have 2 problems:
1) although I specify the password in the add user, it does not seem to be taken. (I try and change the password manually but to no effect)
2) the directory is not being inputted when adding a user through command line.
When I add a user through the GUI, there are no problems.
Thanks in advance for your help
I have successfully added a user through the command line:
c_AddUser(string strDomain,string strUsername,string strPassword,int nProtocolType,int bEnablePassword,int bEnableAccount,int nMaxDownloadSpeed,int nMaxUploadSpeed,int nMaxConnection,int nConnectTimeout,int nIdleTimeout,int nConnectPerIp,int nPassLength,int bShowHiddenFile,int bChangePass,int bSendMessage,int nRatioCredit, int nRatioDownload,int nRatioUpload,int nRatioCountMethod,int bEnableRatio,int nCurrentQuota,int nMaxQuota,int bEnableQuota,string strNoteName ,string strNoteAddress,string strNoteZip,string strNotePhone,string strNoteFax,string strNoteEmail,string strNoteMemo, table tabUserDirectory, table tabUserIpmasks, table tabUserFilemasks, table tabUserUsergroups,int bEnableSchedule, table tabUserSchedules, int nLimitResetType, int bLimitEnableUpload, int nCurUploadSize,int nMaxUploadSize, int bLimitEnableDownload, int nCurDownloadSize, int nMaxDownloadSize,int bEnableExpire,string strExpireTime,int nMaxDownloadSpeedPerUser,int nMaxUploadSpeedPerUser)
I am having a few problems though. Each time I add a user this way, the directory never gets set up. Also after I manually set up the directory and try to enter the ftp, it says: username and password not matched. When I disable the password, I enter the ftp with no problems at all.
To sum up I have 2 problems:
1) although I specify the password in the add user, it does not seem to be taken. (I try and change the password manually but to no effect)
2) the directory is not being inputted when adding a user through command line.
When I add a user through the GUI, there are no problems.
Thanks in advance for your help