Skip to content

brenard/qa-external-casldap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

qa-external-casldap

Authentification plugin CAS+LDAP for Question2Answer

Requirement

  • phpCAS : On Debian (since Wheezy), install php-cas package

Configuration

  • CAS_HOST : Hostname of CAS server (ex : cas.example.com)

  • CAS_PORT : HTTP (or HTTPS) port of CAS server (ex : 443)

  • CAS_CTX : URL context path of CAS server (ex: /cas)

  • CAS_VER : CAS protocol version. Possible values : CAS_VERSION_1_0 or CAS_VERSION_2_0

  • CAS_CA_CERT_FILE : SSL certificate path of CAS server. If empty, the SSL certificate will not be validated.

  • $CAS_USERS_ROLE : PHP array listing specific user role. Users's role must be define using Q2A constant :

    • QA_USER_LEVEL_BASIC
    • QA_USER_LEVEL_EDITOR
    • QA_USER_LEVEL_ADMIN
    • QA_USER_LEVEL_SUPER

    Example :

    $CAS_USERS_ROLE = array(
      'user1' => QA_USER_LEVEL_EDITOR,
      'user2' => QA_USER_LEVEL_SUPER
    );
    
  • CAS_DEFAULT_USER_ROLE : User default role define using Q2A constant (see $CAS_USERS_ROLE)

  • LDAP_SERVER_URI : LDAP server URI (ex: ldap://ldap.example.com:389)

  • LDAP_SERVER_BIND_DN : LDAP server bind DN (ex: uid=qa,ou=sysaccouts,o=example). This parameter is optional and if is empty, no bind will be done

  • LDAP_SERVER_BIND_PASSWORD : LDAP server bind password

  • LDAP_USER_BASEDN : basedn to search user in LDAP directory (ex: dc=example,dc=com)

  • LDAP_USER_FILTER : LDAP filter to search user in LDAP directory. The filter will be composed with user CAS login (remplace by %s). (ex: (&(objectClass=posixAccount)(uid=%s)))

  • LDAP_USERID_ATTR : LDAP attribute corresponding to CAS user login (ex: uid)

  • LDAP_MAIL_ATTR : LDAP attribute corresponding to user's mail (ex: mail)

  • LDAP_ALTERNATE_MAIL_ATTR : LDAP attribute corresponding to alternative user's mail (ex: supannMailPerso)

  • LDAP_PUBLIC_NAME_ATTR : LDAP attribute corresponding to user's full name (ex: displayName)

About

Authentification plugin CAS+LDAP for Question2Answer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages