User Password

Top  Previous  Next

SUMMARY

By default, NGASI AppServer manager reads the user password from the system password file or system database. However sometimes it is desired not to rely on the system for password authentication to

NGASI AppServer Manager; e.g. Linux system configured for only Key Authentication may not have

any passwords in its system database. So we can create passwords using NGASI AppServer Manager

authentication database.

 

SCRIPT

/usr/ngasi/apiclient/bin/ncli.sh -user=admin -password=coolgeek -url=http://localhost:8666 -command=setuserpassword -account=myuser -accountpassword=tiger [-remoteserverid=server1 -vpsid=101]

 

JAVA API

Properties properties = new Properties();

properties.put("url","http://localhost:8666");

properties.put("user","admin");

properties.put("password","coolgeek");

properties.put("command","setuserpassword");

properties.put("account","myuser");

properties.put("accountpassword","tiger");

//properties.put("remoteserverid","server1");

//properties.put("vpsid","101");

String result = NGAPIClient.exec(properties);