ldap

Mail Storage Quota Checker in C#

We have a requirement to build a tool for users in an Intranet scenario. The tool should check how much percentage of the Mailbox Quota (set in Active Directory) is being used. Currently, they can check their Folder size using Outlook 2003 but this does not show the Quota Limit set for them or the percentage being used. This blog has a...

Managing large user databases for single-signon.

How would you implement a system with the following objectives: Manage authentication, authorization for hundreds of thousands of existing users currently tightly integrated with a 3rd party vendor's application (We want to bust these users out into something we manage and make our apps work against it, plus our 3rd party vendors work ...

How do you authenticate against an Active Directory server using Spring Security?

I'm writing a Spring web application that requires users to login. My company has an Active Directory server that I'd like to make use of for this purpose. However, I'm having trouble using Spring Security to connect to the server. I'm using Spring 2.5.5 and Spring Security 2.0.3, along with Java 1.6. If I change the LDAP URL to the ...

How do I speed up data retrieval from .NET AD within ColdFusion

How can I optimize the following code, which currently takes over 2 minutes to retrieve and loop through 800+ records from a pool of over 100K records, returning 6 fields per record (adds approximately 20 seconds per additional field): <cfset dllPath="C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.DirectoryServices.dll" /> <cfset L...

Is there an ldap C/C++ library that provides fail over?

I'm looking for an LDAP libracy in C or C++ that allows me to specify a list of LDAP hostnames instead of a single hostname. The library should then use the first one it can connect to in case one or more of the servers is/are down. I'm sure it'd be easy to wrap an existing library to create this, but why reinvent the wheel? ...

Querying Active Directory with "SQL"?

I just wonder if anyone knows or made a wrapper around Active Directory to be able to easily query it in .net? Kind of like "LINQ-to-ActiveDirectory" or some SQL Dialect, i.e. to be able to do "SELECT DISTINCT(DEPARTMENT) FROM /Users/SomeOU/AnotherOU" or "SELECT user FROM domain" or whatever. As far as I know, it is possible to query WM...

VB.Net "There is a naming violation" Error with open ldap for creating user

I am trying to use directory services to add a directory entry to an openldap server. The examples I have seen look pretty simple, but I keep getting the error "There is an naming violation". What does this message mean? How do I resolve it? I have included the code, ldif file used to create the person container. Public Function Ldap_...

How to connect to LDAP store with VB6

Hello all, I’ve got a problem with Visual Basic (6) in combination with LDAP. When I try to connect to an LDAP store, I always get errors like ‘Bad Pathname’ or ‘Table does not exist’ (depending on what the code looks like). This is the part of the code I wrote to connect: path = "LDAP://xx.xxx.xxx.xxx:xxx/" Logging.WriteToLogFile "Te...

How can you find available ldap servers from a computer in the same network, but different domain?

My company has code that integrates with activedirectory/LDAP for centralized userid/password login. Currently, the configuration page can only show the LDAP server linked to the Exchange domain the current computer is on. I'd like to list all available LDAP servers, similar to when you go to Windows Explorer and view 'Microsoft Window...

Example client implementation for the Service Location Protocol?

Does anyone know of a good example implementation of the Service Location Protocol that can be build/ran on a windows box? ...

Authenticating against active directory using python + ldap

How do I authenticate against AD using Python + LDAP. I'm currently using the python-ldap library and all it is producing is tears. I can't even bind to perform a simple query: import sys import ldap Server = "ldap://my-ldap-server" DN, Secret, un = sys.argv[1:4] Base = "dc=mydomain,dc=co,dc=uk" Scope = ldap.SCOPE_SUBTREE Filter = "...

App to Change Ldap Password for a JIRA/SVN server

I'm setting up a server to offer JIRA and SVN. I figure, I'll use LDAP to keep the identity management simple. So, before I write one.... is there a good app out there to let users change their ldap password? I want something that lets a user authenticate with ldap and update their password. A form with username, old password, new...

LDAP entire subtree copy

Hi, I am actually new to this forum and I kept trying for a few days to find an easy way to copy an entire LDAP subtree to another tree. Since I couldn't find anything useful, i thought of dropping a question here as well. Does anybody know how to do this programatically ? For normal operations like add, remove, search, I've been using ...

How can I configure Microsoft ADAM to be similar to Active Directory?

I want to put users into an instance of ADAM so that ADAM looks similar to a typical, real, Active Directory server. I'm developing an application that integrates with LDAP. I've tested with OpenLDAP and its core.schema. Now I'd like to test with with Active Directory, but the closest I can get to that using my equipment is by testi...

Authenticating in PHP using LDAP through Active Directory

I'm looking for a way to authenticate users through LDAP with PHP (with Active Directory being the provider). Ideally, it should be able to run on IIS 7 (adLDAP does it on Apache). Anyone had done anything similar, with success? Edit: I'd prefer a library/class with code that's ready to go... It'd be silly to invent the wheel when some...

I want to use an LDAP client here at work to talk to Active Directory. How can I discover on my own the IP I should be aiming at?

I know I could just ask, but that would involve bureaucratic entanglements. ...

bind Linux to Active Directory using kerberos

We are trying to bind a Linux machine (debian 4.0) to W2k3 AD. We have configured kerberos properly so that we can get TGTs. And users authenticate properly. However, PAM seems to be the sticky wicket. For example when we try to SSH to the linux machine as one of the AD users, the authentication succeeds (as per the auth.log) but I n...

Updating OpenLDAP using a Java class

I need to be able to update an attribute on OpenLDAP using a Java class. I've taken a stab at creating an LDAP entry, but it looks like a Java object instead of a proper LDAP entry. (Grrrr) import javax.naming.Context; import javax.naming.InitialContext; import javax.naming.NamingException; import javax.naming.NameAlreadyBoundExceptio...

Implementing LDAP compliance

I'm working profesionally on a php web application which contains contacts, among other data. I was wondering how hard it would be to make this data available to external programs using the LDAP protocol. Are there specific tools out there for this? I couldn't really find anything, but I can't imagine I'm the first to think about this. ...

Getting all direct Reports from Active Directory

I'm trying to get all the direct reports of a User through Active Directory, recursively. So given a user, i will end up with a list of all users who have this person as manager or who have a person as manager who has a person as manager ... who eventually has the input user as manager. My current attempt is rather slow: private static...