Skip to content

[Bug]: LDAP user sync with nested locations occasionally maps to incorrect location #18090

@kevinmerritt-ui

Description

@kevinmerritt-ui

Snipe-IT Version

v8.3.4 Build 20218

PHP Version

v8.3.13

Composer Version

2.8.13

MySQL/MariaDB version

MySQL 8.3.0

How did you install Snipe-IT?

Manual install (downloading zip/tar.gz)

Is this a fresh install or an upgrade?

Fresh install

What happened?

I have installed this onto a Windows Server 2022, Got everything working and started importing users from LDAP (AD). (test connection works and users are importing)
It has imported several users as we run
Domain,
Head Office

  • Department 1
    -- Users
    -- Computers
  • Department 2
    -- Users
    -- Computers
  • Department 3
    -- Users
    -- Computers
    Office 1
  • Users
  • Computers
    Office 2
  • Users
  • Computers
    Office 3
  • Users
  • Computers
    Its imported all user from Head Office and 2 Offices without any issues, but when selecting another office 3,4,5 etc, and clicking import, its importing a previous office. (somestimes office 2, sometimes department 3)

What browsers are you seeing the problem on?

Microsoft Edge

Can you reproduce this on the public demo?

N/A

Do you have full multiple company support enabled?

No

If you have full multiple company support enabled, do you have location scoping to company enabled?

Yes

Application log output

Browser console output

Common Issues

  • I have searched this repo for existing issues related to my issue (including closed issues)
  • My APP_URL is set correctly in my .env file (including http or https and no trailing slash)
  • I have searched the official Snipe-IT documentation and have checked the Common Issues documentation (where applicable)
  • I have run database migrations (where applicable).
  • I have attached screenshots and/or videos of the issue (where applicable)

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions