Skip to content

Commit db82b90

Browse files
committed
sudo_ldap_open: Error out if start_tls specified but not supported
It is now an error if the ldap.conf file contains "SSL start_tls" but the LDAP libs do not support ldap_start_tls_s() or ldap_start_tls_s_np()> Found by the ZeroPath AI Security Engineer <https://zeropath.com>
1 parent d619596 commit db82b90

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/sudoers/ldap.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1630,6 +1630,7 @@ sudo_ldap_open(struct sudoers_context *ctx, struct sudo_nss *nss)
16301630
#else
16311631
sudo_warnx("%s",
16321632
U_("start_tls specified but LDAP libs do not support ldap_start_tls_s() or ldap_start_tls_s_np()"));
1633+
goto done;
16331634
#endif /* !HAVE_LDAP_START_TLS_S && !HAVE_LDAP_START_TLS_S_NP */
16341635
}
16351636

0 commit comments

Comments
 (0)