Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-56030

With valid ldap_default_bind_dn, still getting "Inappropriate authentication(48), Anonymous access is not allowed."

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.4
    • sssd
    • No
    • Low
    • rhel-sst-idm-sssd
    • ssg_idm
    • None
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • None

      What were you trying to do that didn't work?

      The following messages cuttle the log, interfering troubleshooting  harder.

      (2024-08-26 12:13:43): [be[example.com]] [sdap_get_generic_op_finished] (0x0400): Search result: Inappropriate authentication(48), Anonymous access is not allowed. (2024-08-26 12:13:43): [be[example.com]] [sdap_get_generic_op_finished] (0x0040): Unexpected result from ldap: Inappropriate authentication(48), Anonymous access is not allowed.
      

       

      When 389-DS (from either IPA or RHDS) has nsslapd-allow-anonymous-access: off,

      Even with the ldap_default_bind_dn in sssd.conf

      [domain/example]
      id_provider = ipa     # or ldap
      auth_provider = ipa 
      # default ldap_sasl_auth should work
      ..
      

      sssd_$domain.log still showed the debug level 2 message Inappropriate authentication(48),...:

      (2024-08-26 12:13:43): [be[example.com]] [sdap_get_generic_op_finished] (0x0400): Search result: Inappropriate authentication(48), Anonymous access is not allowed.
      (2024-08-26 12:13:43): [be[example.com]] [sdap_get_generic_op_finished] (0x0040): Unexpected result from ldap: Inappropriate authentication(48), Anonymous access is not allowed.
      

      The id resolution and authentication still works normally. KCS: Solution 6464501 also states that we can ignore the error.

      Please provide the package NVR for which bug is seen:

      sssd-2.9.4-6.el9_4.1.x86_64

      How reproducible:

      Always

      Steps to reproduce

      1.  At RHDS or IPA server. Turn off nsslapd-allow-anonymous-access in LDAP server
      2.  In sssd, uses id_provider = ldap or ipa
        1. With id_provider=ldap, make sure there are valid `ldap_default_bind_dn` and credential
        2. With id_provider=ipa, make sure key of host principal host/host.example.com@EXAMPLE.COM works, so ldap_sasl_authid default value should work
      3.  Restart sssd

      Expected results

      Suppress the error when you have valid bind DN or SASL auth ID

      Actual results

      (2024-08-26 12:13:43): [be[example.com]] [sdap_get_generic_op_finished] (0x0040): Unexpected result from ldap: Inappropriate authentication(48), Anonymous access is not allowed.
      

              sssd-maint SSSD Maintainers
              rhn-support-dchen Ding Yi Chen
              SSSD Maintainers SSSD Maintainers
              SSSD QE SSSD QE
              Louise McGarry Louise McGarry
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

                Created:
                Updated: