我正在配置Univention
UCS 4.2
我进行了正常安装,安装了以下UCS
应用程序:
- 活动目录连接
- 活动目录接管
- Active Directory 兼容的域控制器
- DHCP服务器
- 打印服务器(CUPS)
当我运行以下命令时:
# samba-tool ntacl sysvolcheck
我得到以下输出:
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No such file or directory')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 270, in run
lp)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1732, in checksysvolacl
fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 81, in getntacl
xattr.XATTR_NTACL_NAME)
然后,我检查了文件和行的内部:
File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 81
我在其中找到了以下行:
attribute = samba.xattr_native.wrap_getxattr(file, xattr.XATTR_NTACL_NAME)
然后,就在该行之前,我添加了以下行(用于调试目的):
print ">>>>>>>>>> " + file
再次运行时:
# samba-tool ntacl sysvolcheck
我得到以下输出:
>>>>>>>>>> /var/lib/samba/sysvol/mydomain.intranet
ERROR(<type 'exceptions.TypeError'>): uncaught exception - (2, 'No such file or directory')
File "/usr/lib/python2.7/dist-packages/samba/netcmd/__init__.py", line 176, in _run
return self.run(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/samba/netcmd/ntacl.py", line 270, in run
lp)
File "/usr/lib/python2.7/dist-packages/samba/provision/__init__.py", line 1732, in checksysvolacl
fsacl = getntacl(lp, dir_path, direct_db_access=direct_db_access, service=SYSVOL_SERVICE)
File "/usr/lib/python2.7/dist-packages/samba/ntacls.py", line 83, in getntacl
xattr.XATTR_NTACL_NAME)
但是文件(实际上是一个目录):
/var/lib/samba/sysvol/mydomain.intranet
不存在。
存在的目录是:
/var/lib/samba/sysvol/MYDOMAIN.intranet
实际上,我在安装时指定的域是:
MYDOMAIN.intranet
所以,我不明白为什么在 python 代码中它要求目录为:mydomain.intranet
小写。
知道如何解决这个问题吗?
谢谢!
答案1
Erratum 166 已修复此问题,请检查您的版本:
root@ucs:~# lsb_release -sr
如果您的勘误级别较低,请更新您的环境
root@ucs:~# screen univention-upgrade --ignoressh
勘误表更新附带软件包更新:
root@ucs:~# univention-upgrade
Starting univention-upgrade. Current UCS version is 4.2-2 errata149
Checking for local repository: none
Checking for package updates: found
The following packages will be installed:
[...]
Do you want to continue [Y|n]?
亲切的问候