1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en" dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<!-- metadata -->
<meta name="generator" content="Offline" />
<meta name="version" content="Offline 0.1" />
<!-- style sheet links -->
<link rel="stylesheet" media="all" type="text/css" href="../../../../css/all.css" />
<link rel="stylesheet" media="screen" type="text/css" href="../../../../css/screen.css" />
<link rel="stylesheet" media="print" type="text/css" href="../../../../css/print.css" />
</head>
<body>
<div class="dokuwiki export">
<h1><a name="phpldapadmin" id="phpldapadmin">phpLDAPadmin</a></h1>
<div class="level1">
<p>
<a href="/_detail/applications/phpldapadmin_logo.png?id=documentation%3A1.3%3Aapplications%3Aphpldapadmin" class="media" title="applications:phpldapadmin_logo.png"><img src="../../../../media/applications/phpldapadmin_logo.png" class="mediacenter" alt="" /></a>
</p>
</div>
<!-- SECTION "phpLDAPadmin" [1-72] -->
<h2><a name="presentation" id="presentation">Presentation</a></h2>
<div class="level2">
<p>
<a href="http://phpldapadmin.sourceforge.net" class="urlextern" title="http://phpldapadmin.sourceforge.net" rel="nofollow">phpLDAPadmin</a> is an <acronym title="Lightweight Directory Access Protocol">LDAP</acronym> administration tool written in <acronym title="Hypertext Preprocessor">PHP</acronym>.
</p>
<p>
phpLDAPadmin will connect to the directory with a static <acronym title="Distinguished Name">DN</acronym> and password, and so will not request authentication anymore. The access to phpLDAPadmin will be protected by LemonLDAP::NG with specific access rules.
</p>
<p>
<p><div class="notewarning">phpLDAPadmin will have no idea of the user connected to the WebSSO. So a simple user can have admin rights on the <acronym title="Lightweight Directory Access Protocol">LDAP</acronym> directory if your access rules are too lazy.
</div></p>
</p>
</div>
<!-- SECTION "Presentation" [73-598] -->
<h2><a name="configuration" id="configuration">Configuration</a></h2>
<div class="level2">
</div>
<!-- SECTION "Configuration" [599-625] -->
<h3><a name="phpldapadmin_local_configuration" id="phpldapadmin_local_configuration">phpLDAPadmin local configuration</a></h3>
<div class="level3">
<p>
Just set the authentication type to <code>config</code> and indicate <acronym title="Distinguished Name">DN</acronym> and password inside the file <code>config.php</code>:
</p>
<pre class="code file php"><span class="re0">$ldapservers</span><span class="sy0">-></span><span class="me1">SetValue</span><span class="br0">(</span><span class="re0">$i</span><span class="sy0">,</span><span class="st_h">'server'</span><span class="sy0">,</span><span class="st_h">'auth_type'</span><span class="sy0">,</span><span class="st_h">'config'</span><span class="br0">)</span><span class="sy0">;</span>
<span class="re0">$ldapservers</span><span class="sy0">-></span><span class="me1">SetValue</span><span class="br0">(</span><span class="re0">$i</span><span class="sy0">,</span><span class="st_h">'login'</span><span class="sy0">,</span><span class="st_h">'dn'</span><span class="sy0">,</span><span class="st_h">'cn=Manager,dc=example,dc=com'</span><span class="br0">)</span><span class="sy0">;</span>
<span class="re0">$ldapservers</span><span class="sy0">-></span><span class="me1">SetValue</span><span class="br0">(</span><span class="re0">$i</span><span class="sy0">,</span><span class="st_h">'login'</span><span class="sy0">,</span><span class="st_h">'pass'</span><span class="sy0">,</span><span class="st_h">'secret'</span><span class="br0">)</span><span class="sy0">;</span></pre>
</div>
<!-- SECTION "phpLDAPadmin local configuration" [626-980] -->
<h3><a name="phpldapadmin_virtual_host_in_apache" id="phpldapadmin_virtual_host_in_apache">phpLDAPadmin virtual host in Apache</a></h3>
<div class="level3">
<p>
Configure phpLDAPadmin virtual host like other <a href="../../../documentation/1.3/configvhost.html" class="wikilink1" title="documentation:1.3:configvhost">protected virtual host</a>.
</p>
<pre class="code file apache"><<span class="kw3">VirtualHost</span> *:80>
<span class="kw1">ServerName</span> phpldapadmin.example.com
PerlHeaderParserHandler My::Package
...
</<span class="kw3">VirtualHost</span>></pre>
</div>
<!-- SECTION "phpLDAPadmin virtual host in Apache" [981-1281] -->
<h3><a name="phpldapadmin_virtual_host_in_manager" id="phpldapadmin_virtual_host_in_manager">phpLDAPadmin virtual host in Manager</a></h3>
<div class="level3">
<p>
Go to the Manager and <a href="../../../documentation/1.3/configvhost.html#lemonldapng_configuration" class="wikilink1" title="documentation:1.3:configvhost">create a new virtual host</a> for phpLDAPadmin.
</p>
<p>
Just configure the <a href="../../../documentation/1.3/writingrulesand_headers.html#rules" class="wikilink1" title="documentation:1.3:writingrulesand_headers">access rules</a>.
</p>
<p>
No <a href="../../../documentation/1.3/writingrulesand_headers.html#headers" class="wikilink1" title="documentation:1.3:writingrulesand_headers">headers</a> are required.
</p>
</div>
<!-- SECTION "phpLDAPadmin virtual host in Manager" [1282-] --></div><!-- closes <div class="dokuwiki export">-->
|