hi all has anybody implement the password complexity option in qmailadmin ?
i tried using the video provided here but it does not work http://www.youtube.com/watch?v=GyBnwhokscY i have noted down the steps below. I need help on this please. STEPS FOLLOWED PASSWORD COMPLEXITY QMAILADMIN cd /usr/src/qtms-install rpm -Uvh qmailadmin-toaster-1.2.16-1.4.1.src.rpm cd /usr/src/redhat/SOURCES/ tar -xjf qmailadmin-1.2.16.tar.bz2 rm -rf qmailadmin-1.2.16.tar.bz2 cd qmailadmin-1.2.16 nano qmailadmin.c (see changes below) after editing qmailadmin.c nano lang/en edit the error codes cd /usr/src/redhat/SOURCES/ tar cfj qmailadmin-1.2.16.tar.bz2 qmailadmin-1.2.16 cd /usr/src/redhat/SPECS rpmbuild -ba qmailadmin-toaster.spec cd /usr/src/redhat/RPMS/i386 ls -l qmailadmin-toaster* chk the date of file to ensure that it is the new build rpm -Uvh qmailadmin-toaster-1.2.16-1.4.0.i386.rpm rpm -Uvh --replacefiles --replacepkgs qmailadmin-toaster-1.2.16-1.4.1.i386.rpm open qmailadmin.c file ADDITION 1 after #include <vpopmail_config.h> add #include <ctype.h> ADDITION 2 add it before int main(argc,argv) int check_strong(char *pass_string) { int digit=0; int alpha=0; int length=strlen(pass_string); int i; for(i=0;i<length;i++){ if( digit == 1 && alpha == 1 ) return 1; else{ if(isdigit(pass_string[i])) digit=1; if(isalpha(pass_string[i])) alpha=1; } } return 0; } ADDITION 3 after : } else if (*Password1 == \0') { snprintf (StatusMessage, sizeof(StatusMessage), %s, html_text[234]); add: } else if (strlen(Password1) < 6) { //checks if length is at least 6 chars snprintf (StatusMessage, sizeof(StatusMessage), "%s", html_text[321]); //321 is the text from qmailadmin/lang/en file if you use english } else if (check_strong(Password1) == 0) { //use our function snprintf (StatusMessage, sizeof(StatusMessage), "%s", html_text[322]); //322 is the text from qmailadmin/lang/en file if you use english in qmailadmin/lang/en add: nano lang/en 321 Password to short (at least 6 chars) 322 Password to weak rajesh --------------------------------------------------------------------- To unsubscribe, e-mail: qmailtoaster-list-unsubscr...@qmailtoaster.com For additional commands, e-mail: qmailtoaster-list-h...@qmailtoaster.com