Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-30-2008, 06:18 AM   #1
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
OpenLDAP query Active Directory

I am querying AD to get user email address and aliases but it is giving me lots of other information that I don't need. I was wondering if it is be possible to filter the query in slapd.conf to give me what I need.

Here's my slapd.conf

Allow bind_v2
access to dn.base=""
by * read
access to *
by * read
database ldap
suffix "dc=ad3,dc=merog,dc=org"
uri "ldap://"
query_filter=(PROXYADDRESSES :smtp:%s@*)
cachesize 10000
sizelimit unlimited

I am trying to query for PROXYADDRESSES which comes like this: PROXYADDRESSES:

Here's my query:

ldapsearch -x -h -b "dc=ad3,dc=merog,dc=org" cn="user name"

I don't want to use any sed, awk script to achieve the result. Just would like to use openldap itself if that's at all possible.

Thanks for any help.

Last edited by noir911; 04-30-2008 at 06:19 AM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenLDAP vs Active directory compatibility unforkable Linux - Enterprise 2 02-23-2008 06:43 AM
OpenLDAP and Active Directory custangro Linux - Enterprise 1 01-05-2008 01:55 AM
Active Directory vs. OpenLDAP msteiner Linux - Software 1 10-30-2007 12:09 PM
openldap and active directory akismax Linux - Enterprise 1 07-21-2006 05:50 PM
Migrate Active Directory to OpenLDAP mafelipe Linux - Software 0 06-03-2004 09:32 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration