Ignore:
Timestamp:
Jul 25, 2016, 11:55:48 AM (9 years ago)
Author:
Paul Smedley
Message:

Add support to enable Kerberos support, and make the plugin connect using kerberos when it's enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/client-3.0/src/ndpsmb.c

    r928 r930  
    110110        {ND_PROP_ULONG, 0, "CLD", "32"},
    111111        {ND_PROP_ULONG, 0, "EASUPPORT", "1"},
     112        {ND_PROP_ULONG, 0, "KRB5SUPPORT", "0"},
    112113        {ND_PROP_STRING, 0, NULL, NULL}
    113114};
     
    364365        pRes->rootlevel = 0;
    365366        pRes->easupport = 1;
    366 #ifdef HAVE_KRB5_H
    367         pRes->krb5support = 1;
    368 #else
    369367        pRes->krb5support = 0;
    370 #endif
    371368        pRes->pdc = NULL;
    372369
     
    473470        }
    474471
     472        t = 0;
     473        rc = ph->fsphQueryUlongProperty (properties, "KRB5SUPPORT", &t);
     474        if (!rc)
     475        {
     476                if (t > 1)
     477                {
     478                        rc = ERROR_INVALID_PARAMETER;
     479                }
     480                else
     481                {
     482                        pRes->krb5support = t;
     483                }
     484        }
    475485        t = 0;
    476486        rc = ph->fsphQueryUlongProperty (properties, "CTO", &t);
Note: See TracChangeset for help on using the changeset viewer.