Skip to content
This repository has been archived by the owner on Jul 24, 2023. It is now read-only.

Commit

Permalink
Fixed pull
Browse files Browse the repository at this point in the history
  • Loading branch information
stevebauman committed Apr 15, 2015
1 parent 163c80d commit 1cdb4e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Adldap/Objects/LdapSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ private function constructLdapSchema(Schema $schema)

$this->setAttribute('company', $schema->getAttribute('company'));

$this->setAttribute('pwdLastSet', $schema->getAttribute('change_password'));
$this->setAttribute('pwdLastSet', ($schema->getAttribute('change_password') == 0) ? -1 : 0);

$this->setAttribute('department', $schema->getAttribute('department'));

Expand Down
4 changes: 2 additions & 2 deletions tests/AdldapMethodTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public function testAdldapSchema()
'address_state' => 'Address State',
'address_street' => 'Address Street',
'company' => 'Company',
'change_password' => 'Change Password',
'change_password' => true,
'department' => 'Department',
'description' => 'Description',
'display_name' => 'Display Name',
Expand Down Expand Up @@ -162,7 +162,7 @@ public function testAdldapSchema()
'st' => array('Address State'),
'streetAddress' => array('Address Street'),
'company' => array('Company'),
'pwdLastSet' => array('Change Password'),
'pwdLastSet' => array(0),
'department' => array('Department'),
'description' => array('Description'),
'displayName' => array('Display Name'),
Expand Down

0 comments on commit 1cdb4e0

Please sign in to comment.