Difference between revisions of "Phpldapadmin"

From Supercomputación y Cálculo Científico UIS
(Created page with "Back to: LDAP Procedure to add a new LDAP server to phpldapadmin. To add a new LDAP server to phpldapadmin the file config.php must be modified. In a default debian setu...")
 
 
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Back to: [[LDAP]]
+
__NOTOC__
  
Procedure to add a new LDAP server to phpldapadmin.
+
<div class="thumbnail img-thumbnail">http://wiki.sc3.uis.edu.co/images/a/a8/Logo_sc33.png</div>
 +
<p><div class="btn btn-primary"><i class="fa  fa-long-arrow-left"></i> [[LDAP]]</div></p>
 +
 
 +
<div class="col-md-14">
 +
    <div class="panel panel-darker-white-border">
 +
        <div class="panel-heading">
 +
            <h3 class="panel-title">Procedure to add a new LDAP server to phpldapadmin</h3>
 +
        </div>
 +
        <div class="panel-body">
 +
            <p><b>Several procedures associated with phpldapadmin</b></p>
 +
            <p>
  
 
To add a new LDAP server to phpldapadmin the file config.php must be modified. In a default debian setup it should be found on:
 
To add a new LDAP server to phpldapadmin the file config.php must be modified. In a default debian setup it should be found on:
  
/etc/phpldapadmin/config.php.
+
/etc/phpldapadmin/config.php
  
 
Normally, config.php is generated from an example file included with the installation:
 
Normally, config.php is generated from an example file included with the installation:
  
/usr/share/phpldapadmin/config/config.php.example
+
/usr/share/phpldapadmin/config/config.php.example
 
 
 
 
Para el proceso de como crear un primer servidor ldap favor referirse a http://phpldapadmin.sourceforge.net/wiki/index.php/Config y a los comentarios dentro del archivo de ejemplo.
 
  
Para agregar un nuevo servidor se revisa al final del archivo config.php, donde hay una sección que tiene el siguiente encabezado:
+
For the procedure to include the first ldap server in a phpldapadmin setup please refer to http://phpldapadmin.sourceforge.net/wiki/index.php/Config and the comments inside the example file.
  
 +
To add a new server go to the end of the file config.php, where there is a section with the following header (around line number 500):
 +
{{File|/etc/phpldapadmin/config.php|<pre><nowiki>
 +
...
 
"/**************************************************************************
 
"/**************************************************************************
 
   * If you want to configure additional LDAP servers, do so below.        *
 
   * If you want to configure additional LDAP servers, do so below.        *
Line 21: Line 31:
 
   * your other LDAP servers.                                              *
 
   * your other LDAP servers.                                              *
 
   **************************************************************************/"
 
   **************************************************************************/"
 +
</nowiki></pre>}}
  
(normalmente debería estar alrededor de la línea de texto número 500)
+
Each server template comes with all the instructions required to set it up commented. e.g:
 
+
{{File|/etc/phpldapadmin/config.php|<pre><nowiki>
Cada posible servidor viene comentado con todas las instrucciones posibles para configurarlo:
+
...
 
 
ejemplo:
 
 
 
 
/*
 
/*
 
$servers->newServer('ldap_pla');
 
$servers->newServer('ldap_pla');
Line 39: Line 47:
 
$servers->setValue('server','tls',false);
 
$servers->setValue('server','tls',false);
 
*/
 
*/
 +
</nowiki></pre>}}
  
1. Es obligatorio que cada definición de servidor comience con un llamado a newServer. Es decir, toda la configuración de un servidor debe aparecer después de una línea como '$servers->newServer('ldap_pla');', y se entiende que va hasta la aparición de una nueva, donde empezaría la configuración de un nuevo servidor.
+
1. It's mandatory that each server definition starts with a call to newServer. What this means is that all the setup lines of a given server must appear after a line like ''''$servers->newServer('ldap_pla');'''', and of course before a similar line.
2. La clausula 'name' en '$servers->setValue('server','name','LDAP Server');' es un nombre familiar, que aparecerá en el sitio web para identificarlo.  Un ejemplo podría ser "nuevo servidor ldap" o "ldap principal".
 
3. La clausula 'base' representa los dc necesario para identificar la instancia del servidor a manejar.  Los dc se ponen dentro del array en el tercer parámetro. Ej: 'array('dc=uis,dc=edu,dc=co')'.
 
4. Se selecciona un solo tipo de ingreso y autenticación ('login', 'auth_type'), en '$servers->setValue('login','auth_type','cookie');'.  Se deben consultar los comentarios del archivo de ejemplo para ver cuales opciones existen.
 
5. En '$servers->setValue('login','bind_id','');' se debe colocar como tercer parámetro el distinguished name del usuario admin, o algún usuario con capacidad de escribir en el directorio ldap.
 
  
---
+
2. The 'name' clausule in ''''$servers->setValue('server','name','LDAP Server');'''' is a familiar, human readable, name, that will appear in the site to identify the serverAn example could be "new ldap server" or "myldap".
Con estas opciones se puede configurar un nuevo servidor ldap para ser administrado via phpldapadmin.  Existen opciones avanzadas no cubiertas por este instructivo que pueden ser accedidas en los comentarios del archivo de ejemplo entregado en la instalación, o en la documentación en http://phpldapadmin.sourceforge.net/wiki/index.php/Main_PageAdemás se incluye el archivo de configuración actualmente en uso en griduis (solo en el wiki privado).
 
  
Cualquier sugerencia o consulta favor hacerla a grid.uis@gmail.com, sc3@uis.edu.co o en los teléfonos de contacto de la unidad de Supercomputación y Cálculo Científico de la Universidad Industrial de Santander.
+
3. The 'base' clausule represents the descriptors (dc) required to identify the server instance to manage. The dc are stored in the array of the third parameter. E.g: ''''array('dc=uis,dc=edu,dc=co')''''.
  
Autor: Sergio Augusto Gélvez Cortés
+
4. Only one type of login and authentication is selected in ''''$servers->setValue('login','auth_type','cookie');'''' (in this case cookies). The example file should be checked to see all options available.
Contacto del Autor: sergio.gelvez@gmail.com
 
Fecha de creación del documento: 12.05.2014
 
  
Realizado por personal de la unidad de Supercomputación y Cálculo Científico de la Universidad Industrial de Santander.
+
5. In the clausule ''''$servers->setValue('login','bind_id','');'''' the distinguished name of the admin or some privileged user must set as the third parameter.
MMXIV (c) Bucaramanga, Colombia
 
  
Last edit (text):
+
---
12.05.2014 by Sergio Augusto Gelvez Cortés.
+
These are the options to be set to configure a new ldap server to be managed by phpldapadmin. There are advaced options not covered in this instructions that can be accessed in the comments of the example file in the installation or in the documentation found in [http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page phpldapadmin documentation].
 +
 +
            </p>
 +
        </div>
 +
    </div>
 +
</div>

Latest revision as of 21:04, 9 April 2015


Logo_sc33.png

Procedure to add a new LDAP server to phpldapadmin

Several procedures associated with phpldapadmin

To add a new LDAP server to phpldapadmin the file config.php must be modified. In a default debian setup it should be found on: /etc/phpldapadmin/config.php Normally, config.php is generated from an example file included with the installation: /usr/share/phpldapadmin/config/config.php.example For the procedure to include the first ldap server in a phpldapadmin setup please refer to http://phpldapadmin.sourceforge.net/wiki/index.php/Config and the comments inside the example file. To add a new server go to the end of the file config.php, where there is a section with the following header (around line number 500):

File: /etc/phpldapadmin/config.php
...
"/**************************************************************************
  * If you want to configure additional LDAP servers, do so below.         *
  * Remove the commented lines and use this section as a template for all  *
  * your other LDAP servers.                                               *
  **************************************************************************/"

Each server template comes with all the instructions required to set it up commented. e.g:

File: /etc/phpldapadmin/config.php
...
/*
$servers->newServer('ldap_pla');
$servers->setValue('server','name','LDAP Server');
$servers->setValue('server','host','127.0.0.1');
$servers->setValue('server','port',389);
$servers->setValue('server','base',array(''));
$servers->setValue('login','auth_type','cookie');
$servers->setValue('login','bind_id','');
$servers->setValue('login','bind_pass','');
$servers->setValue('server','tls',false);
*/

1. It's mandatory that each server definition starts with a call to newServer. What this means is that all the setup lines of a given server must appear after a line like '$servers->newServer('ldap_pla');', and of course before a similar line.

2. The 'name' clausule in '$servers->setValue('server','name','LDAP Server');' is a familiar, human readable, name, that will appear in the site to identify the server. An example could be "new ldap server" or "myldap".

3. The 'base' clausule represents the descriptors (dc) required to identify the server instance to manage. The dc are stored in the array of the third parameter. E.g: 'array('dc=uis,dc=edu,dc=co')'.

4. Only one type of login and authentication is selected in '$servers->setValue('login','auth_type','cookie');' (in this case cookies). The example file should be checked to see all options available.

5. In the clausule '$servers->setValue('login','bind_id',);' the distinguished name of the admin or some privileged user must set as the third parameter.

--- These are the options to be set to configure a new ldap server to be managed by phpldapadmin. There are advaced options not covered in this instructions that can be accessed in the comments of the example file in the installation or in the documentation found in phpldapadmin documentation.