title: Where and how ROLES are defined when using LDAP and Spring security
body: <p>I am using Spring Security and authenticating from an LDAP database. The authentication works fine, but I am not able to utilize roles!</p>
  
  <p>In spring-security.xml there is this tag:</p>
  
  <pre><code>&lt;security:intercept-url pattern="/app/main/admin" access="hasRole('ROLE_USER')"/&gt;
  </code></pre>
  
  <p>My question is, where is "ROLE_USER" defined? How is a user made to belong to a particular role? Does this happen in the LDAP database? If yes, then how do I do that? I know little about LDAP. Is it another configuration file where I define roles? </p>
  
  <p>Thank you for your help. </p>