[Samba] samba-tool python error
Pablo Sanz Fernández
psanz at empre.es
Thu Jan 16 16:53:15 UTC 2020
Hi,
We have some weird Python errors.
Our deplyment has the following attributes:
- CentOS 6.10
- Python 2.6.6
- Samba 4.9.13 installed from source code with AD role
And the problem is that some subcommands of the samba-tool utility throws different Python errors like this:
[root at mercurio2 oper]# samba-tool user syncpasswords --cache-ldb-initialize --decrypt-samba-gpg --attributes=sAMAccountName,mail,virtualClearTextUTF8
Connecting to 'ldapi:///usr/local/samba/private/ldap_priv/ldapi'
ERROR(<type 'exceptions.AttributeError'>): uncaught exception - 'module' object has no attribute 'time'
File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/__init__.py", line 178, in _run
return self.run(*args, **kwargs)
File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/user.py", line 2277, in run
load_cache()
File "/usr/local/samba/lib64/python2.6/site-packages/samba/netcmd/user.py", line 1939, in load_cache
add_ldif += "currentTime: %s\n" % ldb.timestring(int(time.time()))
[root at mercurio2 oper]#
Do you know how to solve this?
Pablo Sanz Fernández
Empresarios Agrupados AIE
Departamento de TI y Apoyo Operativo
Magallanes 3 28015 Madrid
Tel : 91-3098000 (ext: 8206), email:psanz at empre.es
More information about the samba
mailing list