ldapsearch command help ...... someone help please ~~ urgent

  • wai_wai9339
  • Novice
  • Novice
  • No Avatar
  • Joined: May 24, 2005
  • Posts: 31
  • Status: Offline

Post May 29th, 2005, 1:19 am

May I know how to display a simply authentication with multiple request?

like: I would like to view all the data consists of "cn=100" and "gidNumber=200" .... how to express in OR and AND ??? I had been suffered for it....

thanks ...
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 29th, 2005, 1:19 am

  • MISC/A++
  • Expert
  • Expert
  • User avatar
  • Joined: Sep 08, 2004
  • Posts: 508
  • Loc: UnderGround
  • Status: Offline

Post May 29th, 2005, 2:42 am

Let me get clearly, are you trying to perform a search for a file or a content of file?
  • Daemonguy
  • Moderator
  • Web Master
  • User avatar
  • Joined: Jan 23, 2004
  • Posts: 2673
  • Loc: Somewhere outside the box in Sarasota, FL.
  • Status: Offline

Post May 29th, 2005, 5:12 am

No, this person is trying to query the LDAP (Lightweight Directory Access Protocol) server for a list of authenticated users in a particular group.

I will assume command line, and of course your references do not make a complete schema, so you'll have to fill it in with other data, but I imagine something like this should work;

ldapsearch -LLL -b "c=<your container>" "(&(|(cn=100)(gidNumber=200)))"

As I said, there's a great deal of your schema missing, which I am sure is for reasons of obfuscation.

I suggest reading the ldapsearch man page.

Cheers.
"It's always a long day, 86,400 won't fit into a short."
  • MISC/A++
  • Expert
  • Expert
  • User avatar
  • Joined: Sep 08, 2004
  • Posts: 508
  • Loc: UnderGround
  • Status: Offline

Post May 29th, 2005, 5:33 am

ooops, Sorry I got it all wrong, Thanks Daemonguy.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 77 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.