⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faq.html

📁 ldapbrower ,to operate openldap
💻 HTML
📖 第 1 页 / 共 2 页
字号:

<ul>
<li>
<b><i>2.8.2: </i></b>Specifies the path of the LBE configuration file (<i>lbe.properties</i>)
to load. By default, the Browser will try to load the configuration file
from the '<i>.be</i>' directory under user's home directory. See <a href="#What is the lbe.properties">What
is lbe.properties file?</a> question for details.</li>

<li>
<b><i>2.8.1:</i></b> Specifies the name of the configuration file to load.
It is resolved from the <b>base</b> location. If not set, the application
will try to load the default configuration file called <i>browser.cfg</i>.
<i>(example:
-config nds.cfg)</i></li>
</ul>
</ul>

<hr ALIGN=LEFT WIDTH="100%">
<br><b><font size=+1>Applet Questions</font></b>
<p><a NAME="How do I run the Browser as an"></a><b>How do I run the Browser
as an applet?</b>
<p>The LDAP Browser/Editor can be run as an applet within a web browser
(Netscape Navigator or Microsoft Internet Explorer) using the <a href="http://java.sun.com/products/plugin/">Java
Plug-in</a>. The Browser can be run either as a signed or unsigned applet.
If the Browser is running as an unsigned applet it can only access the
ldap servers on the server that the applet was downloaded from. If the
Browser is running as a trusted signed applet it can access any ldap server
on the network or the internet.
<br>The HTML page that will contain the applet needs to be modified to
use the Java Plug-in. A sample HTML page is included with binary distribution
of the Browser in the <i>applet</i> directory. Please see the <a href="http://java.sun.com/products/plugin/1.3/docs/index.docs.html">Java
Plug-in documentation</a> for the modification details.
<p>To run the Browser as an unsigned applet just extract the binary distribution
into some web directory <i>(e.g. ~/public_html/ldapbrowser/)</i> and copy
the <i>applet/applet.html</i> file into the browser root directory (<i>e.g.
~/public_html/ldapbrowser/). </i>Make sure to set the right permissions
to all the files and directories, and then point your browser to the <i>applet.html</i>
file.
<p>To run the Browser as a signed applet you can follow the same directions
as above and then you must sign <b>all</b> the jar files (in the <i>lib</i>
directory and the <i>lbe.jar </i>file) with an object signing certificate.
Please see the <a href="http://www.javasoft.com/products/plugin/1.3/docs/index.docs.html">Java
Plug-in documentation</a> for details for this step.
<p><a NAME="What parameters can I pass to the"></a><b>What parameters I
can pass to the applet?</b>
<p>There is a number of parameters that can be passed to the applet:
<ul>
<li>
<b>width</b></li>

<ul>
<li>
It sets the width of the Browser window. Defaults to 600 if not set. Example:</li>

<pre>&lt;PARAM NAME=width VALUE=600></pre>
</ul>

<li>
<b>height</b></li>

<ul>
<li>
It sets the height of the Browser window. Defaults to 370 if not set. Example:</li>

<pre>&lt;PARAM NAME=height VALUE=400></pre>
</ul>

<li>
<b>base</b></li>

<ul>
<li>
It sets the base location of the Browser where the templates, the help
files, and the session files will be resolved from. Must be in form of
URL. If the base location is not set, the location where the browser was
loaded from will be used. The applet must have access to the specified
base url. Example:</li>

<pre>&lt;PARAM NAME=BASE VALUE="http://myserver.com/ldapbrowser"></pre>
</ul>

<li>
<b>config</b></li>

<ul>
<li>
<b><i>2.8.2:</i></b> Specifies the location of the LBE configuration file
(lbe.properties) to load. By default, the Browser will try to load the
configuration file from the '<i>.be</i>' directory under user's home directory.
See <a href="#What is the lbe.properties">What is lbe.properties file?</a>
question for details. Example:</li>

<pre>&lt;PARAM NAME=config VALUE="lbe.properties"></pre>

<li>
<b><i>2.8.1</i></b>: Specifies the name of the configuration file to load.
It is resolved from the <b>base</b> location. If not set, the applet will
try to load the default configuration file called <i>browser.cfg</i>. Example:</li>

<pre>&lt;PARAM NAME=config VALUE="nds.cfg"></pre>
</ul>

<li>
<b>dir</b></li>

<ul>
<li>
Specifies the local directory where the session files will be loaded from.
The applet must have access to the specified directory. Example:</li>

<pre>&lt;PARAM NAME=dir VALUE="C:\ldapbrowser"></pre>
</ul>

<li>
<b>window</b></li>

<ul>
<li>
Specifies if the Browser should run in a panel within the web browser or
in an external window. By default, the Browser runs within the web browser
window. If set to '<i>frame</i>' the Browser will run in an external window.
If set to '<i>both</i>', the user will be able to switch the Browser dynamically
between the web browser and an external window. Example:</li>

<pre>&lt;PARAM NAME=window VALUE="both"></pre>
</ul>

<li>
<b>debug</b></li>

<ul>
<li>
It enables the debug level of the Browser. This parameter takes exactly
the same values as described in this <a href="#How do I enable debugging for the LDAP">question</a>.
Example:</li>

<pre>&lt;PARAM NAME=debug VALUE="ldap:ssl"></pre>
</ul>
</ul>
<a NAME="How do I debug the Browser as an"></a><b>How do I debug the Browser
as an applet?</b>
<p>To debug the Browser as an applet first make sure to enable the Java
Plug-in Console. It can be enabled through the Java Plug-in Control Panel.
Once the console is enabled, you will see the console window appear when
Java Plug-in is used in the browser. In addition you can also enable the
Browser applet debugging by setting the debug parameter as described in
the <a href="#What parameters can I pass to the">above</a> question.
<p>
<hr ALIGN=LEFT WIDTH="100%">
<br><b><font size=+1>Attribute Viewers/Editor Questions</font></b>
<p><a NAME="What are attribute"></a><b>What are attribute viewers/editors?</b>
<p>The attribute viewer/editor is a means of displaying and/or editing
the contents of an attribute. Each attribute can contain a different value
that needs to be represented differently. For example, a 'jpegphoto' attribute
contains an image and an 'audio' attribute contains a sound and a 'name'
attribute contains some string. These three need to have different visual
representations. In the case of the image, the actual image might be displayed.
In the case of the sound, the sound might be played automatically or when
a play button is pressed. In the case of the name attribute a textbox with
the string might be displayed. The LDAP Browser/Editor allows users to
customize the viewers/editors for any attribute.
<p><a NAME="What attribute viewers/editors are distributed"></a><b>What
attribute viewers/editors are distributed with the Browser?</b>
<p>The following editors are currently distributed with the browser:
<ul>
<li>
<b>ImageEditor</b></li>

<ul>
<li>
allows the display of image files such as <b>JPEG</b> and <b>GIF</b>.</li>
</ul>

<li>
<b>CertificateEditor2</b></li>

<ul>
<li>
allows the display of <b>X.509</b> certificates.</li>
</ul>

<li>
<b>Password Editor</b></li>

<ul>
<li>
allows for generating and verifying <b>MD5</b>, <b>SHA</b>, and <b>Unix
Crypt</b> passwords.</li>
</ul>

<li>
<b>ControlViewer</b></li>

<ul>
<li>
allows for displaying friendly names of the LDAP controls contained in
the Root DSE.</li>
</ul>

<li>
<b>ExtBinaryEditor</b> (experimental in 2.8.1)</li>

<ul>
<li>
allows for executing external applications to view the contents of an attribute.</li>
</ul>

<li>
<b>ExtStringEditor</b> (experimental in 2.8.1)</li>

<ul>
<li>
allows for executing external applications to view the contents of an attribute.</li>
</ul>

<li>
<b>SoundEditor</b></li>

