symfony - FOSUserBundle and LDAP user before login - Symfony2 -


i have set fosuserbundle , fr3d ldap bundle allow company users login web app own login.

from now, if logins, have default role, role_user. however, want specific role allowed (in case it's role_consult, created).

what doing allow users @ moment is:

  1. ask user login web app

  2. they "you have no right access web page"

  3. they tell me connected

  4. i change user's role "role_consult" form created within admin panel.

what want is:

  1. i select user ldap list

  2. change user role (which not on database yet, change role)

  3. the user logins successfully

i developed 1 , 2 points, "salt" empty on database, doesn't allow user connect must believe password isn't correct.

any idea how can make work telling symfony2 first login, automatically check entered password @ ldap configuration ?

thanks.

alright, easy.

i forgot put "dn" database. it's working.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -