old-www/LDP/solrhe/Securing-Optimizing-Linux-R.../chap26sec218.html

375 lines
6.1 KiB
HTML

<HTML
><HEAD
><TITLE
>OpenLDAP Users Tools</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.60"><LINK
REL="HOME"
TITLE="Securing and Optimizing Linux"
HREF="index.html"><LINK
REL="UP"
TITLE="Linux OpenLDAP Server"
HREF="net-oLDAP.html"><LINK
REL="PREVIOUS"
TITLE="Create the LDMB backend database on-line"
HREF="chap26sec217.html"><LINK
REL="NEXT"
TITLE="Installed files"
HREF="chap26sec219.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Securing and Optimizing Linux: RedHat Edition -A Hands on Guide</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="chap26sec217.html"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 26. Linux OpenLDAP Server</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="chap26sec219.html"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="AEN16571"
>26.9. OpenLDAP Users Tools</A
></H1
><P
>&#13; To Search on <SPAN
CLASS="acronym"
>LDAP</SPAN
> directory server for entries, the ldapsearch utility searches through the backend database of <SPAN
CLASS="acronym"
>LDAP</SPAN
> directory for information you have requested.
You can use the following command:
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="screen"
>&#13; [root@deep] /# <B
CLASS="command"
>ldapsearch</B
> -b dn attrs
[root@deep] /# <B
CLASS="command"
>ldapsearch</B
> -b o=openna, c=com cn=europe*
</PRE
></TD
></TR
></TABLE
>
<TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="100%"
><TR
><TD
><PRE
CLASS="literallayout"
><TT
CLASS="computeroutput"
>&#13; cn=Europe Mourani, o=openna, c=com
cn=Europe Mourani
sn=Mourani
mail=emourani@old.com
description=Marketing relation
objectClass=person
</TT
></PRE
></TD
></TR
></TABLE
>
This command will retrieve all entries and values for the name europe and will print the result to standard output in your terminal.
</P
><P
>&#13; Some possible uses of OpenLDAP software, for instance OpenLDAP can be used as:
<P
></P
><OL
TYPE="I"
><LI
><P
>&#13; Web Catalogue Server.
</P
></LI
><LI
><P
>&#13; White Pages Server.
</P
></LI
><LI
><P
>&#13; Certificate Server.
</P
></LI
><LI
><P
>&#13; An Access Control Server.
</P
></LI
><LI
><P
>&#13; Network Name Server.
</P
></LI
></OL
>
</P
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN16593"
>26.9.1. The Netscape Address Book client for <SPAN
CLASS="acronym"
>LDAP</SPAN
></A
></H2
><P
>&#13; If you have Netscape installed on a Linux workstation, or even another kind of operating system, you can use its Address Book features to access the <SPAN
CLASS="acronym"
>LDAP</SPAN
> Directory Server you have just installed
on Linux and query your directory server for information like you do with the <B
CLASS="command"
>ldapsearch</B
> command tool on Linux.
</P
><P
>&#13; If you are interested in doing that, follow the simple steps below:
<P
></P
><OL
TYPE="1"
><LI
><P
>&#13; Open Netscape Communicator
</P
></LI
><LI
><P
>&#13; Go to Communicator menu
</P
></LI
><LI
><P
>&#13; Open the Address Book
</P
></LI
><LI
><P
>&#13; Go to File menu
</P
></LI
><LI
><P
>&#13; Click on New Directory
</P
></LI
><LI
><P
>&#13; Fill the boxes with your server information
</P
></LI
></OL
>
</P
><DIV
CLASS="example"
><A
NAME="AEN16613"
></A
><P
><B
>Example 26-4. Address Book</B
></P
><P
>&#13; <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
>&#13; <SPAN
CLASS="guimenuitem"
>Description:</SPAN
> <TT
CLASS="userinput"
><B
>Open Network Architecture</B
></TT
>
</TD
></TR
><TR
><TD
>&#13; <SPAN
CLASS="guimenuitem"
>LDAP Server:</SPAN
> <TT
CLASS="userinput"
><B
>208.164.186.3</B
></TT
>
</TD
></TR
><TR
><TD
>&#13; <SPAN
CLASS="guimenuitem"
>Server Root:</SPAN
> <TT
CLASS="userinput"
><B
>o=openna, c=com</B
></TT
>
</TD
></TR
></TBODY
></TABLE
><P
></P
>
</P
></DIV
><P
>&#13; Now all you have to do is to make some queries to your <SPAN
CLASS="acronym"
>LDAP</SPAN
> Directory Server on Linux, by using the box named <SPAN
CLASS="guimenu"
>Show names Containing:</SPAN
> to start your search, and clicking on
the button <SPAN
CLASS="guimenuitem"
>Search For:</SPAN
> to get the results.
</P
><P
>&#13; <DIV
CLASS="mediaobject"
><P
><IMG
SRC="./images/LDAP-AddressBook.gif"
ALT="Address Book"
></IMG
><DIV
CLASS="caption"
><P
>The Netscape Address Book Client Program.</P
></DIV
></P
></DIV
>
</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="chap26sec217.html"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="chap26sec219.html"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Create the LDMB backend database on-line</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="net-oLDAP.html"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Installed files</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>