return LDAP_NOT_SUPPORTED when SASL is not available

This commit is contained in:
Kurt Zeilenga 2005-12-21 22:56:45 +00:00
parent a48f7b6f93
commit ff763d4730

View File

@ -968,9 +968,8 @@ tool_bind( LDAP *ld )
exit( rc );
}
#else
fprintf( stderr, "%s: not compiled with SASL support\n",
prog );
exit( rc );
fprintf( stderr, "%s: not compiled with SASL support\n", prog );
exit( LDAP_NOT_SUPPORTED );
#endif
} else {
int msgid, err, rc;