ldap

Ldap configuration on xammp

*爱你&永不变心* 提交于 2019-12-30 07:10:31
问题 I have been trying to configure ldap on xammp localhost. I have enabled ldap extension in php.ini file. I have also tried to change the system variables. I have been continuously getting this error LDAP functionality not present. Either load the module ldap php module or use a php with ldap support compiled in. Any help is welcomed 回答1: I've found this solution and it works for me: "I have copied the "libsasl.dll" from the "xampp/php" directory into the "xampp/apache/bin" directory,

Ldap configuration on xammp

ε祈祈猫儿з 提交于 2019-12-30 07:10:10
问题 I have been trying to configure ldap on xammp localhost. I have enabled ldap extension in php.ini file. I have also tried to change the system variables. I have been continuously getting this error LDAP functionality not present. Either load the module ldap php module or use a php with ldap support compiled in. Any help is welcomed 回答1: I've found this solution and it works for me: "I have copied the "libsasl.dll" from the "xampp/php" directory into the "xampp/apache/bin" directory,

How to retrieve LDAP password via JNDI

倾然丶 夕夏残阳落幕 提交于 2019-12-30 05:09:11
问题 I am able to read the password stored in LDAP via JNDI. But the result is some gibberish characters. So how do i decrypt it? Below is my code: public static void main(String[] args) { String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory"; String MY_HOST = "ldap://KhooGP-Comp1:1389"; String MGR_DN = "cn=Directory Manager"; String MGR_PW = "password"; String MY_SEARCHBASE = "dc=QuizPortal"; String MY_FILTER = "uid=yiwei"; String MY_ATTRS[] = {"cn", "uid", "sn", "userpassword"}; //Identify service

using spring-ldap with ssl

孤街浪徒 提交于 2019-12-30 04:35:32
问题 I need to talk to an LDAP server via spring-ldap with SSL, and the other end has a self-signed certificate no less. Can any kind soul please point me to some instructions for setting this up? 回答1: Check out Spring LDAP documentation for connecting to LDAP server over HTTP(S): As far as self signed certificate is concerned, you can import certificate chain into a truststore and set the following VM arguments: -Djavax.net.ssl.trustStore="<path to truststore file>" -Djavax.net.ssl

Connecting LDAP server from java application

感情迁移 提交于 2019-12-30 01:34:31
问题 I am building an application based on GXT (J2EE). Now the problem is that I have to connect the application to a LDAP server. Can you tell me how to connect a LDAP server from our java application and what Library or API I will have to use for that? 回答1: To connect to LDAP, check out the following packages/classes: javax.naming.directory.* javax.naming.ladp.* com.sun.jndi.ldap.LdapCtxFactory com.sun.jndi.ldap.ControlFactory Example code: //build a hashtable containing all the necessary

Need help ignoring server certificate while binding to LDAP server using PHP

江枫思渺然 提交于 2019-12-30 00:31:10
问题 I'm trying to bind to an LDAP server using PHP. It's a fairly straightforward process, except that I can't get around a certificate error that I'm getting. My auth credentials are fine, since I can connect to the server with Apache Directory Studio. Is there any way to just automatically accept the server cert? Similar to how you click "Accept this cert.." with Apache directory studio? I know it's not good security, but I just need to make it work at this point and can square away the cert

Running Apache DS embedded in my application

随声附和 提交于 2019-12-29 18:00:08
问题 I'm trying to run an embedded ApacheDS in my application. After reading http://directory.apache.org/apacheds/1.5/41-embedding-apacheds-into-an-application.html I build this: public void startDirectoryService() throws Exception { service = new DefaultDirectoryService(); service.getChangeLog().setEnabled( false ); Partition apachePartition = addPartition("apache", "dc=apache,dc=org"); addIndex(apachePartition, "objectClass", "ou", "uid"); service.startup(); // Inject the apache root entry if it

Query to list all users of a certain group

橙三吉。 提交于 2019-12-29 10:54:27
问题 How can I use a a search filter to display users of a specific group? I've tried the following: (& (objectCategory=user) (memberOf=MyCustomGroup) ) and this: (& (objectCategory=user) (memberOf=cn=SingleSignOn,ou=Groups,dc=tis,dc=eg,dc=ddd,D‌​C=com) ) but neither display users of a specific group. 回答1: memberOf (in AD) is stored as a list of distinguishedNames. Your filter needs to be something like: (&(objectCategory=user)(memberOf=cn=MyCustomGroup,ou=ouOfGroup,dc=subdomain,dc=domain,dc=com))

Active Directory: DirectoryEntry member list <> GroupPrincipal.GetMembers()

穿精又带淫゛_ 提交于 2019-12-29 08:18:23
问题 I have a group, lets call it GotRocks. I am attempting to get all of its members, but I am getting wildly different results count-wise between DirectoryEntry and AccountManagement. Below are the counts by member retrieval method: Method 1: DirectoryEntry.PropertyName.member = 350 Method 2: AccountManagement.GroupPrincipal.GetMembers(false) = 6500 Method 2: AccountManagement.GroupPrincipal.GetMembers(true) = 6500 As a sanity check, I went into ADUC and pulled the list of members from the group

ldap search is very slow

给你一囗甜甜゛ 提交于 2019-12-29 08:16:51
问题 I am using JNDI to connect to the LDAP active directory, and I want to search for users where the name contains the search string, so my search method is as follows: public static List<LDAPUser> searchContactsByName( ExtendedDirContext extendedDirContext, String name) { try { LdapContext ldapContext = extendedDirContext.getLdapContext(); String searchBaseStr = extendedDirContext.getSearchBase(); String sortKey = LDAPAttributes.NAME; ldapContext.setRequestControls(new Control[] { new