in reply to Crypt::Cracklib install problems

It isn't quite clear to me if you have libcrack installed or not. When I tried to install Crypt::Cracklib it asked me where crack.h/packer.h and libcrack resided. Due to a inconvenient line break I didn't notice that it defaulted to /usr/local/include. (on my distro Linux RH 6.2 cracklib is installed in /usr/include /usr/lib). Second time around I entered right directories and no problems.

So first find out if libcrack and it's headers are installed somewhere on the target host. If they are make sure you enter the right directory paths when Crypt::Cracklib aske's.

If no cracklib is installed or is but headers are missing. Grab the source compile and install it!

mitd-Made in the Dark
'My favourite colour appears to be grey.'

Replies are listed 'Best First'.
RE: Re: Crypt::Cracklib install problems
by TQuid (Sexton) on Nov 10, 2000 at 04:22 UTC
    Sorry for not being clear--I did indeed install cracklib from source, and there is no crack.h to be found--only .../cracklib,2.7/cracklib/libcrack.a appears to be similar in function.

    --TQuid

      Holy Bull Feathers, you're absolutely right, downloaded a couple or source distor's, and no crack.h So with out futher ado, here it is: (you're gonna life when you look) :)

      crack.h

      #ifndef CRACKLIB_H #define CRACKLIB_H /* Pass this function a password (pw) and a path to the * dictionaries (/usr/lib/cracklib_dict should be specified) * and it will either return a NULL string, meaning that the * password is good, or a pointer to a string that explains the * problem with the password. * You must link with -lcrack */ extern char *FascistCheck(char *pw, char *dictpath); #endif
      Hope it helps. BTW, looking at comment was there possibly a seperate distro for cracklib_dict ??? Maybe thats where it is.

      Anyway back to the dark, bark to code. see ya

      mitd-Made in the Dark
      'My favourite colour appears to be grey.'