Community discussions

MikroTik App
 
campa4bt
newbie
Topic Author
Posts: 32
Joined: Mon Jul 21, 2014 12:49 pm

Self User Reset Password

Sat Mar 05, 2016 10:51 am

Is there a way to create a page to make possible for a user reset his password with a new one?

Thanks.

Michele
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: Self User Reset Password

Sat Mar 05, 2016 4:18 pm

Hi ,
i don't know it's possible or not , but i'm sure you can write a very simple software with C# then your user can use for changing password :)

if you are not familiar with programming i can help you
 
campa4bt
newbie
Topic Author
Posts: 32
Joined: Mon Jul 21, 2014 12:49 pm

Re: Self User Reset Password

Tue Mar 08, 2016 2:50 am

Ok i will accept your help, also by invoicing payment.

I need a script to generate user in mikrotik user manager from a excel file. I have already done one script in php, but it doesn't works properly, for example, the user is created and it works, but if you want to change password for him by ssh the system write: no such item. If you try to change password by web interface all seems ok.

I need the second script for changing password by user himself. I already made a script in php that works by ssh correctly. But it cannot work if you try to change password of users generated by ssh script.

Let me know in which way we can do the work, asap.

Thanks,

Michele
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: Self User Reset Password

Tue Mar 08, 2016 4:29 am

Are you ready to pay for it ?;)
take it easy man , check my signature :)

anyway : in ROS when you are creating any user it belongs to a user group : full,read,write
do you setting your group to full when you are creating user with php ?? maybe that's why you are unable to change its password later

if it doesn't help : here is a good document http://wiki.mikrotik.com/wiki/API_in_C_Sharp
if you are familiar with php so you know programming concepts , it's a class n C# which you can easily communicate with your ROS 8)
 
campa4bt
newbie
Topic Author
Posts: 32
Joined: Mon Jul 21, 2014 12:49 pm

Re: Self User Reset Password

Tue Mar 15, 2016 11:40 pm

I have tried all that i can try, but no success.

The script that i used to create a user, inside the user manager is:

/tool user-manager user
add username=USERNAME password=PASSWORD last-name="SURNAME" first-name="NAME" customer=admin copy-from=test

Now the user is able to login to the hot spot, with the credential USERNAME and PASSWORD, but if i want to change the user by using the command:

/tool user-manager user set USERNAME password=NEW_PASSWORD

i obtain the result: no such item

In what is wrong my work?

Thanks a lot.
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: Self User Reset Password

Wed Mar 16, 2016 10:18 pm

I have tried all that i can try, but no success.

The script that i used to create a user, inside the user manager is:

/tool user-manager user
add username=USERNAME password=PASSWORD last-name="SURNAME" first-name="NAME" customer=admin copy-from=test

Now the user is able to login to the hot spot, with the credential USERNAME and PASSWORD, but if i want to change the user by using the command:

/tool user-manager user set USERNAME password=NEW_PASSWORD

i obtain the result: no such item

In what is wrong my work?

Thanks a lot.
It's just about programming basics !

String always surrounded by quotations in the most programming and scripting languages :)


/tool user-manager user
add username="USERNAME" password="PASSWORD" last-name="SURNAME" first-name="NAME" customer=admin copy-from=test

/tool user-manager user set "USERNAME" password="NEW_PASSWORD"

Who is online

Users browsing this forum: No registered users and 4 guests