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


so I thought I write my own ruby script to test, that it isn't a error
of the NET::LDAP lib

require 'rubygems'
require 'net/ldap'

SERVER = '**someIP**'
PORT = 389
BASE= '**somebaseDN'
user = '**myusername**'
pass = '**mypass**'
conn = Net::LDAP.new :host => SERVER,
:port => PORT,
:base => BASE,
:auth => {
:username => user,
:password => pass,
:method => :simple}
if conn.bind
puts "connected"
else
puts "not Connected"
end

running that, I got connected.
I would use fancy boxes for the code, but I don't know how.

Thank you for your Help!


On Oct 14, 3:39 pm, William Ghelfi <[email protected]> wrote:
> On Fri, Oct 14, 2011 at 3:32 PM, Marius Mårnes Mathiesen
>
> <[email protected]> wrote:
> > On Fri, Oct 14, 2011 at 3:10 PM, Wiz of Id <[email protected]> wrote:
>
> >> Hello,
> >> is there any plan to have authenticated bind?
> >> I was really excited about the oh-so-wanted feature about LDAP integration
> >> in Gitorious... just to found nowhere in the configuration file any hints 
> >> of
> >> binding other than anonymous... :(
>
> > Hi,
> > Did you try it? I'm no LDAP expert, but the current implementation will use
> > the supplied credentials to bind.
>
> Theese are sweet news to me, but I'm not sure of which configuration
> property I have to use for that purpose...

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

Reply via email to