<ul>
<li>
allows the playing of sound files such as <b>AIFF</b>, <b>AU</b>, <b>WAV</b>,
<b>TYPE
0 MIDI</b>, <b>TYPE 1 MIDI</b> and <b>RMF</b>.</li>
</ul>
</ul>
<a NAME="How do I set default algorithm for the"></a><b>How do I set default
algorithm for the Password Editor?</b>
<p>By default the Password Editor will generate a new password using the
same algorithm as the algorithm used in the existing password. To force
the editor to always generate a specific type of password edit the <i>attributes.config</i>
file and add following arguments to the Password Editor line:
<pre>-algorithm [algorithmType] -force</pre>
where <i>algorithmType</i> is one of following: Crypt, MD5 or SHA. For
example, an entry for userpassword in my config file looks like following:
<pre>userpassword=binary,lbe.editor.PasswordEditor -algorithm crypt -force</pre>
Also, make sure that your server is configured to accept the algorithm
specified.
<p><a NAME="What is the ExtBinaryEditor and how can I use"></a><b>What
is the ExtBinaryEditor and how can I use it?</b>
<p>The <i>ExtBinaryEditor</i> is a generic editor for binary attributes
that allows for launching external applications to view the contents of
the attribute. You can configure the <i>ExtBinaryEditor</i> to launch an
external application to view the certificate by adding the following arguments
to the <i>ExtBinaryEditor</i> line in the <i>attributes.config</i> file:
<pre>-ext -extcmd "command {0}"</pre>
where <i>command </i>is an application to execute and <i>{0} </i>is an
argument to the application. The argument is a filename that contains the
data of the selected attribute.
<br>Example:
<pre>certificateRevocationList=binary,lbe.editor.ExtBinaryEditor -ext -extcmd "rundll32.exe cryptext.dll,CryptExtOpenCRL {0}"</pre>
The above example will allow to pass the data of the <i>certificateRevocationList</i>
attribute to Windows default CRL viewer. (This assumes all the necessary
software is installed)
<p><a NAME="What is the ExtStringViewer and how can I use"></a><b>What
is the ExtStringViewer and how can I use it?</b>
<p>The <i>ExtStringViewer</i> is a generic viewer for the regular attributes
that allows for passing the attribute value to an external application.
For example, it could be used to pass an email address to mail application.
It is used and configured the same as the <i>ExtBinaryEditor</i> where
the only difference is that the <i>{0}</i> argument is the actual value
of the selected attribute. Please see the <a href="#What is the ExtBinaryEditor and how can I use">question</a>
about the <i>ExtBinaryEditor</i> for details.
<br>The following example will pass the email address stored in the mail
attribute to Outlook Express on Windows. (This assumes all the necessary
software is installed)
<pre>mail=string,lbe.editor.ExtStringViewer -ext -extcmd "C:\\Program Files\\Outlook Express\\msimn.exe /mailurl:mailto:{0}"</pre>
<a NAME="How can I configure the CertificateEditor2 to"></a><b>How can
I configure the CertificateEditor2 to launch an external application to
view the certificate?</b>
<p>You can configure the <i>CertificateEditor2</i> to launch an external
application to view the certificate in the same way as you configure the<i>
ExtBinaryEditor</i>. Please see the <a href="#What is the ExtBinaryEditor and how can I use">question</a>
about the <i>ExtBinaryEditor</i> for details.
<br>The following example will pass the certificate to Windows certificate
wizard: (This assumes all the necessary software is installed)
<pre>usercertificate=binary,lbe.editor.CertificateEditor2 -ext -extcmd "rundll32.exe cryptext.dll,CryptExtOpenCER {0}"</pre>
<a NAME="How do I write a custom attribute"></a><b>How do I write a custom
attribute viewer/editor?</b>
<p>Two things:
<blockquote>1. Extend some JComponent (from SwingSet) e.g. JPanel, JTextField,
JTable.
<br>2. Implement the AttributeEditor interface.
<p>or
<p>1. Extend BinaryEditor (for binary values) or DefaultEditor (for string
values) or any other built-in editor.
<br>2. Override needed methods.</blockquote>

