LUA c_AddUser - How to add user to a group?

Please post here if you have problems in using Wing FTP Server.
Post Reply
MountainVision
Posts: 10
Joined: Wed Mar 03, 2010 3:09 pm
Location: Laax, Switzerland
Contact:

LUA c_AddUser - How to add user to a group?

Post by MountainVision »

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
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

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

Post by FTP »

The parameter may be written as " {{'group_name'}} " , please try it.
Post Reply