unboundid-ldap-sdk

How to get DN and password with UnboundID

China☆狼群 提交于 2019-12-08 02:15:43
问题 I need some help concerning UnboundID. I heard it was a great choice but I'm not really used to it. So I need to make a LDAP listener. On this listener, i should be able to catch bind request (from a ldap browser for example). I wonder how to get the DN and the password. Here is my code for the LDAP listener: public ResultCode CreateLdapServer () throws LDAPException { CannedResponseRequestHandler requestHandler = new CannedResponseRequestHandler(); LDAPListenerConfig config = new

View modified entries in LDAPusing UnboundId api

别说谁变了你拦得住时间么 提交于 2019-12-07 09:46:10
问题 Here is the requirement that I want to see modified entries in LDAP which have been modificated at the LDAP servere side?Is there any api or code in Unboundid api so that I can see modified entries in LDAP ? 回答1: Although your question isn't exactly clear, I assume that you're asking if there is a way to detect changes to data in the directory server, either as they occur or sometime after the fact. There are a number of ways to accomplish this, although the solution that is best for you will

How to get DN and password with UnboundID

烂漫一生 提交于 2019-12-06 13:37:11
I need some help concerning UnboundID. I heard it was a great choice but I'm not really used to it. So I need to make a LDAP listener. On this listener, i should be able to catch bind request (from a ldap browser for example). I wonder how to get the DN and the password. Here is my code for the LDAP listener: public ResultCode CreateLdapServer () throws LDAPException { CannedResponseRequestHandler requestHandler = new CannedResponseRequestHandler(); LDAPListenerConfig config = new LDAPListenerConfig(4243, requestHandler); try { config.setListenAddress( InetAddress.getByName("localhost")); }

UnboundID LDAP SDK: Get all groups for a user

我们两清 提交于 2019-12-06 04:11:42
问题 Using UnboundID LDAP sdk, how can I get all the LDAP groups a particular user belongs to? (I would really appreciate some example code). 回答1: I have the same problem. However, the solution by Michael doesn't work for me, since it doesn't work recursively. Apparently, there is a "magic" AD query that gets all groups recursively, see Find Recursive Group Membership (Active Directory) using C# and How do I filter an LDAP query for groups containing a specific user? While our AD admin has fetched

how to use UnboundID LDAP in android?

不问归期 提交于 2019-12-05 21:36:57
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 isn't available on Android) pretty much all of the functionality that we offer in our LDAP SDK can be

Using UnboundID SDK with an SSL certificate file to connect to LDAP server in Android app

柔情痞子 提交于 2019-12-05 00:09:42
问题 I'm trying to make a connection to an LDAP server in my Android app, and am using the UnboundID SDK. Recently, a change was made from unsecured to secured LDAP, and I have to change the app accordingly. I have been given the SSL certificates file to validate against. I've already used the file to make a keystore as described here. I've got this keystore file in the assets folder of my app, and am pulling from that. The code below does not currently work, and throws the exception:

UnboundID LDAP SDK: Get all groups for a user

China☆狼群 提交于 2019-12-04 11:12:50
Using UnboundID LDAP sdk, how can I get all the LDAP groups a particular user belongs to? (I would really appreciate some example code). eerriicc I have the same problem. However, the solution by Michael doesn't work for me, since it doesn't work recursively. Apparently, there is a "magic" AD query that gets all groups recursively, see Find Recursive Group Membership (Active Directory) using C# and How do I filter an LDAP query for groups containing a specific user? While our AD admin has fetched all groups from the command line using ldifde, I can't get the query to work with UnboundID. Our

LDAP: How to return more than 1000 results (java)

不打扰是莪最后的温柔 提交于 2019-11-28 20:38:29
I am using the LDAP SDK from this site: https://www.unboundid.com/products/ldap-sdk/ . I would like to make a search operation which returns a lot of entries. According to the FAQ's site, ( https://www.unboundid.com/products/ldap-sdk/docs/ldapsdk-faq.php#search ) I have to use a SearchResultListener implementation. So here is what I did: public class UpdateThread extends Thread implements SearchResultListener { ... // create request final SearchRequest request = new SearchRequest(this, instance.getBaseDN(),SearchScope.SUB, filter); // Setting size limit of results. request.setSizeLimit(2000);

LDAP: How to return more than 1000 results (java)

爷,独闯天下 提交于 2019-11-27 13:02:52
问题 I am using the LDAP SDK from this site: https://www.unboundid.com/products/ldap-sdk/ . I would like to make a search operation which returns a lot of entries. According to the FAQ's site, ( https://www.unboundid.com/products/ldap-sdk/docs/ldapsdk-faq.php#search ) I have to use a SearchResultListener implementation. So here is what I did: public class UpdateThread extends Thread implements SearchResultListener { ... // create request final SearchRequest request = new SearchRequest(this,

How do I resolve “WILL_NOT_PERFORM” MS AD reply when trying to change password in scala w/ the unboundid LDAP SDK?

泄露秘密 提交于 2019-11-27 09:08:34
I'm wrestling with Active Directory, trying to get it to let me change a password. I've found tons of useful information, but I'm still getting a persistent error. Some code: import com.unboundid.ldap.sdk._ import com.unboundid.util.ssl._ def main(args: Array[String]) : Unit = { var sslUtil = new SSLUtil( new TrustAllTrustManager() ) var con = new LDAPConnection(sslUtil.createSSLSocketFactory()) con.connect("ldap.example.net", 636) con.bind("ldapadmin", "adminpasswd") val newPass = "Jfi8ZH8#k".getBytes("UTF-16LE"); val modRequest = new ModifyRequest("dn: cn=Tester Dude,ou=Lab,ou=Org,ou