anchor.diff:  ----
   
   [[dsl-usecases-ldap-mapping]]
  -==== LDAP mapping
  +=== DSL LDAP mapping
   
   The <<ldap,LDAP mappings>> can be generated using the DSL.
   
  
positive.code: def promotionLevel = ontrack.promotionLevel('project', 'branch', 'COPPER')
  file.bytes = promotionLevel.image.content
  ----
  
negative.code: IMPORTANT: LDAP accounts cannot be created directly. See the <<security,documentation>> for more details.
  
  [[dsl-usecases-security-account-permissions]]
  ==== Account permissions
  
  To give a role to an account:
  
  