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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Tobias Powalowski (tpowa)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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
Comment by Samantha McVey (samcv) - Saturday, 11 June 2016, 02:46 GMT
You say that the fix is to do:
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!
Comment by Troy Engel (TE) - Saturday, 11 June 2016, 14:55 GMT
That's actually a whole new bug -- I just downloaded the 6.5 source and followed the PKGBUILD (https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/cifs-utils) manually, and 'make install' does put the binary into the directory:

$ ./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?
Comment by Samantha McVey (samcv) - Saturday, 11 June 2016, 18:52 GMT
They are both about the idmap plugin so I don't think a new bug report is a good idea.
Comment by Samantha McVey (samcv) - Saturday, 11 June 2016, 18:55 GMT
I don't know if you can edit the the title and description of this ticket, If you can it might be good to change it to state the file is completely missing

Loading...