Username and Password for LDAP Authentication

Random 102

A client asked us if we support LDAP authentication for a Single-Sign-On (SSO). I Googled around and learnt a bit about LDAP.

However, I don't understand whether I should run the bind operation on some credentials that will be given to me as the app and then look for the user that tried to log in, or I should call the bind on the credentials the user attempts to login from through our app and as long as the credentials are valid, I consider that the user is logged in.

Thank you.

user207421

It's done in three steps:

  1. Bind as an administrative user that has enough permission to search the directory.
  2. Search the directory for the user. This is necessary because the user won't be providing his entire DN: he will be providing something else unique about himself such as his email address, a 'screen name'/moniker/alias, etc.
  3. Bind as that user using the password credential supplied.

If any of this fails i.e. including (2), it's a login failure, and note that you don't tell the user which step: you don't tell him 'no such user' or 'invalid password'. You just tell him 'invalid credentials' or similar for both. Otherwise you're leaking information to an attacker.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Java LDAP authentication with username

From Dev

LDAP authentication password encryption

From Dev

How to connect LDAP With username and password?

From Dev

Git server with username and password authentication

From Dev

Client/server username/password authentication

From Dev

Authentication via username and password in Cassandra

From Dev

How to manually check username and password of ldap user

From Dev

NodeJS LDAP authentication using Passport and password encryption

From Dev

Git clone with username password authentication in one go

From Dev

Authentication with username & password with node js, AngularJs and JWT

From Dev

Selfhosted WCF Service with SSL and Username and Password authentication

From Dev

remote: Invalid username or password, fatal: Authentication failed for

From Dev

Google Drive API username + password authentication

From Dev

How long can a basic authentication username/password be?

From Dev

Print username and password used in spring security authentication

From Dev

Chatting authentication of password and username to get IP and port

From Dev

Eclipse Luna Not Storing Proxy Authentication Username and Password

From Dev

Thrift sasl with username/password authentication for C++

From Dev

Using JDBC to implement username and password authentication

From Dev

authentication -- making username and password global in java

From Dev

Eclipse Luna Not Storing Proxy Authentication Username and Password

From Dev

get google authentication token using username and password

From Dev

How can I use the email instead of the username in LDAP authentication with PHP?

From Dev

How can I use the email instead of the username in LDAP authentication with PHP?

From Dev

LDAP - AD Username Password configuration for context-source

From Dev

Creating a PHP script that will check for username and password combo in LDAP

From Dev

Connecting python to ldap server using python-ldap: getting 'desc': 'Invalid credentials' though username and password are valid

From Dev

Varnish 4 Basic Authentication constantly prompts for username and password

From Dev

Spring security authentication with 3 fields instead of just username and password

Related Related

  1. 1

    Java LDAP authentication with username

  2. 2

    LDAP authentication password encryption

  3. 3

    How to connect LDAP With username and password?

  4. 4

    Git server with username and password authentication

  5. 5

    Client/server username/password authentication

  6. 6

    Authentication via username and password in Cassandra

  7. 7

    How to manually check username and password of ldap user

  8. 8

    NodeJS LDAP authentication using Passport and password encryption

  9. 9

    Git clone with username password authentication in one go

  10. 10

    Authentication with username & password with node js, AngularJs and JWT

  11. 11

    Selfhosted WCF Service with SSL and Username and Password authentication

  12. 12

    remote: Invalid username or password, fatal: Authentication failed for

  13. 13

    Google Drive API username + password authentication

  14. 14

    How long can a basic authentication username/password be?

  15. 15

    Print username and password used in spring security authentication

  16. 16

    Chatting authentication of password and username to get IP and port

  17. 17

    Eclipse Luna Not Storing Proxy Authentication Username and Password

  18. 18

    Thrift sasl with username/password authentication for C++

  19. 19

    Using JDBC to implement username and password authentication

  20. 20

    authentication -- making username and password global in java

  21. 21

    Eclipse Luna Not Storing Proxy Authentication Username and Password

  22. 22

    get google authentication token using username and password

  23. 23

    How can I use the email instead of the username in LDAP authentication with PHP?

  24. 24

    How can I use the email instead of the username in LDAP authentication with PHP?

  25. 25

    LDAP - AD Username Password configuration for context-source

  26. 26

    Creating a PHP script that will check for username and password combo in LDAP

  27. 27

    Connecting python to ldap server using python-ldap: getting 'desc': 'Invalid credentials' though username and password are valid

  28. 28

    Varnish 4 Basic Authentication constantly prompts for username and password

  29. 29

    Spring security authentication with 3 fields instead of just username and password

HotTag

Archive