snipe / snipe-it

A free open source IT asset/license management system
https://snipeitapp.com
GNU Affero General Public License v3.0
10.89k stars 3.14k forks source link

LDAP User got not synchronized #13971

Open 00shorty opened 10 months ago

00shorty commented 10 months ago

Debug mode

Describe the bug

users got not synchronized when using LDAP sync

Reproduction steps

Expected behavior

Users should get imported in the location where they are located

Screenshots

image

image

image

Snipe-IT Version

6.2.3

Operating System

Ubuntu 20.04 LTS

Web Server

Apache

PHP Version

8.1.26

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

Where can I get some logs from LDAP Sync? Where are they stored?

snipe commented 9 months ago

As long as you don't have an IP address as a server name, you can use the ldap troubleshooter.

php artisan ldap:troubleshoot
                            {--ldap-search : Output an ldapsearch command-line for testing your LDAP config}
                            {--force : Skip the interactive yes/no prompt for confirmation}
                            {--debug : Include debugging output (verbose)}
                            {--trace : Include extremely verbose LDAP trace output}
                            {--timeout=15 : Timeout for LDAP Bind operations}

(Note to self, get some docs up about this script)

colttt commented 8 months ago

hello, we've the same issue, any news about that? how can I get verbose/debug messages using

php /var/www/html/snipeit/artisan snipeit:ldap-sync

?

esmsesms commented 8 months ago

Hi, on quick note, using Version v6.2.2 - build 11714 (master) on Ubuntu 22.04 LTS I was able to get the list of 150+ Active Directory and authenticate users from Windows 2019 server through LDAP as described at: https://youtu.be/VTYfrJhA2p0?feature=shared&t=125