Hi there,
I know it is still in beta, but I will ask anyway.
I run 24.4.2 Ubuntu and everything regarding AD works perfectly. So I thought I give 25.4 a try when running into the following issue. I join the domain and that itself works fine. I can login, SSO for websites works and everthing else too.
But when running samba-gpupdate (to obtain machine certificate from the domain) I get the following error:
Traceback (most recent call last):
File "/usr/sbin/samba-gpupdate", line 135, in <module>
apply_gp(lp, creds, store, gp_extensions, username,
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
opts.target, opts.force)
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/samba/gp/gpclass.py", line 1009, in apply_gp
gpos = get_gpo_list(dc_hostname, creds, lp, username)
File "/usr/lib/python3/dist-packages/samba/gp/gpclass.py", line 848, in get_gpo_list
uac, dn = find_samaccount(samdb, username.split('\\')[-1])
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/samba/gp/gpclass.py", line 694, in find_samaccount
res = samdb.search(samdb.get_default_basedn(), ldb.SCOPE_SUBTREE,
'(sAMAccountName={})'.format(samaccountname), attrs)
_ldb.LdbError: (1, '000004DC: LdapErr: DSID-0C090C92, comment: In order to perform this operation a successful bind must be completed on the connection., data 0, v4f7c')
I double checked all configs. Everything else regarding the AD runs fine too.
25.4 uses samba-gpupdate-2.4.21.4+dfsg-1ubuntu3 and I tried samba-gpupdate-2.4.19.5+dfsg-4ubuntu9 (from Ubuntu 24.4.2) to no avail. It produces exactly the same error message.
Any suggestions ?
Thanks in advance