ldap

What is the optimal LDAP Query or Queries for searching for users by name?

Given the input from a free-form search field, I need to query the LDAP system and return user records. Our LDAP schema includes a "preferredName". Possible valid inputs include: "LastName", "GivenName", "PreferredName LastName", "LastName, PreferredName", "GivenName LastName", etc., including such variations as multiple-word last names ...

How can I use Perl to test for Win32 group membership when group contains nested groups?

I'm trying to use Perl to determine if a Windows users is a member of a Windows group, if the the group contains nested groups. I've tried using Win32::NetAdmin::GroupIsMember(), but it only works if the user a direct member of the group. I'm not a AD or LDAP expert, but the examples I googled for exhibit the same behavior. For exampl...

LDAP + ASP Classic + ADODB = 2147217865. (Using LDAP to talk to Active Directory in ASP Classic. Error:2147217865)

I need to use LDAP to authenticate users for an old ASP website. I have been using the code found here. It looks like this: <%@ LANGUAGE=VBSCRIPT %> <%Option Explicit%> <% Function getADUserInfo(strUID) on error resume next strGeneralLookupError = false strBase = "<LDAP://DC=[DOMAIN], DC=[DOMAIN EXETENTION]>" strFilte...

Django : looking for a good LDAP manipulation library

Hi ! I am looking for a good ldap library on Django, that would allow me to manage my ldap server : adding, modifying, deleting entries for groups, users, and all kind of objects The library django-ldapdb looked promising, it offers a Model base class that can be used to declare ldap objects in a Django fashion (which is what we idea...

Need to modify LDAP code to use proxy server

I have a simple java LDAP search client that uses URL and port to connect. The problem is that I am unable to access the server through my companies firewall and need to pass through a proxy server. Has anyone ever had to come up with this kind of workaround? ...

Cannot specify which attributes to return when querying an LDAP store.

I am using the DirectoryServices.Protocols.SearchRequest type to make a request against an OpenDS store to retrieve some entries. I want to be able to control which attributes are returned for the entries in the response and thought the "Attributes" property would do it. However that property does not have a setter so I cannot do somethi...

Data Structure behind LDAP Database

What kind of Computer Data Structure is being used internally in a LDAP Database? Is it Binary Tree, B+ tree or Trei or something else? ...

LDAP JBoss and Drupal authentication

Setup JBoss using LdapExtLoginModule to auth to Microsoft ADAM (Lightweight Directory Server) Drupal using ldap_integration module to auth to the same Microsoft ADAM above Url within JBoss realm that requires user to auth (again) using HTTP Basic Auth Use Case User logs in to Drupal , auth'ed by ADAM. At this point Drupal only kno...

ldap addressbook

I want to create a ldap address book that utilizes a hierarchy to provide some of the information that would normally be filled for each person. so it would be laid out like this: ou: addressbook o: Toy Company fax: 1-888-555-4646 postalCode: H0H 0H0 l: North Pole ou: reindeer cn: Rudolph...

Search issues with PHP and LDAP on Windows 2008

I am trying to search through LDAP user entries on a Windows 2008 Server using PHP - PEAR's NET_LDAP2 package to be specific. I have successfully connected to the server as well as bind a user; however, searching for a user results in LDAP_OPERATIONS_ERROR. The most I can find as a solution on this is that it's hard to nail down a solu...

LDAP validation using email address?

I am using LDAP validation , now LDAP id am using and its working fine. I want to use email instead of ldap id. How can i add that. What will be LDAP config for this ? now this is working $username='ou=users,o=example.com'; this is not working $username='mail='.$user.',ou=users,o=example.com'; how to use email for ldap validation ...

Trying to create a new Active Directory user, Invoke("SetPassword",pwd) throws "The RPC server is unavailable"

I'm trying to create a new user on my development active directory server using .NET System.DirectoryServices namespace. I try using the following code: DirectoryEntry dirEntry = new DirectoryEntry(path, "TESTDOM\\Administrator", "2109password", AuthenticationTypes.Secure | AuthenticationTypes.ServerBind); object o = dirEntry.NativeOb...

LDAP: How to get all users and groups from Active Directory

I am trying to get all the users and their associated groups from an Active Directory server, using a LDAP query. Apparently, Active Directory doesn't give me the primary group of the users. For example, this search: (objectclass=user) produces this result: # Test User, Users, sub.domain.net dn: CN=Test User,CN=Users,DC=sub,DC=domain...

How do I specify LDAP connection pooling for JBOSS when launching via ant?

Hi all, we use LDAP for authentication in JBoss and I've been trying to play around with the LDAP connection pooling, but so far have had no success in getting it to work. I'm launching JBoss via an ant target and (based on a number of articles I've read) this contains a series of <jvmarg> entires like so: <java classname="org.jboss.M...

Different JAAS Ldap login module implementations?

I have been implementing an out of the box JAAS LdapLoginModule for a Java 1.6 application. The implementation has gone smoothly except for a deployment to an IBM AIX platform. It would appear that the IBM Java runtime uses a different class path for LdapLoginModule. The Sun class path is: com.sun.security.auth.module.LdapLoginModule ...

Writing own LDAP controller in php

Hi, to centralize my address books I'm thinking of doing that via a LDAP service. As I haven't found a free service somewhere, I guess i have to implement this on my own. So the basic idea is to implement a search (which is restricted to contacts only) and a small filtering capability. The search looks the records up in an backend mysql...

There is no return value from ldap_connect() php

Hello, Currently, I'm working on PHP web application on wamp environment. I'm quite new with ldap and right now, I have a pretty simple problem about it. After I enabled LDAP support in PHP. I have tried to call ldap function with the following code: <?php // LDAP variables $ldaphost = "ldap.example.com"; // your ldap servers $ldap...

Is there a microsoft API that to check whether a given IP address has access to an smtp connector in Microsoft Exchange?

I would like to be able to check, programmatically in c++, as simply as possible whether a given ip address has access on an SMTP connector. In MS exchange management console you can check this from the "receive mail from remote servers that have these IP addresses:" section of the SMTP connector properties->Network. So far the best I ...

Fetching LDAP Schema in Java

Hello, I'm trying to fetch the schema of an LDAP entity. I've been advised to use Novell's open sourced LDAP library, which seems to be quite good. I found an example called GetAttributeSchema, which sounds really good, but I think I've got a parameter set incorrectly or something. The results I'm getting are: ou ( 2.5.4.11 NA...

How to identify LDAP errors from exceptions thrown by C# System.DirectoryService calls?

I am writing a .NET application to query an LDAP server, and I can't figure out how to look at exceptions and figure out what happened on the LDAP end. I'm using DirectoryServices, and trying to avoid anything that's specific to ActiveDirectory. I create a DirectorySearcher, then do try { SearchResult result = searcher.FindOne()...