FS#42052 - [cifs-utils] setcifsacl warning, package missing idmap-plugin symlink
Attached to Project:
Arch Linux
Opened by Troy Engel (TE) - Sunday, 21 September 2014, 17:07 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 17 March 2017, 11:55 GMT
Opened by Troy Engel (TE) - Sunday, 21 September 2014, 17:07 GMT
Last edited by Tobias Powalowski (tpowa) - Friday, 17 March 2017, 11:55 GMT
|
Details
Description:
The cifs-utils package is missing a symlink that results in a Warning when attempting to use the setcifsacl command like so, where /data/ is an authenticated (but no winbind) CIFS mount to Windows 2012R2: # setcifsacl -a "ACL:S-1-5-21-762712803-3572108623-4099884218-1003:ALLOWED/I/FULL" /data/test-file WARNING: unable to initialize idmapping plugin. Only "raw" SID strings will be accepted: /etc/cifs-utils/idmap-plugin: cannot open shared object file: No such file or directory NOTE: the command still works and the ACL is set on the server - this was fixed from Error to Warning in cifs-utils 6.2 upstream. cifs-utils < 6.2 error out completely. The fix to get rid of the warning is simple and provides forward compatibility for Winbind authentication that makes use of idmap: # mkdir /etc/cifs-utils # ln -s /usr/lib/cifs-utils/idmapwb.so /etc/cifs-utils/idmap-plugin Additional info: # pacman -Q cifs-utils cifs-utils 6.3-2 |
This task depends upon
Closed by Tobias Powalowski (tpowa)
Friday, 17 March 2017, 11:55 GMT
Reason for closing: Fixed
Additional comments about closing: 6.7-2
Friday, 17 March 2017, 11:55 GMT
Reason for closing: Fixed
Additional comments about closing: 6.7-2
ln -s /usr/lib/cifs-utils/idmapwb.so /etc/cifs-utils/idmap-plugin
The problem is that there is no file named /usr/lib/cifs-utils/idmapwb.so included in the cifs-utils package and does not seem to be provided by any Arch packages. Please let me know about this. Your reply is greatly appreciated. Thanks!
$ ./configure --prefix=/usr --sbindir=/usr/bin --disable-systemd
$ make
$ mkdir FOO
$ find . -name \*.so
./pam_cifscreds.so
./idmapwb.so
$ make DESTDIR=./FOO ROOTSBINDIR=/usr/bin install
$ find FOO | grep idmapwb.so
FOO/usr/lib/cifs-utils/idmapwb.so
...however:
$ pacman -Q cifs-utils && pacman -Ql cifs-utils | grep idmapwb.so
cifs-utils 6.5-1
The cifs-utils official package is actually missing the .so file completely now, but it was in the 6.3-2 package when I reported this... should we report this as a new bug or is this one sufficient to get it fixed?