The plugin does not changed the shadowlastchange variable.
Hi, Thank you for your job. The plugin does not change the shadowlastchange variable in my ldap, with the ldap_simple driver. Here the configuration of the plugin: $config['force_password_change'] = true; $config['force_password_change_interval'] = 2; and password plugin: $config['password_driver'] = 'ldap_simple'; $config['password_minimum_length'] = 8; $config['password_confirm_current'] = true; $config['password_require_nonalpha'] = true; $config['password_force_new_user'] = true; $config['password_log'] = true; $config['password_ldap_host'] = 'myip'; $config['password_ldap_port'] = '389'; $config['password_ldap_version'] = '2.2'; $config['password_ldap_basedn'] = 'dc=mydn'; $config['password_ldap_method'] = 'manager'; $config['password_ldap_adminDN'] = 'cn=admin,dc=robinson'; $config['password_ldap_adminPW'] = 'mypass'; $config['password_ldap_searchDN'] = 'cn=admin,dc=robinson'; $config['password_ldap_searchPW'] = 'mypass'; $config['password_ldap_search_base'] = 'dc=mydn'; $config['password_ldap_search_filter'] = '(uid=%login)'; $config['password_ldap_pwattr'] = 'userPassword'; $config['password_ldap_encodage'] = 'smd5'; $config['password_algorithm'] = 'smd5';
Please help me for resolve my problem.
Thank you. Best regards, N1c0
Comments (6)
-
repo owner -
Thank you for your reply and your help. I have already changed this variables but nothing. I have added the option $config['password_ldap_lchattr'] = 'shadowLastChange'; in password plugins options. The value is well modified now but your plugin does not read the right information I believe. It sees a variable lastchange always in 1970 whereas in my ldap the modification is well made with the date of the day in format epoch. I still have the password message unchanged. Thank you.
N1c0
-
repo owner Hi Nicolas, Please help to do some testing on your environment.
1.get the latest force_password_change / drivers / ldap_simple.php from bitbucket; (Rollback the previous patch, for ldap_simple in php,the attribute index is converted to lowercase. Attributes are case-insensitive for directory servers, but not when used as array indices.)
2.turn on ldap debug mode in config file config/defaults.inc.php.
$config['ldap_debug'] = true;
3.enable the plugin and use ldap_simple driver.
4.logon into the webmail to check the function ready or not.
5.if the function still not work,check syslog and search the KEYWORD "force_password_change", you can fine the debug info like "force_password_change ldap_get_entries2:{s:5:"count";i:1;i:0;a:4:{s:16:"shadowlastchange";a:2:{s:5:"count";i:1;i:0;s:5:"17190";}i:0;s:16:"shadowlastchange";......", copy the whole line and post them here.
Thanks.
-
repo owner - changed status to open
- edited description
-
Hi ,
Every thing is working fine to me, who and all going to install/use this please check your ldap logs and observer errors. i hope you guys will come to know the issue you are facing.
Thanks, Narendra.L
-
repo owner Thanks Narendra.
- Log in to comment
Sorry for my typing mistake, please refer to the patch commit cf7c497