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

cepces0.3.12 & python3-cepces TypeError [RHEL9.8]

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • rhel-9.8
    • cepces
    • None
    • None
    • None
    • rhel-idm-uah
    • None
    • False
    • False
    • Hide

      None

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

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

      When testing new cepces against Win 2025 I was trying certificate auto-enrollment against AD CA using command: samba-gpupdate --force --target=Computer

      What is the impact of this issue to you?

      Certificate enrollment crashes even before requesting or renewing certificate.

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

      cepces-0.3.12-1.el9

      python3-cepces-0.3.12-1.el9

      How reproducible is this bug?:

      Always

      Coment:

      Got TypeError in auth.py  file. _init_ccache method crashes because the gssapi library expects the keytab type bytes, but it is passed a str.

      Error: TypeError: expected bytes, str found in gssapi/raw/ext_cred_store.pyx

      For the purpose of the test I changed one line in file: /usr/lib/python3.9/site-packages/cepces/soap/auth.py

      From this: store =

      {b"client_keytab": keytab}

      To this: store =

      {b"client_keytab": keytab.encode('utf-8')}

       

      {'Error': '2025-12-02 03:59:58,986 __main__:ERROR:Traceback (most recent call last):\n  File "/usr/libexec/certmonger/cepces-submit", line 63, in main\n    config = Configuration.load(global_overrides=global_overrides,\n  File "/usr/lib/python3.9/site-packages/cepces/config.py", line 207, in load\n    return Configuration.from_parser(config)\n  File "/usr/lib/python3.9/site-packages/cepces/config.py", line 272, in from_parser\n    authn.handle(),\n  File "/usr/lib/python3.9/site-packages/cepces/auth.py", line 116, in handle\n    auth = SOAPAuth.TransportGSSAPIAuthentication(\n  File "/usr/lib/python3.9/site-packages/cepces/soap/auth.py", line 104, in __init__\n    gssapi_cred = self._init_ccache()\n  File "/usr/lib/python3.9/site-packages/cepces/soap/auth.py", line 126, in _init_ccache\n    gssapi_cred = gssapi.raw.acquire_cred_from(\n  File "gssapi/raw/ext_cred_store.pyx", line 158, in gssapi.raw.ext_cred_store.acquire_cred_from\n  File "gssapi/raw/ext_cred_store.pyx", line 86, in gssapi.raw.ext_cred_store.c_create_key_value_set\nTypeError: expected bytes, str found\n\n'}

       
       

              anschnei@redhat.com Andreas Schneider
              rh-ee-mmyska Martin Myska
              Andreas Schneider Andreas Schneider
              Martin Myska Martin Myska
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated: