snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

LDAP E-Mail Login

Open phosworker opened this issue 2 years ago • 9 comments

Debug mode

Describe the bug

I want that users login with their E-Mail instead of their samaccountname. LDAP Sync works fine, but the users cant login, what need i to modify?

image image image image image

i tryed "mail=" as query, I do not know how to continue....

Reproduction steps

1.setup ldap 2.set username to mail 3.try to login ...

Expected behavior

Login

Screenshots

No response

Snipe-IT Version

6.1.0

Operating System

Ubuntu

Web Server

Apache

PHP Version

7.4.3-4ubuntu2.18

Operating System

Windows

Browser

Chrome

Version

112.0.5615.138

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

[17:03:34] LOG.debug: Preparing to test LDAP login
[17:03:34] LOG.debug: Attempting to bind to LDAP for LDAP test
[17:03:34] LOG.debug: Filter query: (&(cn=*)([email protected]))
[17:03:34] LOG.debug: Status of binding user: [email protected] to directory: (directly!) FAILURE
[17:03:34] LOG.debug: Status of binding Admin user: [email protected] to directory instead: FAILURE

Additional context

No response

phosworker avatar May 10 '23 15:05 phosworker

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

welcome[bot] avatar May 10 '23 15:05 welcome[bot]

Hello,

can you check what exactly your users have as their username? If you have done an LDAP sync before the users are maybe created with username without the mail

shinduke avatar May 10 '23 15:05 shinduke

like in the pictures above, every username is their email, tryed using userPricipalName but snipe dont like that for what reason ever.

In my opinium the issue is the LDAP Auth Query, but im not sure what i should but there in?

Hello,

can you check what exactly your users have as their username? If you have done an LDAP sync before the users are maybe created with username without the mail

phosworker avatar May 11 '23 05:05 phosworker

This are our settings but we use SAML too so not shure if it helps. image

shinduke avatar May 11 '23 07:05 shinduke

This are our settings but we use SAML too so not shure if it helps. image

i tryed these settings, didnt work, i can only auth to ldap via samaccountname but not via mail

phosworker avatar May 11 '23 07:05 phosworker

I encountered same issue and found the issue. I will share the solution as a MR.

greench avatar Jul 26 '23 08:07 greench

I encountered same issue and found the issue. I will share the solution as a MR.

i have the same issue, you can tell me the solution? @greench

Frittenstaebchen avatar Aug 19 '23 14:08 Frittenstaebchen

I encountered same issue and found the issue. I will share the solution as a MR.

i have the same issue, you can tell me the solution? @greench

U17205367 avatar Sep 05 '23 05:09 U17205367

I encountered same issue and found the issue. I will share the solution as a MR.

Where is the solution shared?

peacocksdevelopment avatar May 08 '24 13:05 peacocksdevelopment