On Mon, Oct 17, 2011 at 10:42 AM, IronMania <[email protected]>wrote:
> Hi,
>
> ok I stumbled on an other problem (regarding the configuration file).
> Here is my Configuration.
> production:
> disable_default: true
> methods:
> - adapter: Gitorious::Authentication::LDAPAuthentication
> server: **someIP**
> port: 389
> base_dn: **somebaseDN**
>
> When I ran
> bundle exec script/ldap_testscript '**myusername**' **mypass**
> I get nothing. so the script runs in an endless loop or something like
> that. I write **myusername** = domain\name
>
Hmm, could it be the backslash isn't escaped properly? I would think there's
an LDAP attribute that doesn't include a backslash?
Anyway, you should be able to use the distinguished_name_template variable
to specify this:
distinguished_name_template: "domain\\{}" - this would evaluate to
domain\username. In my experience, AD servers will allow using an email
address too - the one that ships in the sample YAML file.
Cheers,
- Marius
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]