Hi,

I am trying to connect my install of Gitorious to our Active
Directory.  Our AD encryption supports AES128_HMAC_SHA1 and
AES256_HMAC_SHA1.

In the authentication.yml config file, what are my options for
'encryption'?  I only see the default and 'none'. If I set it to a
value above, I get an error.

Using the default encryption with the config below, I get the error
message below:

Authentication.yml
//////////////////////////////////////////
production:
  disable_default: false
  methods:
    - adapter: Gitorious::Authentication::LDAPAuthentication
      server: 10.2.1.xxx
      port: 389
      base_dn: DC=company,DC=com
      distinguished_name_template: CN={},$BASE_DN
      attribute_mapping:
        givenName: fullname
        publicEmail: email
//////////////////////////////////////////


Error message from ./script/test_ldap_connection
//////////////////////////////////////////
Rails available: Adding dispatcher prepare callback.
/opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/net-
ldap-0.2.2/lib/net/ldap.rb:1126:in `connect': Connection reset by peer
- SSL_connect (Errno::ECONNRESET)
        from /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/net-
ldap-0.2.2/lib/net/ldap.rb:1126:in `wrap_with_ssl'
        from /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/net-
ldap-0.2.2/lib/net/ldap.rb:1163:in `setup_encryption'
        from /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/net-
ldap-0.2.2/lib/net/ldap.rb:1110:in `initialize'
        from /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/net-
ldap-0.2.2/lib/net/ldap.rb:710:in `new'
        from /opt/ruby-enterprise-1.8.7-2011.03/lib/ruby/gems/1.8/gems/net-
ldap-0.2.2/lib/net/ldap.rb:710:in `bind'
        from /home/git/gitorious/lib/gitorious/authentication/
ldap_authentication.rb:62:in `valid_credentials?'
//////////////////////////////////////////


Using the 'none' for encryption:

authentication.yml
//////////////////////////////////////////
production:
  disable_default: false
  methods:
    - adapter: Gitorious::Authentication::LDAPAuthentication
      server: 10.2.1.xxx
      port: 389
      base_dn: DC=company,DC=com
      distinguished_name_template: CN={},$BASE_DN
      attribute_mapping:
        givenName: fullname
        publicEmail: email
      encryption: none
//////////////////////////////////////////

Error message from ./script/test_ldap_connection
//////////////////////////////////////////
Rails available: Adding dispatcher prepare callback.
Not there yet.
./script/test_ldap_connection:22: private method `build_username'
called for #<Gitorious::Authentication::LDAPAuthentication:0xa64f3e8>
(NoMethodError)
//////////////////////////////////////////

Not sure what my problem is.....

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

Reply via email to