Is it possible to connect ldap server directly to

2020-07-23 07:21发布

问题:

I need to get the contact list from the LDAP Server running on Linux.Is it there any android code or intent to access the ldap contents directly or we should only use the web services to access the ldap?I tried searching on the internet but no proper solution was found in any website.

回答1:

DanielWeisser already did that. The project is on GIT, you can modify source if you let the credentials. https://github.com/weisserd/LDAP-Sync

He used the UnboundID LDAP Librairy to make this.

Good luck.



回答2:

You should try the LDAP client application https://market.android.com/details?id=com.unboundid.android.ldap.client&feature=search_result. It provides the ability to do searches in an LDAP directory and access the results directly (e.g., dial phone numbers, send e-mail, map/navigate to addresses, etc.) as well as add them to your contacts.