-------- Message initial --------
De: Clément OUDOT <[email protected]>
À: Smaïne Kahlouch <[email protected]>
Cc: [email protected]
Sujet: Re: [Ltb-users] check_password module for Debian
Date: Wed, 16 Dec 2009 14:10:19 +0100

Le 12 décembre 2009 10:20, Smaïne Kahlouch <[email protected]> a écrit :
> -------- Message initial --------
> De: Clément OUDOT <[email protected]>
> À: [email protected]
> Cc: [email protected]
> Sujet: Re: [Ltb-users] check_password module for Debian
> Date: Fri, 11 Dec 2009 09:22:57 +0100
>
> 2009/12/10  <[email protected]>:
>> Hi,
>>
>> I would like to know how to install the check_password module on a Debian 
>> server.
>> I tried to compile it but i actually didn't understand how to use the 
>> options.
>>
>> Is there somebody who could figure it out ?
>> Is there a debian package ?
>>
>> Thanks for your help.
>
>
> Hello,
>
> compilation options are listed here:
> http://ltb-project.org/wiki/documentation/openldap-ppolicy-check-password
>
> You need OpenLDAP source code (and some libraries built after
> ./configure in this source code)
>
> There is no Debian package, but an RPM package.
>
> Clément.
>
>
>
>
>
> Hi thanks for the answer but it's not what i was waiting for.
> It's actually not enough accurate, I can't use slapd package that comes with 
> debian ?
> Do i have to reinstall my server with the options ?
>
> What are these options ?
> What are the libraries you talking about ?


Hello,

you have to use developement file.

Try :
# apt-get install libldap2-dev

And use /usr/include as source lib directory :
# make LDAP_INC=-I/usr/include

Clément.


Hello Clément,

I installed ldap librairies and tried to compile it but it doesn't work.
Maybe you could help me to figure it out.

I tried with this command line :
make CONFIG="/etc/ldap/check_password.conf" LDAP_INC="-I./usr/include/" 
CRACKLIB="/var/cache/cracklib/"

And received the following errors :
rm -f check_password.o check_password.so check_password.lo
rm -f -r .libs
gcc -g -O2 -Wall -fpic -DHAVE_CRACKLIB 
-DCRACKLIB_DICTPATH="\"/var/cache/cracklib/\"" 
-DCONFIG_FILE="\"/etc/ldap/check_password.conf\"" -DDEBUG -c -I./usr/include/  
check_password.c
check_password.c:9:22: error: portable.h: Aucun fichier ou répertoire de ce type
check_password.c:10:18: error: slap.h: Aucun fichier ou répertoire de ce type
check_password.c:47: error: expected declaration specifiers or '...' before 
'Entry'
check_password.c: In function 'read_config_file':
check_password.c:119: error: 'FILE' undeclared (first use in this function)
check_password.c:119: error: (Each undeclared identifier is reported only once
check_password.c:119: error: for each function it appears in.)
check_password.c:119: error: 'config' undeclared (first use in this function)
check_password.c:123: warning: implicit declaration of function 'ber_memcalloc'
check_password.c:123: warning: assignment makes pointer from integer without a 
cast
check_password.c:127: warning: implicit declaration of function 'fopen'
check_password.c:132: warning: implicit declaration of function 'ber_memfree'
check_password.c:136: warning: implicit declaration of function 'fgets'
check_password.c:136: warning: comparison between pointer and integer
check_password.c:163: warning: implicit declaration of function 'fclose'
check_password.c: In function 'realloc_error_message':
check_password.c:177: warning: implicit declaration of function 'ber_memalloc'
check_password.c:177: warning: cast to pointer from integer of different size
check_password.c: At top level:
check_password.c:184: error: expected declaration specifiers or '...' before 
'Entry'
check_password.c: In function 'check_password':
check_password.c:187: warning: cast to pointer from integer of different size
check_password.c:214: error: 'pEntry' undeclared (first use in this function)
check_password.c:215: warning: implicit declaration of function 'sprintf'
check_password.c:215: warning: incompatible implicit declaration of built-in 
function 'sprintf'
check_password.c:286: warning: incompatible implicit declaration of built-in 
function 'sprintf'
check_password.c:297: error: 'FILE' undeclared (first use in this function)
check_password.c:297: error: 'fp' undeclared (first use in this function)
check_password.c:308: warning: implicit declaration of function 'snprintf'
check_password.c:308: warning: incompatible implicit declaration of built-in 
function 'snprintf'
check_password.c:332: warning: incompatible implicit declaration of built-in 
function 'sprintf'
check_password.c:348: error: 'LDAP_SUCCESS' undeclared (first use in this 
function)
check_password.c:353: error: 'EXIT_FAILURE' undeclared (first use in this 
function)
make: *** [check_password.o] Erreur 1

Thanks for your help,
Grifith

_______________________________________________
ltb-users mailing list
[email protected]
http://lists.ltb-project.org/listinfo/ltb-users

Reply via email to