Hi, I've got samba3 on ubuntu 12 up and running with one exception. I try to get password complexity working to no avail. I understood I needed crackcheck, which in turn needed to be compiled. I downloaded the samba-doc package, and tried to compile crackcheck with a simple make, but all it returns is failure with the following error: crackcheck.c:6:19: fatal error: crack.h: No such file or directory I have gcc installed as well as libtool. Where can I find the crack.h file ? Can anyone steer me in the right direction ? Thanks, Dominique
From: Dominique <dcouot at hotmail.com> Date: Tue, 11 Dec 2012 13:45:51 +0100> I've got samba3 on ubuntu 12 up and running with one exception. I try to > get password complexity working to no avail. > I understood I needed crackcheck, which in turn needed to be compiled. > I downloaded the samba-doc package, and tried to compile crackcheck with a > simple make, but all it returns is failure with the following error: > crackcheck.c:6:19: fatal error: crack.h: No such file or directoryYou need to install the library of cracklib. For ubuntu, libcrack2-dev is its package name. --- TAKAHASHI Motonobu <monyo at monyo.com>
On 12/12/2012 16:08, TAKAHASHI Motonobu wrote:> From: Dominique <dcouot at hotmail.com> > Date: Wed, 12 Dec 2012 11:28:58 +0100 > >>> Did you install libcrack2-dev with apt/aptitude or such kind of tool? >>> Packages that libcrack2-dev depends on are also needed. >>> >>> In my environment, wamerican, libcrack2 and cracklib-runtime are also >>> installed with libcrack2-dev. >> The install was done through apt. All the libraries you mention are >> installed, and still the same error. >> I am running the 64 bit version of Ubuntu 12.04. Can that interfere with >> the process? > Indeed I tested on the 64 bit version of Squeeze and could compile/link. > It should be compiled on Ubuntu..., but I do not know why you cannot, sorry. > > --- > TAKAHASHI Motonobu <monyo at monyo.com> > >I finally got it working... I compiled it on Debian squeeze 64 bit and copied the resulting code to Ubuntu 12.04 64 bit. Probably not the proper way of doing things, but it works. Dominique