"Fossies" - the Fresh Open Source Software Archive

Member "phpESP/docs/LDAP" (26 Nov 2007, 1624 Bytes) of package /linux/www/old/phpESP-2.1.4.tgz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 See the parameter $ESPCONFIG['auth_type'] and the corresponding ldap parameters in the file admin/phpESP.ini.php:
    2 
    3 // Choose authentication type: { 'default', 'ldap_both', 'ldap_resp', 'ldap_des' }
    4 // ldap_resp: respondents in LDAP, ldap_des: designers in LDAP
    5 // ldap_both: both respondents and designers in LDAP
    6 // default: mysql
    7 $ESPCONFIG['auth_type'] = 'default';
    8 
    9 // LDAP connection information
   10 // (Set these values if you choose 'ldap' as the authentication type.)
   11 // if a user is not found in ldap, the DB is still searched as well
   12 // designer info is copied in the DB
   13 $ESPCONFIG['ldap_server'] = 'ldap://ldap.example.com';
   14 $ESPCONFIG['ldap_port']   = '389';
   15 $ESPCONFIG['ldap_dn']     = 'dc=example, dc=com';
   16 $ESPCONFIG['ldap_filter'] = 'uid=';
   17 // the LDAP attribute that is compared with the "group" when completing private
   18 // surveys
   19 $ESPCONFIG['ldap_realm_attr'] = 'objectClass';
   20 // the LDAP attribute/value needed to designate a LDAP user as a designer
   21 $ESPCONFIG['ldap_designer_filter'] = 'UserCategory=engineer';
   22 // the LDAP attribute needed to designate a LDAP user as a superuser
   23 $ESPCONFIG['ldap_superuser_attr'] = 'uid';
   24 // the LDAP attribute needed to designate a LDAP user as a superuser
   25 $ESPCONFIG['ldap_superuser_value'] = 'test';
   26 // most newer LDAP servers need protocol 3 to be able to bind successfully
   27 // if this doesn't work for you, turn it of
   28 $ESPCONFIG['ldap_force_proto_3'] = true;
   29 
   30 // Group to add responders to via the sign-up page
   31 // (Set to "null", without quotes, to disable the sign-up page.)
   32 // Please do disable this for LDAP auth for respondents
   33 $ESPCONFIG['signup_realm'] = 'auto';
   34