LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2009, 10:04 AM   #1
saravana_05
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
ldapsearch query


Hi,

I'm poor in ldapsearch queries.I refer some sites for writing ldapsearch .But Ican't get a clear idea.I'm using RHEL4.
I want to take the users who all are belongs tp passwordExpirtaion time is to july'27'2009.


/usr/ldaptools/bin/ldapsearch -h <hostname> -S attr uid -b "ou=users,o=novell" "passwordExpirationTime=20090727*" >>ids.txt



But its not working,Anyone helps appreciated.
 
Old 07-09-2009, 03:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,598

Rep: Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531Reputation: 1531
Remove the attr from your command:
Code:
/usr/ldaptools/bin/ldapsearch -h <hostname> -S uid -b "ou=users,o=novell" "passwordExpirationTime=20090727*" >>ids.txt
 
  


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
ldapsearch | ldapmodify eantoranz Linux - Software 1 01-28-2013 10:33 PM
ldapsearch to csv file ralinux Linux - General 1 08-18-2008 01:34 PM
script ,ldapsearch,sqlloader felosa_vb Linux - General 1 01-16-2008 08:48 PM
ldapsearch cmontr Programming 4 11-15-2007 05:19 PM
strange ldapsearch error PhillipHuang Linux - General 0 09-19-2006 01:27 AM


All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration