LinuxQuestions.org
Help answer threads with 0 replies.
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, 09: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, 02:06 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,732

Rep: Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584Reputation: 1584
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 09:33 PM
ldapsearch to csv file ralinux Linux - General 1 08-18-2008 12:34 PM
script ,ldapsearch,sqlloader felosa_vb Linux - General 1 01-16-2008 07:48 PM
ldapsearch cmontr Programming 4 11-15-2007 04:19 PM
strange ldapsearch error PhillipHuang Linux - General 0 09-19-2006 12:27 AM


All times are GMT -5. The time now is 11:35 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