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

Non-AD LDAP sync makes all users inactive #6987

Closed
2 tasks done
JorisVanEijden opened this issue May 3, 2019 · 1 comment
Closed
2 tasks done

Non-AD LDAP sync makes all users inactive #6987

JorisVanEijden opened this issue May 3, 2019 · 1 comment

Comments

@JorisVanEijden
Copy link

Please confirm you have done the following before posting your bug report:

Describe the bug
LDAP sync always sets inactive all users, unless an Active Directory server is used.

To Reproduce

  • Configure Snipe-it to connect to a non-Active Directory LDAP
  • LDAP sync to import users
  • Enable login (activate) one or more users
  • LDAP sync again
  • Users are deactivated

The "LDAP Active Flag" has no influence on this behaviour at all.

This line causes all LDAP users to always be deactivated on every LDAP sync:

$item['activated'] = 0;

Commit that broke it:
966a736

See also #6158

Expected behavior
My users can still log on after an LDAP sync.

Server (please complete the following information):

  • Snipe-IT Version 4.6.15
  • OS: CentOS
  • Web Server: Apache
  • PHP Version 7.2
@snipe
Copy link
Owner

snipe commented May 16, 2019

Try upgrading to latest.

@snipe snipe closed this as completed May 16, 2019
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

No branches or pull requests

2 participants