简体   繁体   中英

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.

I created a user using the command 'ldapadd' and verified user creation was successful using the command "ldapsearch". These commands were directly run on the server.

What is the best way of creating the user from 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. 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. See also Neil's article .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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