@@ -295,19 +295,6 @@ than one is found.
295
295
Examples are provided below, for both ``form_login_ldap `` and
296
296
``http_basic_ldap ``.
297
297
298
- query_string
299
- ............
300
-
301
- **type **: ``string `` **default **: ``null ``
302
-
303
- This optional key defines the form of the query used in order to search the
304
- DN of the user, from the username. The ``{username} `` string is replaced by
305
- the actual username of the person trying to authenticate.
306
-
307
- This setting is only necessary if the users DN cannot be derived statically
308
- using the `dn_string ` config option.
309
-
310
-
311
298
Configuration example for form login
312
299
....................................
313
300
@@ -323,8 +310,6 @@ Configuration example for form login
323
310
main :
324
311
# ...
325
312
form_login_ldap :
326
- login_path : login
327
- check_path : login_check
328
313
# ...
329
314
service : ldap
330
315
dn_string : ' uid={username},dc=example,dc=com'
@@ -342,8 +327,6 @@ Configuration example for form login
342
327
<config >
343
328
<firewall name =" main" >
344
329
<form-login-ldap
345
- login-path =" login"
346
- check-path =" login_check"
347
330
service =" ldap"
348
331
dn-string =" uid={username},dc=example,dc=com" />
349
332
</firewall >
@@ -356,8 +339,6 @@ Configuration example for form login
356
339
'firewalls' => array(
357
340
'main' => array(
358
341
'form_login_ldap' => array(
359
- 'login_path' => 'login',
360
- 'check_path' => 'login_check',
361
342
'service' => 'ldap',
362
343
'dn_string' => 'uid={username},dc=example,dc=com',
363
344
// ...
@@ -432,8 +413,6 @@ Configuration example for form login and query_string
432
413
main :
433
414
# ...
434
415
form_login_ldap :
435
- login_path : login
436
- check_path : login_check
437
416
# ...
438
417
service : ldap
439
418
dn_string : ' dc=example,dc=com'
@@ -452,23 +431,20 @@ Configuration example for form login and query_string
452
431
<config >
453
432
<firewall name =" main" >
454
433
<form-login-ldap
455
- login-path =" login"
456
- check-path =" login_check"
457
434
service =" ldap"
458
435
dn-string =" dc=example,dc=com"
459
- query-string =" (& (uid={username})(memberOf=cn=users,ou=Services,dc=example,dc=com))" />
436
+ query-string =" (& (uid={username})(memberOf=cn=users,ou=Services,dc=example,dc=com))" />
460
437
</firewall >
461
438
</config >
462
439
</srv : container >
463
440
464
441
.. code-block :: php
465
442
443
+ // app/config/security.php
466
444
$container->loadFromExtension('security', array(
467
445
'firewalls' => array(
468
446
'main' => array(
469
447
'form_login_ldap' => array(
470
- 'login_path' => 'login',
471
- 'check_path' => 'login_check',
472
448
4762
'service' => 'ldap',
473
449
'dn_string' => 'dc=example,dc=com',
474
450
'query_string' => '(& (uid={username})(memberOf=cn=users,ou=Services,dc=example,dc=com))',
0 commit comments