| 104 | === LDAP Module === |
| 105 | LDAP module is used to authenticate against the existing LDAP server. |
| 106 | |
| 107 | The configuration parameters for LDAP are: |
| 108 | {{{ |
| 109 | #!php |
| 110 | $config['Guard.AuthModule.Ldap'] = array( |
| 111 | 'host' => 'ldaps://ldapcons.stg.id.ubc.ca/', |
| 112 | 'port' => 636, |
| 113 | 'serviceUsername' => 'uid=USERNAME, ou=Special Users, o=school.ca', // username to connect to LDAP |
| 114 | 'servicePassword' => 'PASSWORD', // password to connect to LDAP |
| 115 | 'baseDn' => 'ou=Campus Login, o=school.ca', |
| 116 | 'usernameField' => 'username', // not used |
| 117 | 'passwordField' => 'password', // not used |
| 118 | ); |
| 119 | }}} |
| 120 | * host: The LDAP server address |
| 121 | * port: The LDAP server port |
| 122 | * serviceUsername: The username used to connect to LDAP server |
| 123 | * servicePassword: The password used to connect to LDAP server |
| 124 | * baseDn: The base DN |
| 125 | |