LUA c_AddUser - How to add user to a group?

Please post here if you have problems in using Wing FTP Server.

LUA c_AddUser - How to add user to a group?

Postby MountainVision » Wed Mar 03, 2010 3:22 pm

Hy there

I'm working on script which should automaticly create a new user and add this user to an existing group. I tried it with the following command:
Code: Select all
c_AddUser('mydomain.com','username',md5('password'),63,1,1, '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', {'group_name'}, '', '', '', '', '', '', '', '', '', 1,'2010-04-02 17:02:01', '', '')


Everthing works fine, the user is going to be created with all the options I want. Except it's not added to the group called "group_name". The position of the parameter is correct, it's the 35th...
How do I have to add this table-parameter?

Thank you for your help
MV
MountainVision
 
posts 10
 
joined Wed Mar 03, 2010 3:09 pm
Location: Laax, Switzerland

Re: LUA c_AddUser - How to add user to a group?

Postby FTP » Wed Mar 03, 2010 4:44 pm

The parameter may be written as " {{'group_name'}} " , please try it.
FTP
Site Admin
 
posts 1229
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: Yahoo [Bot] and 2 guests