unboundid-ldap-sdk

how to use UnboundID LDAP in android?

给你一囗甜甜゛ 提交于 2020-01-13 14:12:04
问题 I want use LDAP(Lightweight Directory Access Protocol) in android.But i have no idea about LDAP. I have seen following link: Neil's LDAP SDK post He told like android developers don't need to worry about missing LDAP support for Android because the UnboundID LDAP SDK for Java works just fine on the Android platform. I've done quite a bit of testing and made sure that things just work. With a couple of exceptions (primarily CRAM-MD5, DIGEST-MD5, and GSSAPI, which require the Java SASL API that

Change user password in LDAP using unboundid

不打扰是莪最后的温柔 提交于 2019-12-25 14:22:35
问题 I'm trying to change the user password in LDAP, using the code below, I'm not the admin of the LDAP, so I make the connection with a user that have ou=systemusers, it can create users, and add the users to a group. I know the old password for the use that will do the change PasswordModifyExtendedRequest passwordModifyRequest = new PasswordModifyExtendedRequest( "uid=test.user,ou=People,dc=example,dc=com", // The user to update (String) null, // The current password for the user. (String) null

How to retrieve “windows active directory - attributes id's ” in java?

主宰稳场 提交于 2019-12-25 12:54:30
问题 I have searched a lot to get the answer for my question. But I can't . What I have got in search : public class RetrieveUserAttributes { public static void main(String[] args) { RetrieveUserAttributes retrieveUserAttributes = new RetrieveUserAttributes(); retrieveUserAttributes.getUserBasicAttributes("anand", retrieveUserAttributes.getLdapContext()); } public LdapContext getLdapContext(){ LdapContext ctx = null; try{ Hashtable<String, String> env = new Hashtable<String, String>(); env.put

How to retrieve “windows active directory - attributes id's ” in java?

混江龙づ霸主 提交于 2019-12-25 12:52:10
问题 I have searched a lot to get the answer for my question. But I can't . What I have got in search : public class RetrieveUserAttributes { public static void main(String[] args) { RetrieveUserAttributes retrieveUserAttributes = new RetrieveUserAttributes(); retrieveUserAttributes.getUserBasicAttributes("anand", retrieveUserAttributes.getLdapContext()); } public LdapContext getLdapContext(){ LdapContext ctx = null; try{ Hashtable<String, String> env = new Hashtable<String, String>(); env.put

LDAPException size limit exceeded

跟風遠走 提交于 2019-12-24 13:24:08
问题 I am using unboundid ldap sdk for executing ldap query. I am facing a strange problem while running ldap search query. I am getting a Exception when i run query against a group which contains 50k entries. My Exception : LDAPException(resultCode=4 (size limit exceeded), errorMessage='size limit exceeded') at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.nextElement(LDAPSearchResults.java:254) at com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPSearchResults.next(LDAPSearchResults.java:279

Password Reset Enforcing Directory Policies with UnboundID

末鹿安然 提交于 2019-12-23 03:47:23
问题 I'm developing a web app that let users reset their own passwords in Active Directory. I've been doing it by binding as an administrator and it works fine, but the directory policies (reuse history, characters, etc) are not being enforced. I can't bind as a user because I don't have the current password. I read about the LDAP_SERVER_POLICY_HINTS control introduced in Windows 2008 R2 SP1 for doing that in Active Directory and even found someone who made it using Spring LDAP Since I'm using

connect android to openLDAP server

蹲街弑〆低调 提交于 2019-12-19 11:30:11
问题 I have been assigned a task to, connect to a LDAP server from android.Perform the authetication process from android.I am using openLDAP. I am completely new to this.Can anyone help me out with some piece of code or demo code showing android connecting with LDAP server and authenticating. The Port no-389 SSL Port-636 IP Address-LGSPC3 username-->cn=name,cn=users,dc=mydeomain,dc=com serverlist-ldap://server1 Thank you in advance 回答1: The code I used to connect to LDAP server successfully is as

How to use UnboundID SDK to connect to an LDAP server with the SSL server certificate?

可紊 提交于 2019-12-12 08:02:13
问题 I have in my hand an SSL LDAP server certificate. I want to use it to connect to the LDAP server using UnboundID SDK. I do not want to use com.unboundid.util.ssl.TrustAllTrustManager as was showed here: Using UnboundID SDK with an SSL certificate file to connect to LDAP server in Android app The following TrustManagers not fit our product requirements: com.unboundid.util.ssl.PromptTrustManager com.unboundid.util.ssl.HostNameTrustManager com.unboundid.util.ssl.ValidityDateTrustManager I do not

LDAP changing user password on Active Directory

你。 提交于 2019-12-08 07:50:41
问题 I state that I am a complete beginner to LDAP. I have to let a user change its own password through an Android device. User has NOT administrative privileges. Using the UnboudId LDAP SDK for Java I'm able to bind to server and get the user entry using this code: final SocketFactory _socket_factory; final SSLUtil _ssl_util = new SSLUtil(new TrustAllTrustManager()); try { _socket_factory = _ssl_util.createSSLSocketFactory(); } catch (Exception e) { Log.e(LOG_TAG, "*** Unable to initialize ssl",

Retrieve All Members of Large AD Groups

六月ゝ 毕业季﹏ 提交于 2019-12-08 02:55:43
问题 Working with an Microsoft Active Directory and Unboundid SDK and there is a group with >29k members. I am trying to utilize the range values to get all the groups, but can not determine when the end has been reached. I am using this method: (Updated to working code) public static List<String> getAttributeRangeBasedSearch(LDAPConnection ldc, String basedn, String filter, int step, String return_attribute) throws LDAPException { List<String> allValues = new ArrayList<String>(); // initialize