Skip to content

Commit

Permalink
Add support for roles (bigbluebutton#656)
Browse files Browse the repository at this point in the history
* Add support for ldap roles

* Remove debugger

* Remove bundled with

* Update omniauth-bn-launcher version
  • Loading branch information
shawn-higgins1 authored and jfederico committed Jul 24, 2019
1 parent 0934919 commit 79188a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ gem 'omniauth'
gem 'omniauth-twitter'
gem 'omniauth-google-oauth2'
gem 'omniauth-bn-office365', git: 'https://github.com/blindsidenetworks/omniauth-bn-office365.git', tag: '0.1.0'
gem 'omniauth-bn-launcher', git: 'https://github.com/blindsidenetworks/omniauth-bn-launcher.git', tag: '0.1.1'
gem 'omniauth-bn-launcher', git: 'https://github.com/blindsidenetworks/omniauth-bn-launcher.git', tag: '0.1.2'
gem 'bn-ldap-authentication', git: 'https://github.com/blindsidenetworks/bn-ldap-authentication.git'
gem 'net-ldap'

Expand Down
10 changes: 5 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
GIT
remote: https://github.com/blindsidenetworks/bn-ldap-authentication.git
revision: 538132e0df70dbe470120f7bc7a93968c522031f
revision: 9b93c64f106675755577f45d1fe520ca5405d522
specs:
bn-ldap-authentication (1.0.0)
bn-ldap-authentication (1.0.1)
net-ldap

GIT
remote: https://github.com/blindsidenetworks/omniauth-bn-launcher.git
revision: 025785046c3d532ed2252ef4762469c8d08d4839
tag: 0.1.1
revision: 4f43f9df48f92c209176ab487fc9b45bbb660b9b
tag: 0.1.2
specs:
omniauth-bn-launcher (0.1.1)
omniauth-bn-launcher (0.1.2)
omniauth (~> 1.3, >= 1.3.2)
omniauth-oauth2 (= 1.5.0)

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def ldap
return redirect_to(ldap_signin_path, alert: I18n.t("invalid_credentials"))
end

@auth = parse_auth(result)
@auth = parse_auth(result, ENV['LDAP_ROLE_FIELD'])

process_signin
end
Expand Down
2 changes: 2 additions & 0 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,15 @@ OFFICE365_HD=
# LDAP_BASE=dc=example,dc=com
# LDAP_BIND_DN=cn=admin,dc=example,dc=com
# LDAP_PASSWORD=password
# LDAP_ROLE_FIELD=ou
LDAP_SERVER=
LDAP_PORT=
LDAP_METHOD=
LDAP_UID=
LDAP_BASE=
LDAP_BIND_DN=
LDAP_PASSWORD=
LDAP_ROLE_FIELD=

# Set this to true if you want GreenLight to support user signup and login without
# Omniauth. For more information, see:
Expand Down

0 comments on commit 79188a6

Please sign in to comment.