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 authentication: add an option not to cache passwords #713

Closed
wants to merge 1 commit into from
Closed

ldap authentication: add an option not to cache passwords #713

wants to merge 1 commit into from

Conversation

seveas
Copy link

@seveas seveas commented Jan 29, 2016

Not everyone wants to cache passwords, even in hashed format. This new
option caters to those users.

Not everyone wants to cache passwords, even in hashed format. This new
option caters to those users.
@atrol
Copy link
Member

atrol commented Jan 29, 2016

No time to have a deeper look at the moment.
Just want to mention that

@seveas
Copy link
Author

seveas commented Jan 29, 2016

That bug has been open for 5 years, damn :(

I'm also fine with complete removing the caching, as it's a big security issue.

} else if( $t_login_method == LDAP && ldap_authenticate_by_username( $p_username, $p_password ) ) {
$t_auto_create = true;
$t_cache_password = config_get( 'ldap_cache_passwords' );
$t_auto_create_password = $t_cache_password ? md5( $p_password ) : 'external-password';
Copy link
Member

Choose a reason for hiding this comment

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

Let's use auto-generated password (instead of 'external-password') so that the password can't be guessed if auth method is changed for example. I would use a model like random cookie generation we already do.

@vboctor
Copy link
Member

vboctor commented Jan 29, 2016

@seveas let's remove this without configuration.

@seveas
Copy link
Author

seveas commented Jan 29, 2016

Closing in favor of #714, based on discussin in #659

@seveas seveas closed this Jan 29, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants