Skip to content

Commit

Permalink
Fix LDAP groups sync regression (metabase#11654)
Browse files Browse the repository at this point in the history
  • Loading branch information
walterl authored and camsaul committed Jan 10, 2020
1 parent 8aa7c86 commit c063eba
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,8 @@ jobs:
then ./bin/build version frontend uberjar;
fi
no_output_timeout: 5m
- store_artifacts:
path: /home/circleci/metabase/metabase/target/uberjar/metabase.jar
- save_cache:
key: uberjar-{{ checksum "./backend-checksums.txt" }}-{{ checksum "./frontend-checksums.txt" }}
paths:
Expand Down
6 changes: 3 additions & 3 deletions src/metabase/integrations/ldap.clj
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@
:last-name lname
:email email
:groups (when (ldap-group-sync)
;; ActiveDirectory (and others?) will supply a `memberOf` overlay attribute for groups
;; Otherwise we have to make the inverse query to get them
(or (:memberOf result) (get-user-groups dn) []))})))))
;; Active Directory and others (like FreeIPA) will supply a `memberOf` overlay attribute for
;; groups. Otherwise we have to make the inverse query to get them.
(or (:memberof result) (get-user-groups dn) []))})))))

(defn verify-password
"Verifies if the supplied password is valid for the `user-info` (from `find-user`) or DN."
Expand Down

0 comments on commit c063eba

Please sign in to comment.