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

[RHEL-10][net ads] getting fail: ads_startup_int: ads_connect_creds: Invalid credentials

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Undefined Undefined
    • None
    • rhel-10.0
    • samba
    • None
    • Yes
    • Important
    • rhel-sst-idm-sssd
    • ssg_idm
    • 0
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

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

      [12:16:55 root@ /root]# net ads dns register host-3d1a
      Password for [Administrator@TEST3D1A.KISSVM.NET]:ads_startup_int: ads_connect_creds: Invalid credentials
      net ads dns register host-3d1a FAIL

      [12:16:59 root@ /root]# net ads setspn list
      Password for [Administrator@TEST3D1A.KISSVM.NET]:ads_startup_int: ads_connect_creds: Invalid credentials
      net ads setspn list FAIL
      ads_startup_int: ads_connect_creds: Invalid credentials

      What is the impact of this issue to you?

      block our tests that need join linux to Windows-AD server

      Please provide the package NVR for which the bug is seen:

      samba-common-4.21.2-3.el9

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1. create a VM Windows-AD server(win-server 2022)
      2. create a VM RHEL-linux
      3. [linux] config smaba configration file
      4. [linux] kinit
      5. [linux] net ads join --kerberos
      6. [linux] net ads dns register $HOST_NETBIOS   //getting fail

      see also: https://github.com/tcler/kiss-vm-ns/blob/master/utils/config-ad-client.sh

      Actual results

      [12:16:59 root@ /root]# net ads setspn list
      Password for [Administrator@TEST3D1A.KISSVM.NET]:ads_startup_int: ads_connect_creds: Invalid credentials
      net ads setspn list FAIL
      ads_startup_int: ads_connect_creds: Invalid credentials

      Expected results

      works fine like on RHEL-9.5.0 with samba-common-tools-4.20.2-2.el9

      [00:27:52 root@ /root]# net ads setspn list
      Registered SPNs for HOST-3D1A
          RestrictedKrbHost/HOST-3D1A
          HOST/HOST-3D1A
          RestrictedKrbHost/HOST-3D1A.test3d1a.kissvm.net
          HOST/HOST-3D1A.test3d1a.kissvm.net
      [00:27:52 root@ /root]# net ads keytab add HOST
      Processing principals to add...

              anschnei@redhat.com Andreas Schneider
              JianhongYin Jianhong Yin
              Andreas Schneider Andreas Schneider
              Denis Karpelevich Denis Karpelevich
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: