gitorious:felixtrillers-mainline.git
5 years agoWillPaginate doesn't work with Thinking Sphinx
Marius Mathiesen [Fri, 23 Nov 2012 13:49:23 +0000 (14:49 +0100)]
WillPaginate doesn't work with Thinking Sphinx

5 years agoMerge branch 'hotfix/issue-138' into next
Marius Mathiesen [Fri, 16 Nov 2012 07:25:15 +0000 (08:25 +0100)]
Merge branch 'hotfix/issue-138' into next

5 years agoEnsure groups are valid in Groups#create - fixes #138
Marius Mathiesen [Fri, 16 Nov 2012 07:24:44 +0000 (08:24 +0100)]
Ensure groups are valid in Groups#create - fixes #138

5 years agoSeems there's a wrapper of some kind around the memcache store.
Marius Mathiesen [Tue, 13 Nov 2012 15:33:55 +0000 (16:33 +0100)]
Seems there's a wrapper of some kind around the memcache store.

5 years agoAllow configuring Memcache
Marius Mathiesen [Tue, 13 Nov 2012 13:31:22 +0000 (14:31 +0100)]
Allow configuring Memcache

By editing config/memcache.yml you may now define several hosts/ports.
The default still applies: a single Memcache server on localhost

5 years agoExtract logic for custom initializer/yaml file pair
Marius Mathiesen [Tue, 13 Nov 2012 13:06:24 +0000 (14:06 +0100)]
Extract logic for custom initializer/yaml file pair

Introducing Gitorious.on_config, which simplifies this.

5 years agoAllow configuring Resque with a remote Redis host/port
Marius Mathiesen [Tue, 13 Nov 2012 09:23:36 +0000 (10:23 +0100)]
Allow configuring Resque with a remote Redis host/port

5 years agoChange Gravatar URL generation, as reported in #137
Marius Mathiesen [Mon, 12 Nov 2012 08:24:27 +0000 (09:24 +0100)]
Change Gravatar URL generation, as reported in #137

5 years agoMerge branch 'hotfix/fix_migration' into next
Marius Mathiesen [Wed, 31 Oct 2012 12:46:12 +0000 (13:46 +0100)]
Merge branch 'hotfix/fix_migration' into next

5 years agoMerge branch 'hotfix/fix_migration'
Marius Mathiesen [Wed, 31 Oct 2012 12:45:55 +0000 (13:45 +0100)]
Merge branch 'hotfix/fix_migration'

5 years agoWiki git path is a text attribute
Marius Mathiesen [Wed, 31 Oct 2012 12:45:48 +0000 (13:45 +0100)]
Wiki git path is a text attribute

5 years agoResolve an issue where migrations would be canceled in production Rails.env
Marius Mathiesen [Wed, 31 Oct 2012 12:44:29 +0000 (13:44 +0100)]
Resolve an issue where migrations would be canceled in production Rails.env

Referencing a model inside a migration seems to confuse AR's mapping
of tables and columns. Doing a raw execute resolves this.

5 years agoMerge branch 'hotfix/fix_empty_group' into next
Marius Mathiesen [Tue, 30 Oct 2012 11:55:17 +0000 (12:55 +0100)]
Merge branch 'hotfix/fix_empty_group' into next

5 years agoMerge branch 'hotfix/fix_empty_group'
Marius Mathiesen [Tue, 30 Oct 2012 11:54:44 +0000 (12:54 +0100)]
Merge branch 'hotfix/fix_empty_group'

5 years agoFix an error where creating an invalid group would fail.
Marius Mathiesen [Tue, 30 Oct 2012 11:54:12 +0000 (12:54 +0100)]
Fix an error where creating an invalid group would fail.

5 years agoExtract search indices outside model declarations
Marius Mathiesen [Mon, 29 Oct 2012 17:56:58 +0000 (18:56 +0100)]
Extract search indices outside model declarations

