Re: [gitorious] Gitorious+Active Directory

2012-12-17 Thread vanna
I had same issue trying AD with Gitorious.

Use Active Directory Explorer (or similar tool for you LDAP server) and 
compare path to your user with path printed by test_ldap_connection script 
(if this script is not printing debuging path then you need to do update as 
Marius is pointing out).

Change distinquished_name_template in authentification.yml and it should 
work. Work for me at least ;)

On Monday, December 10, 2012 11:50:17 AM UTC+1, Phuong Doan wrote:
>
> hi Marius,
> I'm in same situation with above guy, and I installed gitorious from 
> mainline.
> Tried your advice, no luck. My code is up to date already
>
> Best regards
>
> On Tuesday, October 16, 2012 4:00:05 PM UTC+7, Marius MÃ¥rnes Mathiesen 
> wrote:
>>
>> On Mon, Oct 15, 2012 at 8:55 PM, DevOps  wrote:
>>
>>> Hello Everyone,
>>>
>>> I have read the various LDAP and AD threads regarding this topic, 
>>> followed instructions, ensured the latest version is being run, and 
>>> re-installed several times using different methods without any success.
>>>
>>> I am trying to integrate gitorious with a Windows 2008 active directory 
>>> on Cent6.3 installed via the scripted installer from getgetorious.org.
>>>
>>> Here is my authentication.yml as suggested:
>>> production:
>>>   disable_default: true
>>>   methods:
>>> - adapter: Gitorious::Authentication::LDAPAuthentication
>>>   host: the.domain.controller
>>>   port: 389
>>>   base_dn: DC=wdtinc,DC=com
>>>   bind_username: administrator@domaincontroller
>>>   bind_password: B1indingP@Sw0rd!
>>>   user_filter:
>>>   username_attribute: sAMAccountName
>>>   encryption: none
>>>   login_attribute: uid
>>>   distinguished_name_template: "CN=Users,DC=thedomain,DC=com"
>>>   attribute_mapping:
>>>   mail: email
>>>
>>> I've also tried various distingued_name_templates such as: uid={}@
>>> mydomain.com, uid={}. CN={}. $BASE_DN to no avail.
>>>
>>> Here is what the script/test_ldap_connection says:
>>> [root@gitorious app]# export RAILS_ENV=production; bundle exec 
>>> script/test_ldap_connection ddu...@thedomain.com *
>>> Not there yet.
>>> script/test_ldap_connection:22: private method `build_username' called 
>>> for # 
>>> (NoMethodError)
>>>
>>> And whenever I try to login the authentication is simply rejected. I 
>>> know my domain settings are correct as other things have been successfully 
>>> integrated such as sugarcrm, dokuwiki, nexus, jenkins.. 
>>>
>>> Please advise and thanks in advance.
>>>
>>
>> Devon,
>> We made some changes in Gitorious' LDAP support quite recently, and the 
>> installer will pull a version of Gitorious which doesn't include this. 
>> Would you mind trying to check out the master branch on your server and try 
>> it from there? The steps involved would be:
>>
>> - cd /var/www/gitorious/app
>> - git pull origin master
>> - bundle install
>> - RAILS_ENV=production bundle exec rake db:migrate
>> - touch tmp/restart.txt
>>
>> Then try again and let us know what happens.
>>
>> Cheers,
>> - Marius
>>
>

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com


[gitorious] Re: LDAP Authentication question

2013-01-07 Thread vanna
Hi,

Do you mean login page? You should log in by entering email address and 
password from LDAP, what is confusing? Or what behaviour do you expect?

vanna

On Friday, January 4, 2013 4:22:57 PM UTC+1, Manuel Felipe Lopez wrote:
>
> Hi
>
> I'm a confuse with the LDAP integration in glitorious. I'd change 
> authentication.yml file and when i run the test script, everything works 
> has expected, but i don't understand the process after this, cause if I go 
> to the page, it keeps asking me for an email address, there is something to 
> change in the admin web interface or in a config file to allow users from 
> ldap to authenticate in the web page ? 
>
> My  authentication.yml file
>
> production:
>   disable_default: false
>   methods:
> - adapter: Gitorious::Authentication::LDAPAuthentication
>   host: 172.18.7.10
>   port: 389
>   base_dn: DC=THEDOMAIN,DC=ca
>   bind_username: "mflo...@thedomain.ca"
>   bind_password: THEPASSWD
>   user_filter:
>   username_attribute: sAMAccountName
>   encryption: none
>   login_attribute: uid
>   distinguished_name_template: "{}@THEDOMAIN.ca"
>   attribute_mapping:
> givenName: fullname
> mail: email
>
>
> The test result: 
>
> # RAILS_ENV=production bundle exec script/test_ldap_connection mflopez 
> THEPASSWD
> All good, your credentials are correct
>
> Thanks
>

-- 
To post to this group, send email to gitorious@googlegroups.com
To unsubscribe from this group, send email to
gitorious+unsubscr...@googlegroups.com