1 # Configure authentication by saving this file as
3 # One section for each RAILS_ENV, like database.yml
6 # disable_default: true # disable database authentication altogether
7 # methods: # additional methods, an array of hashes
8 # - adapter: Gitorious::Authentication::LDAPAuthentication # Configure LDAP - add another class name to roll your own.
9 # server: ldap.example # IP/hostname to LDAP server
10 # port: 1999 # Override the default port (389)
11 # base_dn: DC=gitorious,DC=org # The base DN to search
12 # distinguished_name_template: "{}@gitorious.org" # How to build a user's DN. Default: CN={},$BASE_DN
13 # attribute_mapping: # Map LDAP fields to database fields. Default: displayname => fullname, mail => email
16 # encryption: simple_tls # See Net-LDAP for other options
17 # callback_class: SampleCallback # A class/object that will be called after successful authentication through LDAP. See LdapAuthenticationTest
18 # # Will be "constantized", post_authenticate will be called with an options hash