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

📄 faq.html

📁 ldapbrower ,to operate openldap
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="GENERATOR" content="Mozilla/4.76 [en] (WinNT; U) [Netscape]">
   <title>LDAP Browser/Editor FAQ</title>
</head>
<body>

<h3>
Frequently Asked Questions<br>
LDAP Browser/Editor</h3>
<b><font size=+1>Question Index</font></b>
<p><b>General Questions</b>
<ol>
<li>
<a href="#What is the lbe.properties">What is the lbe.properties file?</a></li>

<li>
<a href="#What properties can be specified in the">What properties can
be specified in the lbe.properties file?</a></li>

<li>
<a href="#I'm getting a NoClassFound error trying to run">I'm getting a
"NoClassFound" error trying to run the Browser. What's wrong?</a></li>

<li>
<a href="#How do I enable debugging for the LDAP">How do I enable debugging
for the Browser?</a></li>

<li>
<a href="#How do I run the Browser behind a">How do I run the Browser behind
a proxy?</a></li>

<li>
<a href="#How do I modify the 'lbe' scripts to add the">How do I modify
the 'be' scripts to add the different system properties?</a></li>

<li>
<a href="#How do I modify the 'lbe' scripts to specify a">How do I run
the Browser with a different Java environment?</a></li>

<li>
<a href="#What parameters can I pass to the Browser">What parameters can
I pass to the application?</a></li>
</ol>
<b>Applet Questions</b>
<ol>
<li>
<a href="#How do I run the Browser as an">How do I run the Browser as an
applet?</a></li>

<li>
<a href="#What parameters can I pass to the">What parameters can I pass
to the applet?</a></li>

<li>
<a href="#How do I debug the Browser as an">How do I debug the Browser
as an applet?</a></li>
</ol>
<b>SSL Questions</b>
<ol>
<li>
<a href="#How do I enable the SSL support in the">How do I enable the SSL
support in the Browser?</a></li>

<li>
<a href="#Why does initial SSL connection take a while to">Why does initial
SSL connection take a while to establish?</a></li>

<li>
<a href="#How do I turn on debugging for the SSL">How do I turn on debugging
for the SSL connection?</a></li>

<li>
<a href="#How do I specify client certificates for the SSL">How do I specify
client certificates for the SSL connection?</a></li>

<li>
<a href="#How do I fix 'CA certificate not found' error?">How do I fix
the 'CA certificate not found' error?</a></li>

<li>
<a href="#Why does SSL connection sometimes hang the">Why does SSL connection
sometimes hang the browser?</a></li>
</ol>
<b>Attribute Viewers/Editors Questions</b>
<ol>
<li>
<a href="#What are attribute">What are attribute viewers/editors?</a></li>

<li>
<a href="#What attribute viewers/editors are distributed">What attribute
viewers/editors are distributed with the Browser?</a></li>

<li>
<a href="#How do I set default algorithm for the">How do I set default
algorithm for the Password Editor?</a></li>

<li>
<a href="#What is the ExtBinaryEditor and how can I use">What is the ExtBinaryEditor
and how can I use it?</a></li>

<li>
<a href="#What is the ExtStringViewer and how can I use">What is the ExtStringViewer
and how can I use it?</a></li>

<li>
<a href="#How can I configure the CertificateEditor2 to">How can I configure
the CertificateEditor2 to launch an external application to view the certificate?</a></li>

<li>
<a href="#How do I write a custom attribute">How do I write a custom attribute
viewer/editor?</a></li>
</ol>

<hr ALIGN=LEFT WIDTH="100%">
<br><b><font size=+1>General Questions</font></b>
<p><a NAME="What is the lbe.properties"></a><b>What is the lbe.properties
file?</b>
<p>The<i> lbe.properties</i> file is a small configuration file that contains
generic configuration information applicable to the Browser and any ldap
session. For example, it specifies the location of the CA certificates
store and its password, the location of the ldap session files, etc. The
Browser during initialization will try to load this file from the '<i>.be</i>'
directory under user's home directory. Examples:
<p><b>on Unix/Linux</b>:
<pre>~gawor/.lbe/lbe.properties</pre>
<b>on Windows NT</b>:
<pre>c:\winnt\profiles\gawor\.lbe\lbe.properties</pre>
If the file does not exist or cannot be read, the defaults will be assumed.
<p>The settings defined in <i>lbe.properties</i> file are meant to replace
some of the settings previously defined in the <i>.cf.</i> files that were
considered static and did not change throughout the different ldap sessions.
Previously, the Browser obtained these properties by&nbsp; loading the
<i>browser.cfg</i>
file automatically. Currently, the Browser, will only load the <i>browser.cfg</i>
file when the <i>lbe.properties</i> file does not exist in the user's home
directory (for backwards compatibility) If the
<i>lbe.properties</i> file
does exist in the user's home directory, the Browser will not load the
<i>browser.cfg</i> file.
<p><a NAME="What properties can be specified in the"></a><b>What properties
can be specified in the lbe.properties file?</b>
<ul>
<li>
<b>cacert.file</b></li>

<ul>
<li>
specifies the location of the CA certificates store file. The location
can be specified as an URL. If the file contains .p12 extension it will
be interpreted as PKCS12 encoded file.</li>
</ul>

<li>
<b>cacert.pwd</b></li>

<ul>
<li>
specifies the password for the CA certificates store.</li>
</ul>

<li>
<b>session.dir</b></li>

<ul>
<li>
Specifies the local directory where the session files will be loaded from.</li>
</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. The location can be
specified as either directory or URL.</li>
</ul>

<li>
<b>autoloader</b></li>

<ul>
<li>
specifies the name of the session file to automatically load when the Browser
is started. The session file must have the '<i>auto connect</i>' property
set to '<i>yes</i>' if the Browser should automatically connect to that
server. The location of the session is resolved from the base location.</li>
</ul>
</ul>
<a NAME="I'm getting a NoClassFound error trying to run"></a><b>I'm getting
a "NoClassFound" error trying to run the Browser. What's wrong?</b>
<p>This error occurs when the Browser is installed incorrectly or launched
from an invalid directory. The LDAP Browser/Editor must be executed from
the directory that it was installed in. The Browser must be able to locate
appropriate libraries required for its operation. The libraries must be
accessible and located in the <i>lib</i> directory of the Browser's installation
directory.
<p><a NAME="How do I enable debugging for the LDAP"></a><b>How do I enable
debugging for the LDAP Browser/Editor?</b>
<p>LDAP Browser/Editor provides dynamic debug tracing support. It is enabled
by setting the <b>lbe.debug</b> system property. The value can be one or
more of the following:
<ul>
<li>
<b>editor</b></li>

<ul>
<li>
print attribute viewers/editors debug messages</li>
</ul>

<li>
<b>ldap</b></li>

<ul>
<li>
enable LDAP protocol message tracing</li>
</ul>

<li>
<b>level1</b></li>

<ul>
<li>
print generic browser debug messages</li>
</ul>

<li>
<b>level2</b></li>

<ul>
<li>
print more and more detailed debug messages</li>
</ul>

<li>
<b>ssl</b></li>

<ul>
<li>
enable debugging for the built-in secure socket factory</li>
</ul>

<li>
<b>all</b></li>

<ul>
<li>
enable all debugging</li>
</ul>
</ul>
Example: (using the command-line option on the java command)
<pre>java -Dlbe.debug=ldap:editor -classpath ... lbe.ui.BrowserApp</pre>
This will enable ldap tracing and debugging of the attribute viewers/editors.
<p>For details on how to modify the 'be' scripts to enable this property
see the <a href="#How do I modify the 'lbe' scripts to add the">question</a>
about this.
<p><a NAME="How do I run the Browser behind a"></a><b>How do I run the
Browser behind a proxy?</b>
<p>The LDAP Browser/Editor does not provide any special support for proxies.
However, Java itself provides SOCKS 4 support.
<br>To configure the Browser to use the proxy server add the following
properties to the command line to the Java interpreter:
<pre>-DsocksProxyPort=1080 -DsocksProxyHost=socks.mydomain.com</pre>
For example:
<pre>java -DsocksProxyPort=1080 -DsocksProxyHost=socks.mydomain.com -classpath .....&nbsp; lbe.ui.BrowserApp</pre>
For details on how to modify the 'be' scripts to enable this property see
the following <a href="#How do I modify the 'lbe' scripts to add the">question</a>.
<p><a NAME="How do I modify the 'lbe' scripts to add the"></a><b>How do
I modify the 'be' scripts to add the different system properties?</b>
<p>On Windows:
<ol>
<li>
Edit the<i> lbe.bat</i> file</li>

<li>
For version <b>2.8.2 </b>and greater modify the following line:</li>

<pre>set OPTIONS=</pre>
with the system properties, for example:
<pre>set OPTIONS=-Dlbe.debug=ldap -DsocksProxyHost=myserver.com</pre>
For version <b>2.8.1</b> modify the following line:</ol>

<ol>
<pre>set CMD="%JAVA_HOME%\bin\java" -cp %COMMON%;%EXEC%</pre>
with the system properties, for example:
<pre>set CMD="%JAVA_HOME%\bin\java" -Dlbe.debug=ldap -DsocksProxyHost=myserver.com -cp %COMMON%;%EXEC%</pre>
</ol>
On Unix:
<ol>
<li>
Edit the <i>lbe.sh</i> file</li>

<li>
For version <b>2.8.2</b> and greater modify the following line:</li>

<pre>OPTIONS=</pre>
with the system properties, for example:
<pre>OPTIONS="-Dlbe.debug=ldap -DsocksProxyHost=myserver.com"</pre>
For version 2.8.1 modify the following line:
<pre>CMD="${JAVA_HOME}/bin/java -cp ${COMMON}:${EXEC}"</pre>
with the system properties, for example:
<pre>CMD="${JAVA_HOME}/bin/java -Dlbe.debug=ldap -DsocksProxyHost=myserver.com -cp ${COMMON}:${EXEC}"</pre>
</ol>
<a NAME="How do I modify the 'lbe' scripts to specify a"></a><b>How do
I run the Browser with a different Java environment?</b>
<p>By default the Browser will first try use the Java interpreter specified
by the <b>JAVA_HOME</b> environment variable. If the environment variable
is not set, the Browser will then try to use the Java interpreter specified
in your path. You can run the browser with a different Java environment
by setting the <b>JAVA_HOME</b> environment variable from the command line
before starting the Browser. For example, to set the <b>JAVA_HOME</b> variable
do the following:
<blockquote>On Windows:</blockquote>

<ol>
<ol>
<pre>C:\ldapbrowser>set JAVA_HOME=c:\jdk1.3</pre>
</ol>
On Unix/Linux: (using tcsh)
<ol>
<pre>pitcairn: ~/ldapbrowser>setenv JAVA_HOME /sandbox/jdk1.3</pre>
</ol>
</ol>
Optionally, you can modify the appropriate '<b>be</b>' script for your
platform to set the <b>JAVA_HOME</b> variable. For example:
<blockquote>On Windows:</blockquote>

<ol>
<ol>
<li>
Edit the <i>lbe.bat</i> file and modify (or add at the beginning) the following
line:</li>

<pre>set JAVA_HOME=c:\jdk1.3</pre>
</ol>
On Unix/Linux:
<br>&nbsp;
<ol>
<li>
Edit the <i>lbe.sh</i> file and modify (or add at the beginning) the following
line:</li>

<pre>JAVA_HOME=/sandbox/jdk1.3</pre>
</ol>
</ol>
<a NAME="What parameters can I pass to the Browser"></a><b>What parameters
can I pass to the Browser application?</b>
<p>There are two parameters that can be passes to the Browser application
from the command line.
<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. The location can be
specified as either directory or URL. By default, the application looks
for these files in the current directory. <i>(example: -base c:\ldapbrowser)</i></li>
</ul>

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

⌨️ 快捷键说明

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