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

  • wai_wai9339
  • Novice
  • Novice
  • wai_wai9339
  • Posts: 31

Post 3+ Months Ago

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
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • MISC/A++
  • Expert
  • Expert
  • User avatar
  • Posts: 508
  • Loc: UnderGround

Post 3+ Months Ago

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
  • Posts: 2700
  • Loc: Somewhere outside the box in Sarasota, FL.

Post 3+ Months Ago

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.
  • MISC/A++
  • Expert
  • Expert
  • User avatar
  • Posts: 508
  • Loc: UnderGround

Post 3+ Months Ago

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 54 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.