tce__ldap_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_ldap.php File Reference

Namespaces

 com\tecnick\tcexam\shared\cfg
 TCExam Main Configuration.
 

Variables

const K_LDAP_ENABLED false
 
const K_LDAP_HOST ‘localhost’
 
const K_LDAP_PORT 389
 
const K_LDAP_PROTOCOL_VERSION 3
 
const K_LDAP_ROOT_DN null
 
const K_LDAP_ROOT_PASS null
 
const K_LDAP_BASE_DN ‘ou=users,dc=mydom,dc=example,dc=org’
 
const K_LDAP_FILTER ‘uid=#USERNAME#’
 
 $ldap_attr = array()
 
 $ldap_attr [‘dn’] = ‘dn’
 
 $ldap_attr [‘user_email’] = ‘mail’
 
 $ldap_attr [‘user_firstname’] = ‘givenName’
 
 $ldap_attr [‘user_lastname’] = ‘sn’
 
 $ldap_attr [‘user_birthdate’] = “
 
 $ldap_attr [‘user_birthplace’] = “
 
 $ldap_attr [‘user_regnumber’] = “
 
 $ldap_attr [‘user_ssn’] = “
 
const K_LDAP_UTF8 true
 
const K_LDAP_USER_LEVEL 1
 
const K_LDAP_USER_GROUP_ID 1
 

Detailed Description

Configuration file for LDAP LDAP is the Lightweight Directory Access Protocol, and is a protocol used to access “Directory Servers”. The Directory is a special kind of database that holds information in a tree structure. Check http://www.php.net/manual/en/ref.ldap.php for requirements and installation.

Variable Documentation

$ldap_attr = array()

Array of the required attributes. This array maps TCExam user data with LDAP attributes.

$ldap_attr[‘dn’] = ‘dn’

$ldap_attr[‘user_email’] = ‘mail’

$ldap_attr[‘user_firstname’] = ‘givenName’

$ldap_attr[‘user_lastname’] = ‘sn’

$ldap_attr[‘user_birthdate’] = “

$ldap_attr[‘user_birthplace’] = “

$ldap_attr[‘user_regnumber’] = “

$ldap_attr[‘user_ssn’] = “

const K_LDAP_BASE_DN ‘ou=users,dc=mydom,dc=example,dc=org’

The base DN for the directory.

const K_LDAP_ENABLED false

If true enable LDAP.

const K_LDAP_FILTER ‘uid=#USERNAME#’

The search filter can be simple or advanced, using boolean operators in the format described in the LDAP documentation. Use “#USERNAME#” as a placeholder for the username passed by login form. For W2K3 use: “(sAMAccountName=#USERNAME#)”

const K_LDAP_HOST ‘localhost’

LDAP hostname. If you are using OpenLDAP 2.x.x you can specify a URL instead of the hostname. To use LDAP with SSL, compile OpenLDAP 2.x.x with SSL support, configure PHP with SSL, and set this parameter as ldaps://hostname/.

const K_LDAP_PORT 389

The port to connect to. Not used when using URLs.

const K_LDAP_PROTOCOL_VERSION 3

LDAP protocol version.

const K_LDAP_ROOT_DN null

The DN for the ROOT Account Set to null for anonymous LDAP binding

const K_LDAP_ROOT_PASS null

The password for the ROOT Account Set to null for anonymous LDAP binding

const K_LDAP_USER_GROUP_ID 1

Default user group ID. This is the TCExam group id to which the LDAP accounts belongs. You can also set 0 for all available groups or a string containing a comma-separated list of group IDs.

const K_LDAP_USER_LEVEL 1

Default user level

const K_LDAP_UTF8 true

Set to true if LDAP uses UTF-8 encoding.

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy