Guest User

Untitled

a guest
Oct 27th, 2017
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. security:
  2.  
  3. hide_user_not_found: false
  4.  
  5. encoders:
  6. SymfonyComponentSecurityCoreUserUser:
  7. algorithm: bcrypt
  8. cost: 12
  9. AppBundleEntityUser:
  10. algorithm: bcrypt
  11. cost: 12
  12. standard:
  13. algorithm: sha1
  14. cost: 10
  15. harsh:
  16. algorithm: bcrypt
  17. cost: 15
  18.  
  19. # http://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded
  20. providers:
  21. chain_provider:
  22. chain:
  23. providers: [my_provider, ldap_provider]
  24.  
  25. my_provider:
  26. entity:
  27. class: AppBundle:User
  28. property: username
  29.  
  30. ldap_provider:
  31. ldap:
  32. service: SymfonyComponentLdapLdap
  33. base_dn: 'ou=Expedient,dc=cbb,dc=local'
  34. search_dn: 'CN=svccolab,OU=Service Accounts,OU=Resources,DC=cbb,DC=local'
  35. search_password: 'password!'
  36. #default_roles: 'ROLE_USER'
  37. #uid_key: 'sAMAccountName'
  38. #filter: '({uid_key}={username})'
  39.  
  40.  
  41. firewalls:
  42. # disables authentication for assets and the profiler, adapt it according to your needs
  43. dev:
  44. pattern: ^/(_(profiler|wdt)|css|images|js)/
  45. security: false
  46.  
  47. main:
  48. pattern: ^/
  49.  
  50. # no config for anonymous
  51. anonymous: ~
  52.  
  53. # guard uses the login form authenticator service
  54. guard:
  55. authenticators:
  56. - app.security.login_form_authenticator
  57. provider: cadence_provider
  58.  
  59. # authenticate against cbb ldap / ad server
  60. form_login_ldap:
  61. login_path: login
  62. check_path: login
  63. service: SymfonyComponentLdapLdap
  64. dn_string: 'CBB{username}'
  65. provider: ldap_provider
  66.  
  67.  
  68. logout:
  69. invalidate_session: true
  70. path: /logout
  71. target: /customer
  72.  
  73. access_control:
  74. - { path: ^/admin, roles: ROLE_ADMIN }
Add Comment
Please, Sign In to add comment