Set up indexing information after the app has been loaded.

5 years agoSupply a default RAILS_ENV again
Marius Mathiesen [Mon, 29 Oct 2012 13:15:35 +0000 (14:15 +0100)]
Supply a default RAILS_ENV again

The default RAILS_ENV was previously set by an Ultrasphinx Rake task
file, which is no longer loaded. The natural place to put this would
be config/environment.rb, but Rakefile only loads config/boot.rb so
that's where it will stay for now.

5 years agoIgnore generated sphinx configuration
Marius Mathiesen [Mon, 29 Oct 2012 12:18:46 +0000 (13:18 +0100)]
Ignore generated sphinx configuration

5 years agoReplace Ultrasphinx with ThinkingSphinx
Marius Mathiesen [Mon, 29 Oct 2012 10:15:49 +0000 (11:15 +0100)]
Replace Ultrasphinx with ThinkingSphinx

The Ultrasphinx plugin has been abandoned, so we're switching to
ThinkingSphinx instead. The good news is that we're still using the
same search engine, and that all the internal indexing/searching logic
has been preserved through the rewrite.

However, if you maintain your own server, you will need to make a few
changes.  The ultrasphinx: rake tasks no longer exist, but have been
replaced by thinking_sphinx tasks:

- rake thinking_sphinx:config generates the Sphinx configuration file
- rake thinking_sphinx:index indexes the Sphinx data rake
- thinking_sphinx:rebuild stops, reindexes and starts Sphinx rake
- thinking_sphinx:reindex reindexes without re-generating a
  configuration file
- thinking_sphinx:stop stops Sphinx
- thinking_sphinx:start starts Sphinx
- thinking_sphinx:running_start stops Sphinx if it's running and then starts
  it

5 years agoRemove dated config.gem
Christian Johansen [Thu, 25 Oct 2012 09:33:36 +0000 (11:33 +0200)]
Remove dated config.gem

5 years agoStop using deprecated constants
Christian Johansen [Thu, 25 Oct 2012 09:15:53 +0000 (11:15 +0200)]
Stop using deprecated constants

  * RAILS_ROOT -> Rails.root (Pathname instance)
  * RAILS_ENV -> Rails.env
  * RAILS_DEFAULT_LOGGER -> Rails.logger

5 years agoRefactor: Extract RepositoryBuilder
Christian Johansen [Fri, 19 Oct 2012 20:19:34 +0000 (22:19 +0200)]
Refactor: Extract RepositoryBuilder

5 years agoFix failing and irrelevant tests
Christian Johansen [Thu, 18 Oct 2012 08:03:16 +0000 (10:03 +0200)]
Fix failing and irrelevant tests

5 years agoFix escaping/block capturing/block helper rendering
Christian Johansen [Thu, 18 Oct 2012 05:54:29 +0000 (07:54 +0200)]
Fix escaping/block capturing/block helper rendering

5 years agoUse autoload_paths in place of load_paths
Christian Johansen [Thu, 18 Oct 2012 05:35:56 +0000 (07:35 +0200)]
Use autoload_paths in place of load_paths

5 years agoUnvendor and upgrade Rails to 2.3.14
Christian Johansen [Wed, 17 Oct 2012 14:06:09 +0000 (16:06 +0200)]
Unvendor and upgrade Rails to 2.3.14

5 years agoGemfile that works with Rails > 2.3.6
Christian Johansen [Wed, 17 Oct 2012 13:46:58 +0000 (15:46 +0200)]
Gemfile that works with Rails > 2.3.6

5 years agoAvoid Kernel#returning, use Object#tap instead
Christian Johansen [Wed, 17 Oct 2012 13:18:05 +0000 (15:18 +0200)]
Avoid Kernel#returning, use Object#tap instead

5 years agoAvoid some over-eager Rails escaping
Christian Johansen [Wed, 17 Oct 2012 11:25:38 +0000 (13:25 +0200)]
Avoid some over-eager Rails escaping

5 years agoUse i18n in a post Rails 2.3.5-compatible way
Christian Johansen [Wed, 17 Oct 2012 09:46:07 +0000 (11:46 +0200)]
Use i18n in a post Rails 2.3.5-compatible way

  - Don't use call and lambdas for messages
  - Don't call methods in messages
  - Prepare all paths and complex values when calling t()

5 years agoUpdate HACKING to reflect the git-flow branching model
Marius Mathiesen [Tue, 16 Oct 2012 08:53:02 +0000 (10:53 +0200)]
Update HACKING to reflect the git-flow branching model

5 years agoRemove extra puts
Thomas Kjeldahl Nilsson [Fri, 12 Oct 2012 07:27:42 +0000 (09:27 +0200)]
Remove extra puts

5 years agoMake sure mirrored project dir is present before symlinking
Thomas Kjeldahl Nilsson [Fri, 12 Oct 2012 07:03:08 +0000 (09:03 +0200)]
Make sure mirrored project dir is present before symlinking

5 years agoMerge branch 'master' of gitorious.org:gitorious/mainline
Thomas Kjeldahl Nilsson [Thu, 11 Oct 2012 12:07:10 +0000 (14:07 +0200)]
Merge branch 'master' of gitorious.org:gitorious/mainline

5 years agoWhen mirroring repo dir, put each repo under project folder.
Thomas Kjeldahl Nilsson [Thu, 11 Oct 2012 12:05:55 +0000 (14:05 +0200)]
When mirroring repo dir, put each repo under project folder.

5 years agoExcessive white-space
Christian Johansen [Wed, 10 Oct 2012 10:30:22 +0000 (12:30 +0200)]
Excessive white-space

5 years agoExplictily provide which mainlines and clones to serialize as XML
Christian Johansen [Wed, 10 Oct 2012 09:27:32 +0000 (11:27 +0200)]
Explictily provide which mainlines and clones to serialize as XML

5 years agoFix issue #125: empty list of target branches
Marius Mathiesen [Tue, 9 Oct 2012 09:20:18 +0000 (11:20 +0200)]
Fix issue #125: empty list of target branches

While introducing support for private repositories, the list of target
branches in a repository was filtered; Grit::Head objects do not
support (and should not support) access control. Access control should
be done on a higher level (repository).

5 years agoSupport access granted on a user level when using LDAP features/ldap_authorization
Marius Mathiesen [Mon, 8 Oct 2012 10:33:26 +0000 (12:33 +0200)]
Support access granted on a user level when using LDAP

Until this commit, a user with permissions granted to the user himself
would not be allowed to:

- resolve merge requests
- administer a repository

Furthermore, while reviewing Merge Request 217, the following issues
arose, which are resolved here:

- the script/ldap_authorization.rb script is not really useful
- explain what @authorizer is in [ldap_]group_authorization.

5 years agoFix incorrect merge of MergeRequestsController
Marius Mathiesen [Mon, 8 Oct 2012 08:36:46 +0000 (10:36 +0200)]
Fix incorrect merge of MergeRequestsController

The event should be created *before* the rest of the logic

5 years agoAvoid a validation error in Repository#destroy
Marius Mathiesen [Wed, 26 Sep 2012 11:19:33 +0000 (13:19 +0200)]
Avoid a validation error in Repository#destroy

ActiveRecord would throw a validation error when creating(!) the
tracking repository for a repository while sending branch deletion
notifications from merge request versions while removing a repository.

Ensuring that all merge requests are removed before removing a
repository and reloading the repository resolves this error, and makes
it possible to destroy repositories.

This commit would be considered pragmatic.

5 years agoFix a typo causing Team#by_admin to fail with classic Groups
Marius Mathiesen [Mon, 24 Sep 2012 11:31:05 +0000 (13:31 +0200)]
Fix a typo causing Team#by_admin to fail with classic Groups

The parameters to Team.by_admin had been swapped, causing an empty
list to be returned. This would cause things like transferring
ownership to a group to be impossible.

5 years agoDeliver email notifications to merge request reviewers on MR creation
Marius Mathiesen [Wed, 19 Sep 2012 09:13:53 +0000 (11:13 +0200)]
Deliver email notifications to merge request reviewers on MR creation

By adding new merge requests to the reviewers' favorites before
creating the creation event, the inner workings of Event will have
notifications delivered by email for target repository reviewers.

5 years agoSupport caching of LDAP group member lookups
Marius Mathiesen [Wed, 19 Sep 2012 08:26:40 +0000 (10:26 +0200)]
Support caching of LDAP group member lookups

A cache expiry can be defined in authentication.yml to have Gitorious
cache the usernames which are members of a group.

5 years agoBuild a synthetic email in auto registration of users from LDAP if none found
Marius Mathiesen [Wed, 19 Sep 2012 07:04:17 +0000 (09:04 +0200)]
Build a synthetic email in auto registration of users from LDAP if none found

Auto registration of user accounts would fail if no email address is
found in LDAP. We will now construct a synthetic address in these
cases, to ensure users are able to log in.

It would make sense for such users to add a valid email address afterwards.

5 years agoToo fast with git-mergetool, re-adding helper
Marius Mathiesen [Fri, 14 Sep 2012 13:53:21 +0000 (15:53 +0200)]
Too fast with git-mergetool, re-adding helper

5 years agoLdapGroup#ldap_group_names= handles CRLF as well as LF
Marius Mathiesen [Thu, 13 Sep 2012 13:41:35 +0000 (15:41 +0200)]
LdapGroup#ldap_group_names= handles CRLF as well as LF

5 years agoDon't display link to add member in Memberships#index
Marius Mathiesen [Thu, 13 Sep 2012 13:33:05 +0000 (15:33 +0200)]
Don't display link to add member in Memberships#index

5 years agoSearch for users using base dn, not group search DN
Marius Mathiesen [Thu, 13 Sep 2012 12:27:41 +0000 (14:27 +0200)]
Search for users using base dn, not group search DN

5 years agoInstance, not class
Marius Mathiesen [Thu, 13 Sep 2012 12:01:06 +0000 (14:01 +0200)]
Instance, not class

5 years agoReverse username transformation when passing username to LDAP
Marius Mathiesen [Thu, 13 Sep 2012 11:56:20 +0000 (13:56 +0200)]
Reverse username transformation when passing username to LDAP

5 years agoDon't display edit-link for LDAP group memberships
Marius Mathiesen [Thu, 13 Sep 2012 11:05:16 +0000 (13:05 +0200)]
Don't display edit-link for LDAP group memberships

5 years agoRepositories owned by an LDAP group should be considered group owned
Marius Mathiesen [Tue, 28 Aug 2012 12:24:59 +0000 (14:24 +0200)]
Repositories owned by an LDAP group should be considered group owned

5 years agoAllow users to control projects even with LDAP auth turned on
Marius Mathiesen [Tue, 28 Aug 2012 12:08:29 +0000 (14:08 +0200)]
Allow users to control projects even with LDAP auth turned on

5 years agoSupport transferring ownership of a repo to LDAP groups (update)
Marius Mathiesen [Tue, 28 Aug 2012 12:07:59 +0000 (14:07 +0200)]
Support transferring ownership of a repo to LDAP groups (update)

5 years agoLet LDAP group members administer projects
Marius Mathiesen [Tue, 28 Aug 2012 11:37:41 +0000 (13:37 +0200)]
Let LDAP group members administer projects

5 years agoAllow transferring project ownership to any groups user is member of
Marius Mathiesen [Tue, 28 Aug 2012 11:31:47 +0000 (13:31 +0200)]
Allow transferring project ownership to any groups user is member of

This fixes a failing test in the previous commit.
A user may transfer project ownership not just to groups he is admin for.

5 years agoSupport transferring project ownership to LDAP group
Marius Mathiesen [Tue, 28 Aug 2012 11:13:56 +0000 (13:13 +0200)]
Support transferring project ownership to LDAP group

5 years agoUse default protocol in merge request instructions
Marius Mathiesen [Tue, 28 Aug 2012 10:20:23 +0000 (12:20 +0200)]
Use default protocol in merge request instructions

In the "how to apply" section, respect which protocols are available.

5 years agoRemove referenced read access when teams are removed
Marius Mathiesen [Tue, 28 Aug 2012 09:26:00 +0000 (11:26 +0200)]
Remove referenced read access when teams are removed

5 years agoIntroduce LdapGroup#memberships
Marius Mathiesen [Tue, 28 Aug 2012 08:09:56 +0000 (10:09 +0200)]
Introduce LdapGroup#memberships

*Very* simplistic, will list only direct members and ignore several
 attributes (role, created at etc). But it does make it possible to
 follow the link from a project to its members.

5 years agoMake username transformation shareable
Marius Mathiesen [Fri, 20 Jul 2012 12:30:17 +0000 (14:30 +0200)]
Make username transformation shareable

Also some minor things:
- don't throw an error when viewing a user without LDAP group memberships
- don't debug LDAP output to stdout

5 years agoOne more
Marius Mathiesen [Fri, 20 Jul 2012 08:09:20 +0000 (10:09 +0200)]
One more

5 years agoWhoops
Marius Mathiesen [Fri, 20 Jul 2012 08:07:03 +0000 (10:07 +0200)]
Whoops

5 years agoMore debugging: normalize login when searching for users
Marius Mathiesen [Fri, 20 Jul 2012 08:06:12 +0000 (10:06 +0200)]
More debugging: normalize login when searching for users

5 years agoAdding some debug statements
Marius Mathiesen [Fri, 20 Jul 2012 08:03:25 +0000 (10:03 +0200)]
Adding some debug statements

5 years agoFixed a typo in sample config file
Marius Mathiesen [Fri, 20 Jul 2012 07:50:32 +0000 (09:50 +0200)]
Fixed a typo in sample config file

5 years agoIntroducing support for using a different base DN when searching for groups
Marius Mathiesen [Fri, 20 Jul 2012 07:42:38 +0000 (09:42 +0200)]
Introducing support for using a different base DN when searching for groups

When using LDAP groups for authorization, we now support specifying a
different DN when searching for groups. By default, the same base_dn
as is used for authentication is used.

5 years agoHaving build_username private made test_ldap_connection give an error on invalid...
Marius Mathiesen [Thu, 19 Jul 2012 10:35:59 +0000 (12:35 +0200)]
Having build_username private made test_ldap_connection give an error on invalid password

5 years agoSupport authenticated bind in LDAP.
Marius Mathiesen [Thu, 19 Jul 2012 10:26:53 +0000 (12:26 +0200)]
Support authenticated bind in LDAP.

Many LDAP installations use a two-step authentication scheme:
- first you connect with an unprivileged user's credentials
- once that is done, connect with the real user

This is supported in Net::LDAP through the bind_as method, which will:
- bind as the bind user
- do a search (as the bind user) for a user record with the provided
  username and password
- if this matches too, let the user in

Gitorious now handles situations where no bind_user section was specified
in authentication.yml.

5 years agoMove inline classes out of same file
Marius Mathiesen [Tue, 17 Jul 2012 09:14:08 +0000 (11:14 +0200)]
Move inline classes out of same file

5 years agoDelegate group finder methods directly
Marius Mathiesen [Tue, 17 Jul 2012 09:01:32 +0000 (11:01 +0200)]
Delegate group finder methods directly

5 years agoInclude member list in Groups#new
Marius Mathiesen [Thu, 12 Jul 2012 13:37:48 +0000 (15:37 +0200)]
Include member list in Groups#new

5 years agoBetter add a failing test for private repositories as well
Marius Mathiesen [Thu, 12 Jul 2012 12:53:39 +0000 (14:53 +0200)]
Better add a failing test for private repositories as well

5 years agoSupport private repositories with LDAP authorization
Marius Mathiesen [Thu, 12 Jul 2012 12:49:21 +0000 (14:49 +0200)]
Support private repositories with LDAP authorization

This was easier than I feared. It was simply a matter of
- Use Team#find_by_name! to find an LdapGroup or Group to save
  as content membership
- Implement LdapGroup#member?
- Add a test which demonstrates this (Projects#show in private mode
  with a LdapGroup based content membership)

5 years agoList direct members in LdapGroup#show
Marius Mathiesen [Thu, 12 Jul 2012 08:58:27 +0000 (10:58 +0200)]
List direct members in LdapGroup#show

5 years agoProperly implement LdapGroup#members
Marius Mathiesen [Thu, 12 Jul 2012 08:53:15 +0000 (10:53 +0200)]
Properly implement LdapGroup#members

Note that not all members will be returned unless you're using a very flat
LDAP setup.

5 years agoCache the LDAP group names for an hour
Marius Mathiesen [Thu, 12 Jul 2012 08:52:28 +0000 (10:52 +0200)]
Cache the LDAP group names for an hour

5 years agoSupport looking up (User) members of an LDAP group
Marius Mathiesen [Thu, 12 Jul 2012 08:09:48 +0000 (10:09 +0200)]
Support looking up (User) members of an LDAP group

- Provide example values for membership and member attribute names
  in authentication_sample.yml

5 years agoMove group authorization strategies into separate classes
Marius Mathiesen [Tue, 10 Jul 2012 13:47:46 +0000 (15:47 +0200)]
Move group authorization strategies into separate classes

Our include/extend/configure setup has reached a level where I'm unable to
make an elegant solution at 4pm on a Tuesday.

Construct separate classes (strategies?) for Group and Ldap group authorization
backends to reduce code clutter.

5 years agoWe currently don't support listing members of a LDAP backed committership
Marius Mathiesen [Tue, 10 Jul 2012 12:56:33 +0000 (14:56 +0200)]
We currently don't support listing members of a LDAP backed committership

5 years agoGrant review access under LDAP authorization
Marius Mathiesen [Tue, 10 Jul 2012 11:30:25 +0000 (13:30 +0200)]
Grant review access under LDAP authorization

5 years agoDon't bother looking up group memberships for anonymous users
Marius Mathiesen [Tue, 10 Jul 2012 10:16:25 +0000 (12:16 +0200)]
Don't bother looking up group memberships for anonymous users

5 years agoImplement repository admin checks via LDAP authorization
Marius Mathiesen [Fri, 6 Jul 2012 13:15:22 +0000 (15:15 +0200)]
Implement repository admin checks via LDAP authorization

5 years agoSupport authorization for push with LDAP backend
Marius Mathiesen [Fri, 6 Jul 2012 12:39:23 +0000 (14:39 +0200)]
Support authorization for push with LDAP backend

When Gitorious is configured to use LDAP for authorization,
authorization for push needs to be done differently from
otherwise.

Rather than collecting all users who have push access and seeing if a
given user is included, we start off with the groups a user is member
of (from LDAP) and see if any of these have push access to the
repository. This is (mainly) because the list of users who are member
of a group lives in LDAP, not our database.

5 years agoDisplay group membership on profile page for any group implementation
Marius Mathiesen [Thu, 5 Jul 2012 12:08:34 +0000 (14:08 +0200)]
Display group membership on profile page for any group implementation

Added a convenience method for getting group memberships for a user in Team, use
this in view

