1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

testparm: correctly check for empty lp_passwd_prog().

Michael
(This used to be commit 0567f50698)
This commit is contained in:
Michael Adam 2008-03-18 15:49:31 +01:00
parent 010669351a
commit 7ec398b188

View File

@ -109,7 +109,9 @@ to a valid password server.\n", sec_setting );
if (!lp_pam_password_change()) {
#endif
if(lp_passwd_program() == NULL) {
if((lp_passwd_program() == NULL) ||
(strlen(lp_passwd_program()) == 0))
{
fprintf( stderr, "ERROR: the 'unix password sync' parameter is set and there is no valid 'passwd program' \
parameter.\n" );
ret = 1;