Great! Glad to know you made it:) Sent from China Unicom 4G TD-LTE
> 在 2017年3月1日,10:22,由超 <[email protected]> 写道: > > I reinstall OM. The problem solved. I think I did not restart red5 after my > first installation and kept it running cause the problem. > > Thank you Aliyun for your time and help. > > > > > >> 在 2017-03-01 08:15:11,"aliyun" <[email protected]> 写道: >> Login to OM as admin >> Go to Admin -> Users >> Create user and assign group and necessary rights, you need soap right, I >> believe. >> > > Sent from China Unicom 4G TD-LTE > >> 在 2017年3月1日,07:42,由超 <[email protected]> 写道: >> >> Thanks for your time. I check the log found the problem as the following. I >> do have the user "admin" in my OM. Can you provide more hint on this? Thanks. >> >> ID: 33 >> Address: >> http://localhost:5080/openmeetings/services/user/login?&user=admin&pass=admin >> Http-Method: GET >> Content-Type: >> Headers: {Accept=[*/*], accept-encoding=[deflate, gzip], >> Content-Type=[null], host=[localhost:5080], user-agent=[openmeetings]} >> -------------------------------------- >> DEBUG 03-01 07:30:55.629 PhaseInterceptorChain.java 114249623 305 >> org.apache.cxf.phase.PhaseInterceptorChain [http-nio-0.0.0.0-5080-exec-7] - >> Invoking handleMessage on interceptor >> org.apache.cxf.transport.https.CertConstraintsInterceptor@3f9236ba >> DEBUG 03-01 07:30:55.630 PhaseInterceptorChain.java 114249624 305 >> org.apache.cxf.phase.PhaseInterceptorChain [http-nio-0.0.0.0-5080-exec-7] - >> Invoking handleMessage on interceptor >> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor@32fa5bc0 >> DEBUG 03-01 07:30:55.631 PhaseInterceptorChain.java 114249625 305 >> org.apache.cxf.phase.PhaseInterceptorChain [http-nio-0.0.0.0-5080-exec-7] - >> Invoking handleMessage on interceptor >> org.apache.cxf.interceptor.OneWayProcessorInterceptor@8018486 >> DEBUG 03-01 07:30:55.632 PhaseInterceptorChain.java 114249626 305 >> org.apache.cxf.phase.PhaseInterceptorChain [http-nio-0.0.0.0-5080-exec-7] - >> Invoking handleMessage on interceptor >> org.apache.cxf.interceptor.ServiceInvokerInterceptor@7a122392 >> DEBUG 03-01 07:30:55.632 UserWebService.java 114249626 105 >> org.apache.openmeetings.webservice.UserWebService >> [http-nio-0.0.0.0-5080-exec-7] - Login user >> DEBUG 03-01 07:30:55.638 UserDao.java 114249632 627 >> org.apache.openmeetings.db.dao.user.UserDao [http-nio-0.0.0.0-5080-exec-7] - >> login:: 0 users were found >> DEBUG 03-01 07:30:55.639 UserDao.java 114249633 630 >> org.apache.openmeetings.db.dao.user.UserDao [http-nio-0.0.0.0-5080-exec-7] - >> No users was found: admin >> >> >> >> >> >> 在 2017-03-01 03:49:23,"aliyun" <[email protected]> 写道: >> https://github.com/openmeetings/openmeetings-api-plugin/wiki >> >> Sent from China Unicom 4G TD-LTE >> >>> 在 2017年3月1日,01:52,由超 <[email protected]> 写道: >>> >>> I setup my OM on my Mac. user admin can login successfully. When I use the >>> php API, I get error message as: >>> <h2>Error While signing into OpenMeetings, please check >>> credentials</h2><pre>-10</pre> >>> Failed to login >>> >>> My OM admin URL is : http://localhost:5080/openmeetings/#user/dashboard >>> >>> the following is my code. Thanks for any advice. >>> >>> <pre> >>> <?php >>> require_once '../scripts/OmGateway.php'; >>> >>> $gw = new OmGateway(array( >>> 'protocol' => 'http', >>> 'host' => 'localhost', >>> 'port' => '5080', >>> 'context' => 'openmeetings', >>> 'user' => 'admin', >>> 'pass' => 'admin', >>> 'module' => 'api_test' >>> )); >>> if ($gw->login()) { >>> echo "login successfully"; >>> } else { >>> die("\nFailed to login\n"); >>> } >>> </pre>
