Cannot successfully log in using LDAP, although ldap-wizard reports that 
authentication succeeds. The problem seems to originate in auto_register, 
specifically in the following line:

result = connection.search(:base => base_dn, :filter => 
username_filter(username), :attributes => attribute_mapping.keys, 
:return_result => true)

result ends up being nil, so a 500 error is raised.

Here is my config:

production:

  disable_default: true

  enable_openid: false

  methods:

    - adapter: Gitorious::Authentication::LDAPAuthentication

      # IP/hostname to LDAP server
      host: "ldap.myserver.com" #my actual server in real config

      # Override the default port (389)
      #port: 1999

      # The base DN to search
      base_dn: "correctbase" #actual base in real config

      # What LDAP attribute to use for user authentication. Default is CN
      login_attribute: uid

      # Map LDAP fields to database fields.
      # Default: displayname => fullname, mail => email
      attribute_mapping:
        cn: fullname

      # See Net-LDAP for other options, or use "none" for no encryption.
      # Defaults to "simple_tls" if not set.
      encryption: start_tls

Any glaring issues with this that I am missing?

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

--- 
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to