Skip to content

Commit 8957763

Browse files
author
Jonathan Creasy
committed
adding LDAP authentication support
1 parent bcacdfd commit 8957763

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

application/config/rest.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,23 @@
4444
|
4545
| Is login required and if so, which type of login?
4646
|
47-
| '' = no login required, 'basic' = unsecure login, 'digest' = more secure login, 'ldap' = digest with ldap
47+
| '' = no login required, 'basic' = unsecure login, 'digest' = more secure login
4848
|
4949
*/
5050
$config['rest_auth'] = false;
5151

52+
/*
53+
|--------------------------------------------------------------------------
54+
| REST Login
55+
|--------------------------------------------------------------------------
56+
|
57+
| Is login required and if so, which user store do we use?
58+
|
59+
| '' = use config based users, 'ldap' = use LDAP authencation
60+
|
61+
*/
62+
$config['auth_source'] = 'ldap';
63+
5264
/*
5365
|--------------------------------------------------------------------------
5466
| Override auth types for specific class/method
@@ -65,13 +77,12 @@
6577
| $config['auth_override_class_method']['accounts']['user'] = 'basic';
6678
|
6779
| Here 'deals' and 'accounts' are controller names, 'view', 'insert' and 'user' are methods within. (NOTE: leave off the '_get' or '_post' from the end of the method name)
68-
| Acceptable values are; 'none', 'digest', 'ldap', and 'basic'
80+
| Acceptable values are; 'none', 'digest', and 'basic'
6981
|
7082
*/
7183
// $config['auth_override_class_method']['deals']['view'] = 'none';
7284
// $config['auth_override_class_method']['deals']['insert'] = 'digest';
7385
// $config['auth_override_class_method']['accounts']['user'] = 'basic';
74-
// $config['auth_override_class_method']['accounts']['create'] = 'ldap';
7586

7687
/*
7788
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)