ldap

How we can retrieve user information from Active Directory?

For now, I would like to know how we can retrieve user information from Active Directiory by using PHP Command. Can you give some example or any suggestion ? ...

What permissions are required for enumerating users groups in Active Directory

I have a .net web application which needs to obtain the groups a user is a member of in Active Directory. Todo this I am using the memberOf attribute on the users records. I need to know the permissions required to read this attribute on all users records. Currently I am getting inconsistent results when trying to read this attribute...

Is there a neater way to analyse the AuthenticationException for the error code?

Is there a neater way to check the javax.naming.AuthenticationException (or spring) for the main failure reason? The different errors are desciribed in LDAP Wiki (Binding Errors). The AuthenticationException provides no sufficient API to determine easily the error code. The only content is the exception message. [LDAP: error code 49 - ...

Apache Shiro combined with LDAP

Hi guys, I integrated Apache Shiro with a dummy user and it works just fine! But this framework has no tutorials online?! It's very hard to get into it as a beginner. Can somebody help me integrating a ldap integration. I have only found information that it is not that difficult :-/ I started with configuring the realm: [main] ...

How to validate an LDIF?

How to validate an LDIF? Similar to XML, XMLSchema and Schematron are there any libraries to validate an LDIF with an LDAP schema? Thanks, Chenz ...

Seam LDAP, update user details

Hi, I am trying to update user details like firstName, lastName, emailAddress especially using Seam's IdentityManager API bit do not see any method for updating the LDAP. Is there a reason for not providing LDAP update method and if so what is the best way to update the details. Versions used: Seam-2-1.2 JBoss-4.2.3 openLDAP Thanks. ...

com.sun.jndi.ldap.LdapCtxFactory : class not found in servlet

Good morning / afternoon, I have a problem with LDAP connector, when I use it in my unit test no problem, but when it was called in a application server environment, it seems to have classpath issue, but this class is delivred with java 1.6.17 (version I use). I use spring-ldap to initiate my connection. public static LdapContextSourc...

How to add OU into LDAP using JNDI

Hi, I am very new to LDAP and JNDI. Basically i would like to add a new OU into LDAP from JNDI. My LDAP server is setup from OpenDS. Here's my code: public static void main(String args[]) { String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory"; String MY_HOST = "ldap://localhost:1389"; String MGR_DN = "cn=Directory Manager"; ...

PermissiveModifyControl throws DirectoryOperationException in C# LDAP

Using the System.DirectoryServices.Protocols namespace to add/modify attributes on an Active Directory group. Code: public void UpdateProperties(Dictionary<string, string> Properties) { List<DirectoryAttributeModification> directoryAttributeModifications; // ... Code to convert Properties dictionary to directoryAttributeModi...

OpenLdap proxy CN case-sensitive

Hi, I am having a web app which needs to cache a notes ldap. For that the IT installed Openldap which will be queried from the web app. Basically OpenLdap Proxy. now CN=My User, O=Corp comes over as cn=My User, o=Corp... (notice the case CN vs. cn, etc) Can I adjust something in slapd.conf that tells my mapping to be case-sensitive? ...

LDAP user password authentication using JNDI

public static void main(String[] args) { String INITCTX = "com.sun.jndi.ldap.LdapCtxFactory"; String MY_HOST = "ldap://Localhost:1389"; String MGR_DN = "cn=John,ou=Users,o=IT,dc=QuizPortal"; String MGR_PW = "password"; //Identify service provider to use Hashtable env = new Hashtable(); env.put(Cont...

Any third party tools for messaging architecture/infrastructure which can be used for existing applications?

Hi, We are looking to add messaging infrastructure support to our existing applications. Something like emailing through existing mail clients like exchange,outlook,lotus notes,SMTP etc. , manage address books with integration with LDAP, send mobile texts (SMS) (maybe via email to sms gateways), send secured emails to users. Any one kno...

Using LDAP across Servers without copying the necessary Jars

LDAP authentication in different J2EE servers is different, unfortunately. Eg. If I develop a code in JBoss for LDAP authentication with LDAP login module of JBoss, 99% chances are that it will not run in WebSphere or any other J2EE containers. Maybe if I import that library jar files, it might work. I’m looking at just porting the app...

How to ensure LDAP connection over SSL from JNDI

Hi, I am new to LDAP and JNDI. I have setup a LDAP server with SSL using OpenDS and a client which uses JNDI to access LDAP. What can I do to ensure that I am really communicating via SSL to the LDAP server? This is because I don't really see any difference from the client side when i am trying to accessing LDAP via SSL and without. ...

LDAP using UserPrincipal missing a few fields in ActiveDirectory

I am accessing the Active Directory to fetch the employee Id from the Directory Server from my ASP.Net MVC account using the below code. I am able to get the Given Name,SurName and voice telephone number but not the Employee ID.But I know for sure that it is there. I am developing in one machine and deploying in another so can I by som...

Get calendar events from Calendar (possibly using ActiveDirectory)

Hi, I need to start extracting events in a microsoft calendar. I've never done this before, so just want pointing in the right direction. Does anyone know if this is possible using Active directory? Anyone have any examples of where this has been done before? Thanks, Ian ...

LDAP connection problem with self-signed cert

The code I am using: # Create LDAPObject instance conn = ldap.initialize(url) conn.protocol_version=ldap.VERSION3 conn.simple_bind_s(binddn,bindpw) # This raises: # ldap.SERVER_DOWN: {'info': 'error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed', 'desc': "Can't contact LDAP server"} When I use ldap:...

Spring security LDAP connection

Hello i am new to spring. I am trying to connect to ActiveDirectory from my server using Spring-security1.3.0 spring2.0.1. I am using the documentation example (18.4.5) I can see the the LdapAuthenticationProvider object is constructed at page load in the application-context.xml. few Questions: I wonder where and when will the answer f...

spring ldap outofmemory unable to create new native thread

HTTP Status 500 - -------------------------------------------------------------------------------- type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: Filter execution threw an exception root cause java...

LDAP connection with PHP web-application

We have a web-application, hosted externally. One client now asks for a SSO (single sign on) solution and suggested a LDAP link with our web-application. Our website uses PHP. We prefer not to use something like VPN, but we have no experience at all with this stuff. Is it possible to use Windows authentication and somehow automatically...