[MDEV-7305] Difficulties building cracklib_password_check Created: 2014-12-11  Updated: 2015-02-18  Resolved: 2015-02-18

Status: Closed
Project: MariaDB Server
Component/s: Packaging, Platform Debian
Affects Version/s: 10.1.2
Fix Version/s: 10.1.3

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Sergei Golubchik
Resolution: Fixed Votes: 0
Labels: None


 Description   

I don't know whether there will be anything we can fix here, but at least we'll need to document limitations.

So far I couldn't build cracklib_password_check "normally".

Debian (Wheezy 64bit)

ii  crack                                 5.0a-9.3                           amd64        Password guessing program
ii  crack-common                          5.0a-9.3                           all          Password guessing program
ii  cracklib-runtime                      2.8.19-3                           amd64        runtime support for password checker library cracklib2
ii  libcrack2                             2.8.19-3                           amd64        pro-active password checker library
ii  libcrack2-dev                         2.8.19-3                           amd64        pro-active password checker library - development files

FascistCheckUser in crack - not found

Apparently (and Otto confirmed that I read it right), this https://launchpad.net/debian/+source/cracklib2/+changelog means that there is no (and will not be) FascistCheckUser for Wheezy. It will only be available for Jessie. So, no plugin on Debian.

Ubuntu (Trusty 64bit)

ii  crack                                                 5.0a-9.3                                            amd64        Password guessing program
ii  crack-common                                          5.0a-9.3                                            all          Password guessing program
ii  cracklib-runtime                                      2.9.1-1build1                                       amd64        runtime support for password checker library cracklib2
ii  libcrack2:amd64                                       2.9.1-1build1                                       amd64        pro-active password checker library
ii  libcrack2-dev                                         2.9.1-1build1                                       amd64        pro-active password checker library - development files
 
$ ls /usr/include/crack.h
/usr/include/crack.h

Looking for include file crack.h - not found

Trying to compile the header separately, I get this:

/usr/include/crack.h:32:41: error: unknown type name âsize_tâ
                                         size_t errmsg_len);
                                         ^

I added the line to crack.h:

#include <stddef.h>

After that, the header builds and cmake "finds" it normally, and cracklib_password_check gets built. Obviously it's not the right way to do things, but I don't know what is.



 Comments   
Comment by Sergei Golubchik [ 2014-12-11 ]

I can fix the second issue, but not the first. Without FascistCheckUser() the only interface that cracklib provides is checking the password for the current user (“current” as in getuid()). This is not very useful.

Generated at Thu Feb 08 07:18:35 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.