mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Merging the Limesurvey 1.91+ branch of queXS in to the trunk
This commit is contained in:
@@ -1,24 +1,24 @@
|
||||
<?php
|
||||
/*
|
||||
* LimeSurvey
|
||||
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
|
||||
* All rights reserved.
|
||||
* License: GNU/GPL License v2 or later, see LICENSE.php
|
||||
* LimeSurvey is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: config-ldap.php 5188 2008-06-27 19:39:58Z lemeur $
|
||||
*/
|
||||
* LimeSurvey
|
||||
* Copyright (C) 2007 The LimeSurvey Project Team / Carsten Schmitz
|
||||
* All rights reserved.
|
||||
* License: GNU/GPL License v2 or later, see LICENSE.php
|
||||
* LimeSurvey is free software. This version may have been modified pursuant
|
||||
* to the GNU General Public License, and as distributed it includes or
|
||||
* is derivative of works licensed under the GNU General Public License or
|
||||
* other free or open source software licenses.
|
||||
* See COPYRIGHT.php for copyright notices and details.
|
||||
*
|
||||
* $Id: config-ldap.php 8540 2010-03-31 11:37:19Z texens $
|
||||
*/
|
||||
|
||||
|
||||
/*********** LDAP Parameters and Functions ***********************
|
||||
*
|
||||
* - First define your ldap servers and remember the serverId
|
||||
* - Then define your ldap_query and 'attach' it to the serverId
|
||||
******************************************************************/
|
||||
*
|
||||
* - First define your ldap servers and remember the serverId
|
||||
* - Then define your ldap_query and 'attach' it to the serverId
|
||||
******************************************************************/
|
||||
|
||||
/*********************************************/
|
||||
/* LDAP servers */
|
||||
@@ -33,7 +33,7 @@ $ldap_server[$serverId]['server'] = "ldap.mycompany.org";
|
||||
// Define the TCP port on which the LDAP server is listenning
|
||||
// This should be 389 for standard LDAP servers
|
||||
// or 636 for standard LDAPS connections
|
||||
$ldap_server[$serverId]['port'] = "636";
|
||||
$ldap_server[$serverId]['port'] = "636";
|
||||
|
||||
// Define the ldap protocol to use
|
||||
// 'ldapv2' and 'ldapv3' are supported
|
||||
@@ -60,29 +60,29 @@ $ldap_server[$serverId]['referrals'] = false;
|
||||
// Define the authentication used to bind to the directory
|
||||
// We currently support simple authentication
|
||||
// If anonymous bind must be performed, comment the following two lines
|
||||
// Note that Active Directory (AD) usually requires authentication before
|
||||
// you are authorized to read its content. Remeber as well that user's DN
|
||||
// Note that Active Directory (AD) usually requires authentication before
|
||||
// you are authorized to read its content. Remeber as well that user's DN
|
||||
// in AD are in the form of CN=username,CN=Users,DC=WindowsDomainName,DC=mycompany,DC=org
|
||||
//
|
||||
//
|
||||
$ldap_server[$serverId]['binddn'] = "uid=mybinduser,dc=mycompany,dc=org";
|
||||
$ldap_server[$serverId]['bindpw'] = "AsecretPassword";
|
||||
|
||||
/********* Copy for more definitions *****
|
||||
$serverId++;
|
||||
$ldap_server[$serverId]['server'] = "ldap.mycompany.org";
|
||||
$ldap_server[$serverId]['port'] = "389";
|
||||
$ldap_server[$serverId]['protoversion'] = "ldapv3";
|
||||
$ldap_server[$serverId]['encrypt'] = "start-tls";
|
||||
$ldap_server[$serverId]['referrals'] = false;
|
||||
$ldap_server[$serverId]['binddn'] = "uid=mybinduser,dc=mycompany,dc=org";
|
||||
$ldap_server[$serverId]['bindpw'] = "AsecretPassword";
|
||||
*****************************************/
|
||||
$serverId++;
|
||||
$ldap_server[$serverId]['server'] = "ldap.mycompany.org";
|
||||
$ldap_server[$serverId]['port'] = "389";
|
||||
$ldap_server[$serverId]['protoversion'] = "ldapv3";
|
||||
$ldap_server[$serverId]['encrypt'] = "start-tls";
|
||||
$ldap_server[$serverId]['referrals'] = false;
|
||||
$ldap_server[$serverId]['binddn'] = "uid=mybinduser,dc=mycompany,dc=org";
|
||||
$ldap_server[$serverId]['bindpw'] = "AsecretPassword";
|
||||
*****************************************/
|
||||
|
||||
/**********************************************************************/
|
||||
/* Predefined Queries for Token Imports */
|
||||
/* */
|
||||
/* This sample query definition is just an fake template: do not */
|
||||
/* expect it to do something intelligent on your directory */
|
||||
/* expect it to do something intelligent on your directory */
|
||||
/* Instead have a look at the online documentation: */
|
||||
/* - Section Installation, paragraph LDAP_Settings */
|
||||
/* And for Active Directory tips: */
|
||||
@@ -103,7 +103,7 @@ $ldap_queries[$query_id]['userbase'] = 'ou=staff,dc=mycompany,dc=org';
|
||||
|
||||
// Define the user filter to apply
|
||||
// Must begin with '(' and end with ')'
|
||||
// Note that for AD, checking the 'active' status of a user is done with the following filter:
|
||||
// Note that for AD, checking the 'active' status of a user is done with the following filter:
|
||||
// "(&(objectCategory=Person)(objectClass=user)(!(userAccountControl=514)))"
|
||||
$ldap_queries[$query_id]['userfilter'] = '(&(objectClass=inetOrgPerson)(my-fake-accountstatus-attribute=enabled))';
|
||||
|
||||
@@ -114,23 +114,23 @@ $ldap_queries[$query_id]['userfilter'] = '(&(objectClass=inetOrgPerson)(my-fake-
|
||||
$ldap_queries[$query_id]['userscope'] = 'sub';
|
||||
|
||||
// Define the user's attribute that provides the firstname
|
||||
// do not use capital letters in the attribute name
|
||||
// do not use capital letters in the attribute name
|
||||
// for instance use 'givenname' and not 'givenName'
|
||||
$ldap_queries[$query_id]['firstname_attr'] = 'givenname';
|
||||
|
||||
// Give the user's attribute that provides the lastname
|
||||
// do not use capital letters in the attribute name
|
||||
// do not use capital letters in the attribute name
|
||||
$ldap_queries[$query_id]['lastname_attr'] = 'sn';
|
||||
|
||||
// Give the user's attribute that provides the email address
|
||||
// do not use capital letters in the attribute name
|
||||
// do not use capital letters in the attribute name
|
||||
// If multivalued, only the first entry is read
|
||||
$ldap_queries[$query_id]['email_attr'] = 'mail';
|
||||
|
||||
|
||||
// Optionnally give the user's attributes that provides the
|
||||
// token, language, attr1 and attr2 piece of information
|
||||
// do not use capital letters in the attribute name
|
||||
// do not use capital letters in the attribute name
|
||||
// if unused, leave empty or comment the lines
|
||||
$ldap_queries[$query_id]['token_attr'] = ''; // Leave empty for Auto Token generation bu phpsv
|
||||
$ldap_queries[$query_id]['language'] = '';
|
||||
@@ -159,7 +159,7 @@ $ldap_queries[$query_id]['groupmemberisdn'] = true;
|
||||
|
||||
// Optionnally you can complete the group query with an additionnal
|
||||
// user filter that will be applied to the user's found by the group search
|
||||
// Comment the userbase, userfilter, and userscope lines
|
||||
// Comment the userbase, userfilter, and userscope lines
|
||||
// if you don't use this extra filter.
|
||||
$ldap_queries[$query_id]['userbase'] = 'ou=users,dc=mycompany,dc=org';
|
||||
$ldap_queries[$query_id]['userfilter'] = '(my-fake-accountstatus-attribute=enabled)';
|
||||
@@ -169,9 +169,9 @@ $ldap_queries[$query_id]['firstname_attr'] = 'givenname';
|
||||
$ldap_queries[$query_id]['lastname_attr'] = 'sn';
|
||||
$ldap_queries[$query_id]['email_attr'] = 'mail';
|
||||
$ldap_queries[$query_id]['token_attr'] = ''; // Leave empty for Auto Token generation bu phpsv
|
||||
$ldap_queries[$query_id]['language'] = '';
|
||||
$ldap_queries[$query_id]['attr1'] = '';
|
||||
$ldap_queries[$query_id]['attr2'] = '';
|
||||
$ldap_queries[$query_id]['language'] = '';
|
||||
$ldap_queries[$query_id]['attr1'] = '';
|
||||
$ldap_queries[$query_id]['attr2'] = '';
|
||||
|
||||
|
||||
// This query is an example of a group search in which group members are UIDs
|
||||
@@ -199,14 +199,14 @@ $ldap_queries[$query_id]['firstname_attr'] = 'givenname';
|
||||
$ldap_queries[$query_id]['lastname_attr'] = 'sn';
|
||||
$ldap_queries[$query_id]['email_attr'] = 'mail';
|
||||
$ldap_queries[$query_id]['token_attr'] = ''; // Leave empty for Auto Token generation bu phpsv
|
||||
$ldap_queries[$query_id]['language'] = '';
|
||||
$ldap_queries[$query_id]['attr1'] = '';
|
||||
$ldap_queries[$query_id]['language'] = '';
|
||||
$ldap_queries[$query_id]['attr1'] = '';
|
||||
$ldap_queries[$query_id]['attr2'] = '';
|
||||
|
||||
/********
|
||||
$query_id++;
|
||||
//Copy previous definition lines
|
||||
********/
|
||||
$query_id++;
|
||||
//Copy previous definition lines
|
||||
********/
|
||||
|
||||
|
||||
//DO NOT CHANGE BELOW HERE --------------------
|
||||
|
||||
Reference in New Issue
Block a user