Welcome Guest [Log In] [Register]
Bookmark and Share
Welcome to LawsonTalk. We hope you enjoy your visit.


You're currently viewing our forum as a guest. This means you are limited to certain areas of the board and there are some features you can't use. If you join our community, you'll be able to access member-only sections, and use many member-only features such as customizing your profile, sending personal messages, and voting in polls. Registration is simple, fast, and completely free. After registration, please check your e-mail within 24 hours for an message from us, read it, and reply to it.


Join our community!


If you're already a member please log in to your account to access all of our features:

Username:   Password:
Add Reply
ldapsearch examples?
Topic Started: Nov 11 2009, 08:56 AM (515 Views)
MichaelLandis
Member
[ *  * ]
I'm on LSF 9.0.1 under AIX 5.3, using ADAM as my LDAP repository. I have ldapsearch on my AIX box - apparently as part of my Oracle installation.

I'm trying to use ldapsearch to query ADAM, but all I ever get back is the syntax boilerplate on how to use ldapsearch - so OBVIOUSLY I don't know what I'm doing.

I tried:

ldapsearch -h myadamserver.mydomain.com -b "cn=lwsn,dc=ourdc"

and a few other variations, all with the same Do-Not-Pass-Go results.

Anyone out there have some examples of how to get output from ADAM using Oracle's ldapsearch on AIX?

TIA,

Michael
Offline Profile Quote Post Goto Top
 
area51
Super Member
[ *  *  *  *  * ]
Any particular reason you need to use the Oracle utility? Can you use something else?
Offline Profile Quote Post Goto Top
 
MichaelLandis
Member
[ *  * ]
I'm looking for a command-line util that I can embed in a ksh script. I've seen references to ldapsearch on this board and elsewhere, and just happen to have this one installed on the server. It appears from multiple posts that folks are using this tool - but none of them have mentioned specifics. If you have other/better suggestions, I'm certainly open.
Offline Profile Quote Post Goto Top
 
schroncd
Member Avatar
Lawson Technorati
[ *  *  *  *  *  *  *  * ]
ldapsearch is a general tool that comes with every ldap compliant system. The one Oracle delivers is essentially the same as the one that comes with Tivoli DS - or the Windows version with ADAM

This Link leads to a very good page that explains basic syntax. Searching Google will help fill in the gaps
Offline Profile Quote Post Goto Top
 
mivankovich
Member Avatar
Advanced Member
[ *  *  * ]
Hi Michael! - I did a search for you on Google that came back with a good hit using the LDIFDE command-line utility....

http://technet.microsoft.com/en-us/library/aa996205(EXCHG.65).aspx#DoingASearchUsingLDIFE

Hope this helps...
Offline Profile Quote Post Goto Top
 
area51
Super Member
[ *  *  *  *  * ]
You could also try the Perl NET::Ldap library.

http://ldap.perl.org/
http://search.cpan.org/~gbarr/perl-ldap-0.39/lib/Net/LDAP.pod
http://www.linuxjournal.com/article/7086

There is a lot of information and I'm sure there is already prebuilt perl scripts that may help.
Offline Profile Quote Post Goto Top
 
MichaelLandis
Member
[ *  * ]
Thanks for the misc replies. I've spent hours on google, and tried many variations with no success. I found an IBM install of ldapsearch on my machine as well as my Oracle rendition, but I get the same results with it. I will note that when connecting via jexplorer, I must authenticate to my LDAP server with jexplorer's Security box. Assuming then that I need to authenticate with ldapsearch, I've tried the -D and -w options as well - still no joy.

Mark - I'm on AIX - not Windows, but thanks for thinkin' of me!

Any other ideas or suggestions?
Offline Profile Quote Post Goto Top
 
« Previous Topic · Security · Next Topic »
Add Reply