5 years agoAdd documentation for bind user in sample authentication.yml
Marius Mathiesen [Tue, 3 Jul 2012 13:03:20 +0000 (15:03 +0200)]
Add documentation for bind user in sample authentication.yml

5 years agoSupport LdapGroup as committer
Marius Mathiesen [Fri, 8 Jun 2012 11:41:57 +0000 (13:41 +0200)]
Support LdapGroup as committer

- Complete LdapGroup names
- Support LdapGroup as committer in committerships
- Move fuzzy search for group into Team

5 years agoAdd validations to LdapGroup
Marius Mathiesen [Fri, 8 Jun 2012 10:54:33 +0000 (12:54 +0200)]
Add validations to LdapGroup

- First of all, member DNs should not contain the base DN
- Next, we will verify that the listed groups actually exist on
  the server

5 years agoSeems we've been rolling with a really antique LDAP library
Marius Mathiesen [Fri, 8 Jun 2012 10:53:03 +0000 (12:53 +0200)]
Seems we've been rolling with a really antique LDAP library

5 years agoSupport creating/updating projects with an LdapGroup as owner
Marius Mathiesen [Thu, 7 Jun 2012 12:55:58 +0000 (14:55 +0200)]
Support creating/updating projects with an LdapGroup as owner

- Extract more common behaviour in Group/LDapGroup

5 years agoSupport transferring ownership of a project to an LDAP team
Marius Mathiesen [Thu, 7 Jun 2012 12:27:26 +0000 (14:27 +0200)]
Support transferring ownership of a project to an LDAP team

- Also add lib/gitorious to ActiveSupport::Dependencies.load_once_paths
  to avoid "module unloaded" messages

5 years agoImprove browsing of (Ldap)Group.
Marius Mathiesen [Tue, 5 Jun 2012 13:42:31 +0000 (15:42 +0200)]
Improve browsing of (Ldap)Group.

LdapGroup owned projects now render correctly:
- Move LdapGroup url helpers into shared module
- Extract instance behaviors for Groups
- Extract partial for member listing in Groups#show

5 years agoClean up conditionals, replace with polymorphism
Marius Mathiesen [Tue, 5 Jun 2012 12:51:42 +0000 (14:51 +0200)]
Clean up conditionals, replace with polymorphism

5 years agoUnit test for Team, replace conditional with polymorphism
Marius Mathiesen [Tue, 5 Jun 2012 12:06:26 +0000 (14:06 +0200)]
Unit test for Team, replace conditional with polymorphism

5 years agoEnsure LdapGroup#ldap_group_names returns an array
Marius Mathiesen [Tue, 5 Jun 2012 09:04:43 +0000 (11:04 +0200)]
Ensure LdapGroup#ldap_group_names returns an array

5 years agoMatch LDAP-provided membership DNs to (internal) LdapGroups
Marius Mathiesen [Thu, 31 May 2012 13:13:42 +0000 (15:13 +0200)]
Match LDAP-provided membership DNs to (internal) LdapGroups

LDAP returns a list of groups a user is member of while Gitorious matches these DNs
to those LdapGroup objects registered with these DNs set up

5 years agoBuild an LDAP connection in the same way as for authentication
Marius Mathiesen [Thu, 31 May 2012 12:09:05 +0000 (14:09 +0200)]
Build an LDAP connection in the same way as for authentication

Ie: support encryption as well

5 years agoLet LdapGroup look up all LDAP group memberships for a user
Marius Mathiesen [Thu, 31 May 2012 12:06:55 +0000 (14:06 +0200)]
Let LdapGroup look up all LDAP group memberships for a user

Re-use configuration from LdapAuthentication

5 years agoMoving LDAP configuration into a separate class
Marius Mathiesen [Thu, 31 May 2012 11:51:17 +0000 (13:51 +0200)]
Moving LDAP configuration into a separate class

We will be re-using LDAP configuration specified for authentication when
using LDAP for authorization. Extracted this into a reusable module.