<p><br>
<hr ALIGN=LEFT WIDTH="100%">
<br><b><font size=+1>SSL Questions</font></b>
<p><a NAME="How do I enable the SSL support in the"></a><b>How do I enable
the SSL support in the Browser?</b>
<p>The Browser is closely integrated with the JSSE library from Sun. It
is a free pure Java SSL library.
<br>To enable the SSL support in the Browser do the following:
<ol>
<li>
Download JSSE from: <a href="http://java.sun.com/products/jsse/">http://java.sun.com/products/jsse.</a></li>

<li>
Install the JSSE package:</li>

<ul>
<li>
either by following the <a href="http://java.sun.com/products/jsse/install.html">general
installation instructions</a>, or by</li>

<li>
copying the <i>jnet.jar, jsse.jar, jcert.jar</i> files from the <i>lib/</i>
directory of the JSSE package to the<i> lib/ </i>directory of the Browser.</li>
</ul>
</ol>
And that's all. To connect using SSL just make sure to select the SSL box
in the connect window and specify the right port number.
<p><a NAME="Why does initial SSL connection take a while to"></a><b>Why
does initial SSL connection take a while to establish?</b>
<p>The very first time a secure connection is established Java must create
a secure seed required for the SSL connection. This is a very computationally
expensive process and may take up to a few seconds on certain platforms.
However, the seed only needs to be computed once per session.
<p><a NAME="How do I turn on debugging for the SSL"></a><b>How do I turn
on debugging for the SSL connection?</b>
<p>To enable debug mode for secure connections use
<pre>-Djavax.net.debug=all</pre>
option on the command line to the Java interpreter. For example:
<pre>java -Djavax.net.debug=all -classpath .....&nbsp; lbe.ui.BrowserApp</pre>
For details on how to modify the 'be' scripts to enable this property see
the&nbsp; <a href="#How do I modify the 'lbe' scripts to add the">question</a>
about this.
<p><a NAME="How do I specify client certificates for the SSL"></a><b>How
do I specify client certificates for the SSL connection?</b>
<p>To specify the client certificates you must create a Java keystore (using
keytool) with your certificates and then add the path to the keystore and
the password of the keystore to the session file.
<br>For example:
<pre>&nbsp;&nbsp; keystore&nbsp;&nbsp; = .keystore
&nbsp;&nbsp; passphrase = abcdef</pre>
Please note, that these settings will only work with the default secure
socket factory that is built-in with the browser. If different socket factory
is used, it might have another way of specifying these options.
<p>If the <i>passphrase</i> is not specified in the session file, the Browser
will prompt the user for it as needed.
<p><b>Note</b>: The passphrase of the keystore must match the password
of the private key (keypass)
<p><a NAME="How do I fix 'CA certificate not found' error?"></a><b>How
do I fix the 'CA certificate not found' error?</b>
<p>This error occurs during SSL handshaking when the server does not send
the CA certificate along with its certificates and the client cannot verify
the server certificates because it also does not have the CA certificate.
To fix this problem, you must obtain the server CA certificate and add
it manually to the Browser's CA certificate store.
<br>By default, the Browser maintains all the CA certificates in the <i>lbecacerts</i>
file. The default password for the file is '<i>changeit</i>'
<br>Once you obtain the server CA certificate, you can add it to the <i>lbecacerts</i>
file by using the <i>keytool</i> program, e.g.:
<pre>keytool -import -alias myldap -file CAcert.cer -keystore lbecacerts -storepass changeit</pre>
See the Java documentation for more information about the keytool program.
<p><a NAME="Why does SSL connection sometimes hang the"></a><b>Why does
an SSL connection sometimes hang the browser</b>?
<p>Most likely this occurs when the ldap port number specified in the connection
windows was not a SSL port. If non-secure socket is used to connect to
a server's SSL socket, then the application using the non-secure socket
will hang. This is a characteristic of the SSL protocol.
<br>&nbsp;
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -