[gitorious] Re: ldap teams / groups

2013-01-08 Thread marcgenou
Yes, because gitorious is creating users checking LDAP (AD) credentials, 
but this features give me this error.

On Tuesday, January 8, 2013 11:48:09 AM UTC+1, marc...@gmail.com wrote:
>
> Im getting this error trying to create teams with LDAP authentication:
> Also trying to check my profile in every user while the LDAP 
> authentication is 'true'
>
> ActionView::TemplateError (Unable to connect to the LDAP server on 
> X:389. Are you sure the LDAP server is running?) on line #139 of 
> app/views/users/show.html.erb:
> 136:   
> 137: <%= 
> image_tag(group.avatar.url(:thumb), :alt => "Avatar", :width => "16") 
> %> <%= link_to h(group.name), group_path(group) -%>
> 138:   <% end -%>
> 139:   <% end unless Team.for_user(@user).blank? -%>
> 140:   
> 141:   
> 142: 
>
> lib/gitorious/authorization/ldap/connection.rb:36:in `bind_as'
> app/models/ldap_group.rb:121:in `ldap_group_names_for_user'
> app/models/ldap_group.rb:224:in `groups_for_user'
> app/models/finders/ldap_group_finder.rb:57:in `for_user'
> app/models/team.rb:66:in `send'
>
>

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


Re: [gitorious] ldap teams / groups

2013-01-08 Thread Marius Mårnes Mathiesen

marcge...@gmail.com writes:

> Im getting this error trying to create teams with LDAP authentication:
> Also trying to check my profile in every user while the LDAP authentication
> is 'true'
>
> ActionView::TemplateError (Unable to connect to the LDAP server on
> X:389. Are you sure the LDAP server is running?) on line #139 of

The obvious question would be: Are you sure your LDAP server is running?

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: AD integration

2013-01-08 Thread marcgenou
test something like this:

production:
  disable_default: false
  methods:
  - adapter: Gitorious::Authentication::LDAPAuthentication
host: server_ip
port: 389
base_dn: DC=programmerblog,DC=local
login_attribute: sAMAccountName
distinguished_name_template: "{}programmerblog.local"
encryption: none
bind_username: ldap_reader_user
bind_password: password

El miércoles, 26 de diciembre de 2012 11:03:47 UTC+1, nikoladsp escribió:
>
> hi,
> i am testing gitorious as a local service at my company. currently i'm 
> having problems with AD integration. i tried several configurations by 
> reading various posts but with no luck. when using:
>
> env RAILS_ENV=production script/test_ldap_connection 
>  
> it says:
> All good, your credentials are correct
> which is afaik good :)
>
> but when trying logging using web interface, it fails. i have no idea what 
> is going on.
> my authentication.yml is as folows:
>
> production:
>   disable_default: false
>
>   methods:
> - adapter: Gitorious::Authentication::LDAPAuthentication
>   host: 
>   base_dn: OU=Users,OU=TDMS,DC=test,DC=local
>   distinguished_name_template: "{}@test.local"
>   attribute_mapping:
> mail: email
>   encryption: none
>   user_filter:
>   username_attribute: sAMAccountName
>   login_atribute: uid
>   cache_expiry: 60
>
> thanks in advance
>

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


[gitorious] ldap teams / groups

2013-01-08 Thread marcgenou
Im getting this error trying to create teams with LDAP authentication:
Also trying to check my profile in every user while the LDAP authentication 
is 'true'

ActionView::TemplateError (Unable to connect to the LDAP server on 
X:389. Are you sure the LDAP server is running?) on line #139 of 
app/views/users/show.html.erb:
136:   
137: <%= 
image_tag(group.avatar.url(:thumb), :alt => "Avatar", :width => "16") 
%> <%= link_to h(group.name), group_path(group) -%>
138:   <% end -%>
139:   <% end unless Team.for_user(@user).blank? -%>
140:   
141:   
142: 

lib/gitorious/authorization/ldap/connection.rb:36:in `bind_as'
app/models/ldap_group.rb:121:in `ldap_group_names_for_user'
app/models/ldap_group.rb:224:in `groups_for_user'
app/models/finders/ldap_group_finder.rb:57:in `for_user'
app/models/team.rb:66:in `send'

-- 
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: AD integration

2013-01-08 Thread marcgenou
Try this one:

production:
  disable_default: false
  methods:
- adapter: Gitorious::Authentication::LDAPAuthentication
  host: 
  port: 389
  base_dn: DC=,DC=local
  login_attribute: sAMAccountName
  distinguished_name_template: "{}@.local"
  encryption: none
  bind_username: ldapuser
  bind_password: password


On Wednesday, December 26, 2012 11:03:47 AM UTC+1, nikoladsp wrote:
>
> hi,
> i am testing gitorious as a local service at my company. currently i'm 
> having problems with AD integration. i tried several configurations by 
> reading various posts but with no luck. when using:
>
> env RAILS_ENV=production script/test_ldap_connection 
>  
> it says:
> All good, your credentials are correct
> which is afaik good :)
>
> but when trying logging using web interface, it fails. i have no idea what 
> is going on.
> my authentication.yml is as folows:
>
> production:
>   disable_default: false
>
>   methods:
> - adapter: Gitorious::Authentication::LDAPAuthentication
>   host: 
>   base_dn: OU=Users,OU=TDMS,DC=test,DC=local
>   distinguished_name_template: "{}@test.local"
>   attribute_mapping:
> mail: email
>   encryption: none
>   user_filter:
>   username_attribute: sAMAccountName
>   login_atribute: uid
>   cache_expiry: 60
>
> thanks in advance
>

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


Re: [gitorious] Projects.xml file and repositories

2013-01-08 Thread Marius Mårnes Mathiesen

Tobias Hunger writes:

> Qt Creator has a gitorious project wizard that grabs a list of projects
> from gitorious, offers the user to select one, pick a repository for that
> and then proceed to check it out. That is pretty convenient for our users
> to get started with projects hosted on gitorious...

I didn't know that, cool!

> But I just noticed that this has stopped working. We grab the list of
> projects from gitorious using http://gitorious.org/projects?format=xml and
> parse that. This does get the list of projects we need and it used to
> include the repositories used for each project in the  tags
> (nicely split into mainline repos and clones). That area is still there,
> but empty. Is there any way to get that information again or do I need to
> drop the gitorious wizard?

I'm not sure when this stopped working; we would have set up tests for
it if we knew it was being used. One way to get a list of the
repositories is to hit the XML representation of the project with all
its repositories after a project has been been selected. If, for
example, the user selects the "gitorious" project, a list of
repositories within that project can be fetched from the URL

  http://gitorious.org/gitorious.xml

This requires an additional HTTP request + XML parser round, but it does
mean that the project XML payload will be smaller. If this is
cumbersome, please add a ticket to our bug tracker:

  http://issues.gitorious.org/

and we'll handle it from there. The fact that others rely on this
feature means we should keep it working, so I really want your opinion
on this.

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


Re: [gitorious] Re: LDAP Authentication question

2013-01-08 Thread Marius Mårnes Mathiesen

vanna writes:
> 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?

What you should do is to log in with the username and password that gets
sent off to the LDAP server. In your case this would be be the username
and password, not the full email address.


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