title: Using the ldap.yml in Ldap_devise_authenticatable gem
body: <p>I am trying to use ldap_devise_authenticatable in my rails app. I am referring to <a href="https://github.com/cschiewek/devise_ldap_authenticatable" rel="nofollow">https://github.com/cschiewek/devise_ldap_authenticatable</a> and <a href="http://random-rails.blogspot.com/2010/07/ldap-authentication-with-devise.html" rel="nofollow">http://random-rails.blogspot.com/2010/07/ldap-authentication-with-devise.html</a>.</p>
  
  <p>I am currently facing issues configuring the ldap.yml file to the ldap server I am using. I facing difficulty in figuring out what parameters are to be filled with exactly what details.</p>
  
  <p>I was able to gather some infromation from <a href="http://net-ldap.rubyforge.org/classes/Net/LDAP.html" rel="nofollow">http://net-ldap.rubyforge.org/classes/Net/LDAP.html</a>. But since this tutorial is mainly for net-ldap gem. It doesn't completely serve my purpose.</p>
  
  <p>Could you please suggest me with a good tutorial on LDAP... specific to the parameters I need to fill in as values to the ldap.yml I am using for both Authorization and Environment. An important doubt I had is </p>
  
  <p>I have some idea on what parameter values to enter in Enviroments but I am like blank on what details to enter for Authorization related parameters. I have commented on few details to be filled in with my doubts in the ldap.yml given below. Kindly help me with them if feasible. </p>
  
  <p>My current ldap.yml looks like this:-</p>
  
  <p>#</p>
  
  <pre><code># Authorizations
  # Uncomment out the merging for each enviornment that you'd like to include.
  # You can also just copy and paste the tree (do not include the "authorizations") to each
  # enviornment if you need something different per enviornment.
  authorizations: &amp;AUTHORIZATIONS
    group_base: ou=groups,dc=test,dc=com
    ## Requires config.ldap_check_group_membership in devise.rb be true
    # Can have multiple values, must match all to be authorized
    required_groups:
      # If only a group name is given, membership will be checked against "uniqueMember"
      - cn=admins,ou=groups,dc=test,dc=com
      - cn=users,ou=groups,dc=test,dc=com
      # If an array is given, the first element will be the attribute to check against, the second the group name
      - ["moreMembers", "cn=users,ou=groups,dc=test,dc=com"]
    ## Requires config.ldap_check_attributes in devise.rb to be true
    ## Can have multiple attributes and values, must match all to be authorized
    require_attribute:
      objectClass: inetOrgPerson
      authorizationRole: postsAdmin
  
  
  ## Enviornments
  
  
  development:
    host: # ip address is to be filled in here..
    port: # port number goes here..
    attribute: cn # what does attribute and cn signify?? what are the other things I can fill attribute with like uid, and..what else ??
    base: # my tree base details go in here..
    admin_user: cn=admin_name,dc=test,dc=com # do I need to enter the domain component also ? or just the admin_name  would do?
    admin_password: # password goes in here..
    ssl: true # when would I be using this..??
    # &lt;&lt;: *AUTHORIZATIONS - how &amp; where can I use this..??
  
  test:
    host: # ip address is to be filled in here..
    port: # port number goes here..
    attribute: cn # what does attribute and cn signify?? what are the other things I can fill attribute with like uid, and..what else ??
    base: # my tree base details go in here..
    admin_user: cn=admin_name,dc=test,dc=com
    admin_password: # password goes in here..
    ssl: true
    # &lt;&lt;: *AUTHORIZATIONS - how can I use this..
  
  production:
    host: # ip address is to be filled in here..
    port: # port number goes here..
    attribute: cn # what does attribute and cn signify?? what are the other things I can fill attribute with like uid, and..what else ??
    base: # my tree base details go in here..
    admin_user: cn=admin_name,dc=test,dc=com
    admin_password: # password goes in here..
    ssl: true
    # &lt;&lt;: *AUTHORIZATIONS - how can I use this..
  </code></pre>
  
  <p>Thanks for you help..</p>