Summary | shadowLastChange LDAP attribute are not updated |
Queue | Passwd |
Queue Version | 3.0.1-RC1 |
Type | Bug |
State | Resolved |
Priority | 2. Medium |
Owners | jan (at) horde (dot) org |
Requester | david (at) tmv (dot) gov (dot) tw |
Created | 03/03/2007 (6714 days ago) |
Due | |
Updated | 01/09/2008 (6402 days ago) |
Assigned | 03/29/2007 (6688 days ago) |
Resolved | 01/09/2008 (6402 days ago) |
Github Issue Link | |
Github Pull Request | |
Milestone | |
Patch | No |
Assigned to Jan Schneider
State ⇒ Resolved
New Attachment: backends.patch.txt
David
check or set the shadowLastChange and shadowMin attributes if you
don't set the appropriate parameters in the backend configuration.
you give me a hint ?
State ⇒ Not A Bug
check or set the shadowLastChange and shadowMin attributes if you
don't set the appropriate parameters in the backend configuration.
array(14) { ["host"]=> string(13) "localhost" ["sslhost"]=> string(0)
"" ["port"]=> int(389) ["encryption"]=> string(4) "ssha"
["show_encryption"]=> string(4) "true" ["uid"]=> string(3) "uid"
["basedn"]=> string(24) "dc=my,dc=gov" ["admindn"]=> NULL
["adminpw"]=> NULL ["realm"]=> string(0) "" ["tls"]=> bool(false)
["attribute"]=> string(12) "userPassword" ["shadowlastchange"]=> NULL
["shadowmin"]=> NULL }
As you can see both shadowlastchange & shadowmin return NULL, and
break this function.
further down in the code.
password yet, i.e. don't have the attribute specified by
'shadowlastchange' set?
module is the only one way provied to users to change their password.
P.S Wish i didn't misunderstand your comment.
State ⇒ Feedback
password yet, i.e. don't have the attribute specified by
'shadowlastchange' set?
Priority ⇒ 2. Medium
State ⇒ Unconfirmed
Queue ⇒ Passwd
Summary ⇒ shadowLastChange LDAP attribute are not updated
Type ⇒ Bug
successfully.And then i still can change my ldap'passwd in the same
day again even shadowMin was set to 7.
Here are my ldap's attributes about shadow:
===================================
shadowLastChange: 13473
shadowFlag: 134544124
shadowInactive: -1
shadowMin: 7
shadowMax: -1
shadowWarning: 7
And here are my backend.conf :
$backends['ldap'] = array(
'name' => 'LDAP server',
'preferred' => 'localhost',
'password policy' => array(
'minLength' => 6
//'maxLength' => 8
),
'driver' => 'ldap',
'params' => array(
'host' => 'localhost',
'port' => 389,
'basedn' => 'dc=example,dc=com',
'uid' => 'uid',
// this will be appended to the username when looking for the userdn.
'realm' => '',
'encryption' => 'ssha',
// make sure the host == cn in the server certificate
'tls' => false
)
);