Skip to content

Commit

Permalink
Merge pull request #215 from silinternational/develop
Browse files Browse the repository at this point in the history
Release 5.3.4
  • Loading branch information
briskt authored Jan 5, 2021
2 parents f066cd8 + b5ef3bc commit c31107a
Show file tree
Hide file tree
Showing 14 changed files with 261 additions and 167 deletions.
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [5.3.4]
### Fixed
- Improved handling of expired session on login

## [5.3.3]
### Fixed
- Updated dependencies
- Rotated credentials for CI/CD

## [5.3.2]
### Fixed
### Fixed
- Changed Docker credentials

## [5.3.1]
Expand Down Expand Up @@ -129,7 +138,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Added
- Initial version of Password Manager Backend.

[Unreleased]: https://github.com/silinternational/idp-pw-api/compare/5.3.2...HEAD
[Unreleased]: https://github.com/silinternational/idp-pw-api/compare/5.3.4...HEAD
[5.3.4]: https://github.com/silinternational/idp-pw-api/compare/5.3.3..5.3.4
[5.3.3]: https://github.com/silinternational/idp-pw-api/compare/5.3.2..5.3.3
[5.3.2]: https://github.com/silinternational/idp-pw-api/compare/5.3.1..5.3.2
[5.3.1]: https://github.com/silinternational/idp-pw-api/compare/5.3.0..5.3.1
[5.3.0]: https://github.com/silinternational/idp-pw-api/compare/5.2.2...5.3.0
Expand Down
4 changes: 2 additions & 2 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2020 SIL International
Copyright (c) 2021 SIL International

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ composer:
docker-compose run --rm cli composer install

composerupdate:
docker-compose run --rm cli composer update
docker-compose run --rm cli bash -c "composer update && composer show -D > versions.json"

email:
docker-compose up -d email
Expand Down
10 changes: 8 additions & 2 deletions application/common/components/passwordStore/Ldap.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
namespace common\components\passwordStore;

use Adldap\Adldap;
use Adldap\Auth\BindException;
use Adldap\Schemas\OpenLDAP;
use yii\base\Component;

Expand Down Expand Up @@ -78,6 +79,7 @@ class Ldap extends Component implements PasswordStoreInterface

/**
* Connect and bind to ldap server
* @throws \Exception
*/
public function connect()
{
Expand All @@ -101,7 +103,11 @@ public function connect()
'schema' => OpenLDAP::class,
]);

$this->ldapProvider = $this->ldapClient->connect();
try {
$this->ldapProvider = $this->ldapClient->connect();
} catch (BindException $e) {
throw new \Exception($e->getDetailedError());
}
}

/**
Expand Down Expand Up @@ -239,7 +245,7 @@ protected function encodeForUnicodePwdField($password)
}
return $encodedPassword;
}

/**
* @param \Adldap\Models\Entry $user
* @param string $password
Expand Down
2 changes: 1 addition & 1 deletion application/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"simplesamlphp/saml2": "^3.4.2",
"google/apiclient": "^2.0",
"google/recaptcha": "^1.1.2",
"adldap2/adldap2": "^9.0",
"adldap2/adldap2": "^10.0",
"fillup/fake-bower-assets": "2.0.9",
"icawebdesign/hibp-php": "3.1.0",
"codemix/yii2-streamlog": "^1.3"
Expand Down
Loading

0 comments on commit c31107a

Please sign in to comment.