this is my authentication.yml :
production:
methods:
- adapter: Gitorious::Authentication::LDAPAuthentication
host: SERVER.ACTIVE.DIRECTORY
port: 389
base_dn: DC=COMPANY,DC=com
bind_username: USER_BIND
bind_password: PASSWORD_BIND
username_attribute: sAMAccountName
encryption: none
login_attribute: uid
distinguished_name_template: "uid={},OU=allusers,DC=synapse,DC=com"
attribute_mapping:
mail: email
Regards,
2012/6/11 Ken Dreyer <[email protected]>
> On Mon, Jun 11, 2012 at 8:41 AM, Federico Don <[email protected]>
> wrote:
> > A NoMethodError occurred in sessions#create:
> >
> > undefined method `username_filter' for
> > #<Gitorious::Authentication::LDAPAuthentication:0x128a5860>
> > [RAILS_ROOT]/lib/gitorious/authentication/ldap_authentication.rb:85:in
> > `authenticate'
>
> The username_filter function was added a month ago to master, so this
> is a recent change. It might be possible that it was not
> fully-backwards compatible with existing configurations.
>
> I'm curious what you've defined as the callback_class parameter in
> your authentication.yml?
>
> - Ken
>
> --
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
>
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]