Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LDAP password policy #5364

Merged
merged 10 commits into from Oct 10, 2016
Merged

LDAP password policy #5364

merged 10 commits into from Oct 10, 2016

Conversation

ZiBiS
Copy link
Contributor

@ZiBiS ZiBiS commented Jul 21, 2016

The password driver to appropriate change password when the PPolicy overlay is installed in openLDAP server.
In plugins/password/drivers/ldap.php i've made small change to work properly with Net_LDAP2 in 2.2.0 version.

case "OK":
return PASSWORD_SUCCESS;
case "Password is in history of old passwords":
return PASSWORD_IN_HISTORY;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PASSWORD_IN_HISTORY constant does not exist. Did you forget to commit password.php changes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, you're right. I've made new commit with it.

2 => array("file", "/tmp/ppolicy_ldap.err", "a") // stderr is a file to write to
);

$cwd = 'plugins/password/drivers/';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be a path to helpers directory? Also does the command need to be configurable at all?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to logs directory. This can be useful in case of any errors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First of all you should use log_dir option to get the logs dir location. Second, I was talking about 'plugins/password/drivers/'.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sorry, I missed that path is not correct and log_dir should be get in propper way now.

@alecpl
Copy link
Member

alecpl commented Oct 7, 2016

Last thing, all configuration options of this new driver must have prefix "password_ldap_ppolicy_". Please also solve the merge conflict.

@alecpl alecpl merged commit 7f4ab8c into roundcube:master Oct 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants