LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-01-2009, 10:43 AM   #1
tpe
Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Suse Linux
Posts: 98

Rep: Reputation: 16
Complex LDAP filter for ldapsearch


I have a sendmail/LDAP email setup.
On that setup each user can create some 'child' accounts. The difference between the master account and it's child is an entry in the LDAP named "manager"

The manager entry the dn of the master account. EG:
For user with email mang@domain.com, the 'manager' entry in LDAP is:

uid=mang@domain.com,ou=domain.com,dc=domain,dc=com

And for his child account child the entry should be the same!

So, I need to find all MASTER accounts. I am not an LDAP expert, so, I need your help. How should I write the ldapsearch filter?

Thank you
 
  


Reply


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
unable to get ldap to bind to Active Directory server, but am able to ldapsearch kcorupe Linux - Server 2 08-03-2012 02:57 AM
Sort attributes by name for each entry in ldapsearch output (ldap database export) llattan Linux - Enterprise 0 04-04-2009 08:50 PM
Dansguardian - Won't filter new addresses added to filter list TechnoBod Linux - Software 1 01-08-2008 01:40 AM
LDAP > ldapsearch doesn't print the entries when bound as normal user cbonar Linux - Server 2 09-22-2007 01:19 PM
Complex firewall/filter/forwarder/more bobtmasse Linux - Security 5 10-21-2003 01:09 AM


All times are GMT -5. The time now is 11:58 PM.

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