简体   繁体   English

Node.js + LDAP-从Android创建新用户

[英]Node.js + LDAP - Create new user from Android

I am running LDAP server using node.js (ldapjs.org) and i want to create a new user from Android. 我正在使用node.js(ldapjs.org)运行LDAP服务器,我想从Android创建一个新用户。

I created a user using the command 'ldapadd' and verified user creation was successful using the command "ldapsearch". 我使用命令“ ldapadd”创建了一个用户,并使用命令“ ldapsearch”验证了用户创建成功。 These commands were directly run on the server. 这些命令直接在服务器上运行。

What is the best way of creating the user from Android ? 从Android创建用户的最佳方法是什么? I assume i need to do a http post from Android and run another instance of node.js server (for http) which will accept the post request and run "ldapadd" on the machine's command line. 我假设我需要从Android进行一个http发布,并运行另一个node.js服务器实例(用于http),该服务器将接受发布请求并在计算机的命令行上运行“ ldapadd”。 Is this correct approach ? 这是正确的方法吗?

You could use the LDAP SDK from UnboundID to run an LDAP client on Android and interact with the LDAP Directory Server directly. 您可以使用UnboundID中的LDAP SDK在Android上运行LDAP客户端并直接与LDAP目录服务器进行交互。 See also Neil's article . 另请参见Neil的文章

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM