]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
[(no branch, rebasing pemensik/dhcp-ldap-gssapi-principal)] Do not report missed...
authorPetr Menšík <pemensik@redhat.com>
Mon, 4 Oct 2021 19:23:02 +0000 (21:23 +0200)
committerTomek Mrugalski <tomek@isc.org>
Mon, 7 Feb 2022 12:18:37 +0000 (13:18 +0100)
If DHCP is built with ldap_gssapi support but ldap-gssapi-principal
is not set error level messages is written in the logs.  This is
totally OK to not have the parameter set. Report names of required
options, not internal code variables.

Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1831332

Signed-off-by: Pavel Zhukov <pzhukov@redhat.com>
Signed-off-by: Petr Menšík <pemensik@redhat.com>
server/ldap.c

index 0b128c97705cd85532272e01f8cdee4bf1e292a3..9af83445d6e046f72359820bdecb3e6347e4c701 100644 (file)
@@ -1375,13 +1375,13 @@ ldap_start (void)
                                                              SV_LDAP_GSSAPI_PRINCIPAL);
 
       if (ldap_gssapi_principal == NULL) {
-          log_error("ldap_gssapi_principal is not set,"
+          log_info("ldap-gssapi-principal is not set,"
                    "GSSAPI Authentication for LDAP will not be used");
       } else {        
         ldap_gssapi_keytab = _do_lookup_dhcp_string_option (options,
                                                           SV_LDAP_GSSAPI_KEYTAB);
         if (ldap_gssapi_keytab == NULL) {
-          log_fatal("ldap_gssapi_keytab must be specified");
+          log_fatal("ldap-gssapi-keytab must be specified");
         } 
 
        running = strdup(ldap_gssapi_principal);