Community discussions

MikroTik App
 
User avatar
santababa
just joined
Topic Author
Posts: 22
Joined: Wed Feb 20, 2008 6:13 pm

Add new user via CLI/API version 5 not working

Tue Apr 05, 2011 7:02 pm

To add new user in
In UM version 4.17: "add name=00:23:8B:11:13:01 subscriber=admin add-credit=1day"
works great! :)


in UM version 5: "add name=00:23:8B:11:13:01 customer=admin"
FAILED!! :?


I get "no profile" error when client try to login. I tried "add-credit=1day", "profile=1day" and "add-profile=1day" but non of them works with the CLI

So, how do you add new user in UM version 5 via CLI/API?

Thanks,
Sans.
 
User avatar
santababa
just joined
Topic Author
Posts: 22
Joined: Wed Feb 20, 2008 6:13 pm

Re: Add new user via CLI/API version 5 not working

Thu Apr 07, 2011 8:22 pm

Anyone have any clue what is the work around for the new version of UM to add a new user that actually work under CLI or API?

Is new version of UM ready for prime time or we are still on v4.17?

Thanks,
Sans
 
User avatar
santababa
just joined
Topic Author
Posts: 22
Joined: Wed Feb 20, 2008 6:13 pm

Re: Add new user via CLI/API version 5 not working - Update

Fri Apr 08, 2011 3:42 pm

Got respond from MT support, "Currently it is not possible to assign profile by CLI"

I will update the post when I get new updates.

Thanks,
Sans
 
User avatar
webasdf
Frequent Visitor
Frequent Visitor
Posts: 87
Joined: Mon Jan 26, 2009 6:37 pm

Re: Add new user via CLI/API version 5 not working

Tue Apr 12, 2011 7:26 pm

I seem to be experiencing the same. In version 4, /tool user-manager user gave me this when adding/modifying users:

<numbers> -- List of item numbers
add-credit --
caller-id --
comment -- Short description of the item
disabled -- Defines whether item is ignored or used
discount --
download-limit --
email --
first-name --
group-name --
ip-address --
last-name --
location --
name --
password --
phone --
pool-name --
random-password --
rate-limit --
reg-key --
registration-date --
subscriber --
transfer-limit --
upload-limit --
uptime-limit --
username --


Now in version 5, I only get:
Change properties of one or several items.

<numbers> -- List of item numbers
caller-id --
comment -- Short description of the item
customer --
disabled -- Defines whether item is ignored or used
email --
first-name --
ip-address --
last-name --
location --
name --
password --
phone --
random-password --
reg-key --
registration-date --
shared-users --
username --

Missing rate-limit and group-name...and probably others. :? Those are the properties I need in CLI and API please. Can't upgrade to v5 until I can set these.
 
User avatar
stek
newbie
Posts: 49
Joined: Fri Jul 11, 2008 6:22 pm
Location: Switzerland

Re: Add new user via CLI/API version 5 not working

Sat Aug 20, 2011 12:21 am

MT please tell us when version 5.x will be able to assign profile to use in CLI/API.

regards
Stefano
 
UGP2
newbie
Posts: 32
Joined: Sun Apr 03, 2011 9:06 pm

Re: Add new user via CLI/API version 5 not working

Tue Aug 23, 2011 10:21 am

i have this problem too.
 
User avatar
santababa
just joined
Topic Author
Posts: 22
Joined: Wed Feb 20, 2008 6:13 pm

Re: Add new user via CLI/API version 5 not working

Tue Aug 23, 2011 9:58 pm

Is there any way we can add user automatically without using the GUI manually? We are trying to decide if we should use Mikrotik solution to roll out a big hotspot project. We are not able to use the Usermanager built-in paypal or Authorize.net payment systems therefore we need a way to interface with UM to create/manage users. Since I can't use CLI to add users, what other option do I have to automatically add users?

Hate the inefficiency of UM 4.17. Loved the improvements of version 5. Mikrotik, please make this small change: ability to add user from cli that actually useful! Just add the profile option, that's all we ask for!


Thanks,
Sans
 
User avatar
stek
newbie
Posts: 49
Joined: Fri Jul 11, 2008 6:22 pm
Location: Switzerland

Re: Add new user via CLI/API version 5 not working

Tue Aug 30, 2011 12:28 pm

there is a workaround:

-> create, from web interface, a "template" user with a specific profile
-> add the new user with the following cmd:
/tool user-manager user add copy-from=template username=<user> password=<pass> customer=<customer>


Stefano

Who is online

Users browsing this forum: No registered users and 0 guests