summaryrefslogtreecommitdiff
path: root/lib/gitlab/ldap
Commit message (Collapse)AuthorAgeFilesLines
* Adds Rubocop rule for line break around conditionals🙈 jacopo beschi 🙉2018-01-111-0/+1
|
* Modify `LDAP::Person` to return username value based on attributesDrew Blessing2018-01-043-8/+32
| | | | | | | | | `Gitlab::LDAP::Person` did not respect the LDAP attributes username configuration and would simply return the uid value. There are cases where users would like to specify a different username field to allow more friendly GitLab usernames. For example, it's common in AD to have sAMAccountName be an employee ID like `A12345` while the local part of the email address is more human-friendly.
* Make sure user email is read only when synced with LDAPDouwe Maan2017-12-151-4/+0
|
* Merge branch '18040-rubocop-line-break-after-guard-clause' into 'master'Rémy Coutable2017-11-201-0/+1
|\ | | | | | | | | | | | | Adds Rubocop rule for line break after guard clause Closes #18040 See merge request gitlab-org/gitlab-ce!15188
| * Adds Rubocop rule for line break after guard clauseJacopo2017-11-161-0/+1
| | | | | | | | Adds a rubocop rule (with autocorrect) to ensure line break after guard clauses.
* | Changing OAuth lookup to be case insensitiveFrancisco Javier López2017-11-171-4/+1
|/
* Normalize LDAP DN when looking up identityDouwe Maan2017-10-312-3/+4
|
* Redefine `respond_to?` in light of `method_missing`Michael Kozono2017-10-071-0/+6
|
* Make internal methods privateMichael Kozono2017-10-071-20/+22
|
* Leave bad DNs alone instead of raising errorsMichael Kozono2017-10-072-3/+10
|
* Refactor DN error classesMichael Kozono2017-10-072-14/+15
|
* Normalize values, reusing DN normalization codeMichael Kozono2017-10-072-33/+8
| | | | I first attempted to extract logic from the code that normalizes DNs, but I was unsuccessful. This is a hack but it works.
* Fix space strippingMichael Kozono2017-10-071-20/+24
| | | | Especially from the last attribute value.
* Rename method to `to_normalized_s`Michael Kozono2017-10-073-3/+3
|
* Refactor initialize method for clarityMichael Kozono2017-10-071-11/+20
|
* Move downcasing to normalize methodMichael Kozono2017-10-071-10/+10
|
* Resolve Rubocop offensesMichael Kozono2017-10-071-17/+25
| | | | Disabling some for now since this is based on `Net::LDAP::DN`.
* Switch to new DN classMichael Kozono2017-10-072-17/+2
| | | | for normalizing and parsing DNs
* Fix trailing escaped newlineMichael Kozono2017-10-071-2/+2
|
* Test malformed DNsMichael Kozono2017-10-071-9/+12
|
* Raise UnsupportedDnFormatError on multivalued RDNsMichael Kozono2017-10-071-0/+2
|
* Fix for null DNMichael Kozono2017-10-071-1/+1
|
* Handle CR and LF charactersMichael Kozono2017-10-071-1/+12
|
* Fix escaped equal signsMichael Kozono2017-10-071-4/+6
|
* Fix trailing escaped spaceMichael Kozono2017-10-071-0/+11
|
* Fix to_s_normalize for escaped leading spaceMichael Kozono2017-10-071-11/+3
|
* Always downcase DNsMichael Kozono2017-10-071-10/+12
|
* Add `DN#to_s_normalized`Michael Kozono2017-10-071-1/+7
|
* Adapt DN class for GitlabMichael Kozono2017-10-071-195/+207
|
* Extract Net::LDAP::DN class from ruby-net-ldap gemMichael Kozono2017-10-071-0/+224
|
* Rely on LDAP providers giving DNs, not UIDsMichael Kozono2017-10-072-23/+1
|
* Rescue DN normalization attemptsMichael Kozono2017-10-071-0/+15
|
* Fix `dn?` for a UID with an escaped equal signMichael Kozono2017-10-071-1/+1
|
* Remove redundant `is_`Michael Kozono2017-10-071-2/+2
|
* Downcase normalized LDAP DNs and UIDsMichael Kozono2017-10-071-1/+1
|
* Fix normalize behavior for escaped delimiter charsMichael Kozono2017-10-071-1/+1
|
* Refactor to distinguish between UIDs and DNsMichael Kozono2017-10-072-1/+30
|
* Trim extraneous spaces from DNsMichael Kozono2017-10-072-1/+44
|
* Merge branch '33493-attempt-to-link-saml-users-to-ldap-by-email' into 'master'Douwe Maan2017-10-023-33/+21
|\ | | | | | | | | | | | | Attempt to link saml users to ldap by email Closes #33493 See merge request gitlab-org/gitlab-ce!14216
| * Refactors SAML identity creation in gl_user.Tiago Botelho2017-10-023-36/+12
| |
| * Creates compound query for LDAP email attributes.Tiago Botelho2017-09-252-7/+15
| |
| * Attempt to link saml users to ldap by emailTiago Botelho2017-09-251-0/+4
| |
* | refactor users update serviceJames Lopez2017-09-281-1/+1
| |
* | refactor services to match EE signatureJames Lopez2017-09-281-1/+1
|/
* Profile updates from providersAlexander Keramidas2017-09-061-2/+2
|
* Support simple string LDAP attribute specifications, and search for name ↵dm-ldap-adapter-attributesDouwe Maan2017-08-232-5/+10
| | | | rather than username attributes
* Merge branch 'rs-more-public-send-whitelists' into 'master'Rémy Coutable2017-08-161-2/+2
|\ | | | | | | | | Whitelist or fix additional `Gitlab/PublicSend` cop violations See merge request !13467
| * Whitelist or fix additional `Gitlab/PublicSend` cop violationsrs-more-public-send-whitelistsRobert Speicher2017-08-141-2/+2
| | | | | | | | | | An upcoming update to rubocop-gitlab-security added additional violations.
* | Enable Layout/TrailingWhitespace cop and auto-correct offensesRobert Speicher2017-08-151-1/+1
|/
* Pass OmniAuth formatted options to OmniAuth::LDAP::Adaptordm-ldap-authentication-ssl-verificationDouwe Maan2017-07-311-1/+1
|