Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8771307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:45:10+00:00 2026-06-13T17:45:10+00:00

LDAP server, PHP, and not allowing null passwords. My code currently checks password for

  • 0

LDAP server, PHP, and not allowing null passwords.

My code currently checks password for boolean true (yes, I will exclude some values that might be valid non-null LDAP passwords, such as "0") to avoid allowing blank password logins with LDAP. But is this enough?

Is it possible to create a value that PHP will consider non-null but will be treated as a blank password by LDAP? perhaps a string with 0x0 (empty C-string) or some other such hackerish monstrosity?

using ldap_bind()

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:45:11+00:00Added an answer on June 13, 2026 at 5:45 pm

    There are three possibilities covered by the LDAP standard regarding simple BIND operations and one possibility not addressed by the standard:

    1. null DN and null password. No authentication takes place. This is commonly known as “anonymous” and is the initial state of a connection.
    2. DN and null password. No authentication takes place.
    3. DN and password. Authentication takes place and either fails or succeeds. If authentication succeeds, a zero (0) result code is returned in the BIND response. Otherwise a non-zero result code is returned in the BIND response.

    And lastly, not addressed by the LDAP standard:

    1. no DN and a non-null password. No authentication takes place. The directory server should reject this BIND operation.

    What the server does for the first two depends on the configuration of the server but since no authentication takes place the BIND operation should be rejected if the server is properly configured.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I reset a LDAP password in PHP? I already have a connection
I have configured spring security with a ldap server (but continue reading, it's not
I have created a PHP script to query an LDAP server (running Microsoft Active
I'm trying to connect to my LDAP server via PHP, but I get the
I'm trying to connect to my LDAP Server which uses Kerberos for password management.
I'm trying to authenticate againest an ldap server I've created. The user password is
I'm really new to LDAP and just got a connection between my php server
i want to use my ldap server as a DB. then i will create
We use an LDAP server to authenticate our users. Because the server is accessed
I'm in a project where all users from a LDAP server just have e-mails

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.