Xaraya PHP Cross Reference Web Portal Systems

Source: /modules/phpldapadmin/phpldapadmin/config.php.example - 174 lines - 9235 bytes - Text - Print

   1  <?php
   2  
   3  /*
   4   *                  The phpLDAPadmin config file
   5   *
   6   *   This is where you customize phpLDAPadmin. The most important
   7   *   part is immediately below: The "LDAP Servers" section.
   8   *   You must specify at least one LDAP server there. You may add
   9   *   as many as you like. You can also specify your language, and
  10   *   many other options.
  11   *
  12   */
  13  
  14  // Your LDAP servers
  15  $i=0;
  16  $servers = array();
  17  $servers[$i]['name'] = 'My LDAP Server';    /*  A convenient name that will appear in 
  18                                                  the tree viewer */
  19  $servers[$i]['host'] = 'ldap.example.com';  /*  Examples: 'ldap.example.com', 
  20                                                  'ldaps://ldap.example.com/'
  21                                                  Note: Leave blank to remove it from the list 
  22                                                  of servers in the tree viewer*/
  23  $servers[$i]['base'] = 'dc=example,dc=com'; /*  The base DN of your LDAP server. Leave this 
  24                                                  blank to have phpLDAPadmin
  25                                                  auto-detect it for you. */
  26  $servers[$i]['port'] = 389;                 /*  The port your LDAP server listens on 
  27                                                  (no quotes) */
  28  $servers[$i]['auth_type'] = 'config';       /*  2 options: 'form': you will be prompted, and 
  29                                                  a cookie stored with your login dn and 
  30                                                  password. 'config': specify your login dn 
  31                                                  and password here. In both cases, use caution! */
  32  $servers[$i]['login_dn'] = 'cn=Manager,dc=example,dc=com';
  33                                              /*  For anonymous binds, leave the 
  34                                                  login_dn and login_pass blank */
  35  $servers[$i]['login_pass'] = 'secret';      /*  Your password (only if you specified 'config' 
  36                                                  for 'auth_type' */ 
  37  $servers[$i]['tls'] = false;                /*  Use TLS to connect. Requires PHP 4.2 or newer */
  38  $servers[$i]['default_hash'] = 'crypt';     /*  Default password hashing algorith;
  39                                                  One of md5, ssha, sha, md5crpyt, smd5, blowfish or 
  40                                                  leave blank for now default algorithm. */
  41  $servers[$i]['login_attr'] = 'dn';          /*  If you specified 'form' as the auth_type above, 
  42                                                  you can optionally specify here an attribute 
  43                                                  to use when logging in. If you enter 'uid',
  44                                                  then login as 'dsmith', phpLDAPadmin will 
  45                                                  search for uid=dsmith and log in as such. Leave
  46                                                  blank or specify 'dn' to use full DN for 
  47                                                  logging in .*/
  48  $servers[$i]['read_only'] = false;          /*  Specify true If you want phpLDAPadmin to not
  49                                                  display or permit any modification to the 
  50                                                  LDAP server. */
  51  $servers[$i]['enable_auto_uid_numbers'] = false;  
  52                                              /*  This feature allows phpLDAPadmin to 
  53                                                  automatically determine the next
  54                                                  available uidNumber for a new entry. */
  55  $servers[$i]['auto_uid_number_mechanism'] = 'search'; 
  56                            /* The mechanism to use when finding the next available uidNumber.
  57                               Two possible values: 'uidpool' or 'search'. The 'uidpool'
  58                               mechanism uses an existing uidPool entry in your LDAP server
  59                               to blindly lookup the next available uidNumber. The 'search' 
  60                               mechanism searches for entries with a uidNumber value and finds
  61                               the first available uidNumber (slower). */
  62  $servers[$i]['auto_uid_number_search_base'] = 'ou=People,dc=example,dc=com'; 
  63                           /* The DN of the search base when the 'search'
  64                              mechanism is used above. */
  65  $servers[$i]['auto_uid_number_min'] = 1000;
  66                           /* The minimum number to use when searching for the next
  67                              available UID number (only when 'search' is used for 
  68                              auto_uid_number_mechanism' */
  69  $servers[$i]['auto_uid_number_uid_pool_dn'] = 'cn=uidPool,dc=example,dc=com'; 
  70                           /* The DN of the uidPool entry when 'uidpool'
  71                              mechanism is used above. */
  72  
  73  
  74  // If you want to configure additional LDAP servers, do so below.
  75  $i++;
  76  $servers[$i]['name'] = 'Another server';
  77  $servers[$i]['host'] = '';
  78  $servers[$i]['base'] = 'dc=example,dc=com';
  79  $servers[$i]['port'] = 389;
  80  $servers[$i]['auth_type'] = 'config';
  81  $servers[$i]['login_dn'] = '';
  82  $servers[$i]['login_pass'] = '';
  83  $servers[$i]['tls'] = false;
  84  $servers[$i]['default_hash'] = 'crypt';
  85  $servers[$i]['login_attr'] = '';
  86  $servers[$i]['read_only'] = false;
  87  $servers[$i]['enable_auto_uid_numbers'] = false;
  88  $servers[$i]['auto_uid_number_mechanism'] = 'search'; 
  89  $servers[$i]['auto_uid_number_search_base'] = 'ou=People,dc=example,dc=com'; 
  90  $servers[$i]['auto_uid_number_min'] = 1000;
  91  $servers[$i]['auto_uid_number_uid_pool_dn'] = 'cn=uidPool,dc=example,dc=com';
  92  
  93  // If you want to configure more LDAP servers, copy and paste the above (including the "$i++;")
  94  
  95  // The temporary storage directory where we will put jpegPhoto data
  96  // This directory must be readable and writable by your web server 
  97  $jpeg_temp_dir = "/tmp";       // Example for Unix systems
  98  //$jpeg_temp_dir = "c:\\temp"; // Example for Windows systems
  99  
 100  /**                            **/
 101  /**   Appearance and Behavior  **/
 102  /**                            **/
 103  
 104  // The language setting. If you set this to 'auto', phpLDAPadmin will 
 105  // attempt to determine your language automatically. Otherwise, available 
 106  // lanaguages are: 'ct', 'de', 'en', 'es', 'fr', 'it', 'nl', and 'ru'
 107  // Localization is not complete yet, but most strings have been translated.
 108  // Please help by writing language files. See lang/en.php for an example.
 109  $language = 'auto';
 110  
 111  // Set to true if you want to draw a checkbox next to each entry in the tree viewer
 112  // to be able to delete multiple entries at once
 113  $enable_mass_delete = false;
 114  
 115  // Set to true if you want LDAP data to be displayed read-only (without input fields)
 116  // when a user logs in to a server anonymously
 117  $anonymous_bind_implies_read_only = true;
 118  
 119  // If you used auth_type 'form' in the servers list, you can adjust how long the cookie will last 
 120  // (default is 0 seconds, which expires when you close the browser)
 121  $cookie_time = 0; // seconds
 122  
 123  // How many pixels wide do you want your left frame view (for the tree browser)
 124  $tree_width = 320; // pixels
 125  
 126  // How long to keep jpegPhoto temporary files in the jpeg_temp_dir directory (in seconds)
 127  $jpeg_tmp_keep_time = 120; // seconds
 128  
 129  // Would you like to see helpful hint text occacsionally?
 130  $show_hints = true; // set to false to disable hints
 131  
 132  // When using the search page, limit result size to this many entries
 133  $search_result_size_limit = 50;
 134  
 135  /**                              **/
 136  /** Simple Search Form Config **/
 137  /**                              **/
 138  
 139  // Which attributes to include in the drop-down menu of the simple search form (comma-separated)
 140  // Change this to suit your needs for convenient searching. Be sure to change the correlating
 141  // list below ($search_attributes_display)
 142  $search_attributes = "uid, cn, gidNumber, objectClass, telephoneNumber, mail, street";
 143  
 144  // This list correlates to the list directly above. If you want to present more readable names
 145  // for your search attributes, do so here. Both lists must have the same number of entries.
 146  $search_attributes_display = "User Name, Common Name, Group ID, Object Class, Phone Number, Email, Address";
 147  
 148  // The list of attributes to display in each search result entry summary
 149  $search_result_attributes = "dn, cn"; 
 150  
 151  /**                                         **/
 152  /** User-friendly attribute translation     **/
 153  /**                                         **/
 154  
 155  $friendly_attrs = array();
 156  
 157  // Use this array to map attribute names to user friendly names. For example, if you
 158  // don't want to see "facsimileTelephoneNumber" but rather "Fax".
 159  
 160  $friendly_attrs[ 'facsimileTelephoneNumber' ] =         'Fax';
 161  $friendly_attrs[ 'telephoneNumber' ]  =                 'Phone';
 162  
 163  /**                                         **/
 164  /** Hidden attributes                       **/
 165  /**                                         **/
 166  
 167  // You may want to hide certain attributes from being displayed in the editor screen
 168  // Do this by adding the desired attributes to this list (and uncomment it). This
 169  // only affects the editor screen. Attributes will still be visible in the schema
 170  // browser and elsewhere. An example is provided below:
 171  
 172  //$hidden_attrs = array( 'jpegPhoto', 'objectClass' );
 173  
 174  ?>

title

Description

title

Description

title

Description

title

title

Body