summaryrefslogtreecommitdiffstats
path: root/src/windows/leash/Krb5Properties.cpp
blob: c4ffef2bf7b451fd627efa7f9558dcfff502b6dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
//****************************************************************************
// File:	Krb5Properties.cpp
// By:		Arthur David Leather
// Created:	12/02/98
// Copyright:	1998 Massachusetts Institute of Technology - All rights
//		reserved.
// Description:	CPP file for Krb5Properties.h. Contains variables and functions
//		for Kerberos Five Properties
//
// History:
//
// MM/DD/YY	Inits	Description of Change
// 12/02/98	ADL	Original
//*****************************************************************************

#include "stdafx.h"
#include "leash.h"
#include "LeashFileDialog.h"
#include "Krb5Properties.h"
#include "win-mac.h"
#include "lglobals.h"
#include "LeashView.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif


/////////////////////////////////////////////////////////////////////////////
// CKrb5ConfigFileLocation dialog

IMPLEMENT_DYNCREATE(CKrb5ConfigFileLocation, CPropertyPage)

CKrb5ConfigFileLocation::CKrb5ConfigFileLocation()
    : CPropertyPage(CKrb5ConfigFileLocation::IDD)
{
    m_initConfigFile = _T("");
    m_initTicketFile = _T("");
    m_newConfigFile = _T("");
    m_newTicketFile = _T("");
    m_startupPage1 = TRUE;

    //{{AFX_DATA_INIT(CKrb5ConfigFileLocation)
    //}}AFX_DATA_INIT
}

void CKrb5ConfigFileLocation::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);
    //{{AFX_DATA_MAP(CKrb5ConfigFileLocation)
    DDX_Control(pDX, IDC_EDIT_KRB5_TXT_FILE, m_ticketEditBox);
    //}}AFX_DATA_MAP
}

BEGIN_MESSAGE_MAP(CKrb5ConfigFileLocation, CDialog)
    //{{AFX_MSG_MAP(CKrb5ConfigFileLocation)
    ON_BN_CLICKED(IDC_BUTTON_KRB5INI_BROWSE, OnButtonKrb5iniBrowse)
    ON_BN_CLICKED(IDC_BUTTON_KRB5_TICKETFILE_BROWSE, OnButtonKrb5TicketfileBrowse)
    ON_EN_CHANGE(IDC_EDIT_KRB5_TXT_FILE, OnChangeEditKrb5TxtFile)
    ON_EN_CHANGE(IDC_EDIT_KRB5INI_LOCATION, OnChangeEditKrb5iniLocation)
    ON_WM_SHOWWINDOW()
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()


BOOL CKrb5ConfigFileLocation::OnApply()
{
    BOOL tooManySlashes = FALSE;
    BOOL foundError = FALSE;

    if( getenv("RENEW_TILL") !=  NULL)
    {
        MessageBox("The ticket renewable time is being controlled by the environment"
                   "variable RENEW_TILL instead of the registry. Leash cannot modify"
                   "the environment. Use the System control panel instead.",
                    "Leash", MB_OK);
        return(FALSE);
    }

    if( getenv("RENEWABLE") !=  NULL)
    {
        MessageBox("Ticket renewability is being controlled by the environment"
                   "variable RENEWABLE instead of the registry. Leash cannot modify"
                   "the environment. Use the System control panel instead.",
                    "Leash", MB_OK);
        return(FALSE);
    }

    if( getenv("FORWARDABLE") !=  NULL)
    {
        MessageBox("Ticket forwarding is being controlled by the environment"
                   "variable FORWARDABLE instead of the registry. Leash cannot modify"
                   "the environment. Use the System control panel instead.",
                    "Leash", MB_OK);
        return(FALSE);
    }

    if( getenv("PROXIABLE") !=  NULL)
    {
        MessageBox("Ticket proxying is being controlled by the environment"
                   "variable PROXIABLE instead of the registry. Leash cannot modify"
                   "the environment. Use the System control panel instead.",
                    "Leash", MB_OK);
        return(FALSE);
    }

    if( getenv("NOADDRESSES") !=  NULL)
    {
        MessageBox("Addressless tickets are being controlled by the environment"
                   "variable NOADDRESSES instead of the registry. Leash cannot modify"
                   "the environment. Use the System control panel instead.",
                    "Leash", MB_OK);
        return(FALSE);
    }


    // KRB5.INI file
    if (!CLeashApp::m_krbv5_profile ||
	0 != m_newConfigFile.CompareNoCase(m_initConfigFile))
    { // Different path for Krb5.ini

        if (IsDlgButtonChecked(IDC_CHECK_CONFIRM_KRB5_EXISTS))
        {
            // Check for extra slashes at end of path
            LPSTR pSlash = strrchr(m_newConfigFile.GetBuffer(0), '\\');
            if (pSlash && *(pSlash - 1) == '\\')
            { // don't commit changes
                tooManySlashes = TRUE;
            }
            else if (pSlash && *(pSlash + 1) == '\0')
            { // commit changes, but take out slash at the end of path
                *pSlash = 0;
            }

            m_newConfigFile.ReleaseBuffer(-1);

            // Check for invalid path
            Directory directory(m_newConfigFile);
            if (tooManySlashes || !directory.IsValidFile())
            { // don't commit changes
                foundError = TRUE;

                if (tooManySlashes)
                    LeashErrorBox("OnApply::Too Many Slashes At End of "
                                  "Selected Directory",
                                  m_newConfigFile);
                else
                    LeashErrorBox("OnApply::Selected file doesn't exist",
                                  m_newConfigFile);

                SetDlgItemText(IDC_EDIT_KRB5INI_LOCATION, m_initConfigFile);
            }
            else
            {
                // more error checking
                CHAR confname[MAX_PATH];

                const char *filenames[2];
                filenames[0] = m_newConfigFile;
                filenames[1] = NULL;

                const char*  rootSection[] = {"realms", NULL};
                const char** rootsec = rootSection;
                char **sections = NULL;

                long retval = pprofile_init(filenames, &CLeashApp::m_krbv5_profile);
                if (!retval)
                    retval = pprofile_get_subsection_names(CLeashApp::m_krbv5_profile,
                                                           rootsec, &sections
                                                           );
                if (retval || !*sections )
                {
                    foundError = TRUE;
                    MessageBox("Your file selection is either corrupt or not a Kerberos Five Config. file",
                               "Leash", MB_OK);

                    pprofile_free_list(sections);

                    // Restore old 'valid' config. file
                    if (CLeashApp::GetProfileFile(confname, sizeof(confname)))
                    {
                        foundError = TRUE;
                        MessageBox("Can't locate Kerberos Five Config. file!",
                                   "Error", MB_OK);
                        return TRUE;
                    }

                    filenames[0] = confname;
                    filenames[1] = NULL;

                    retval = pprofile_init(filenames, &CLeashApp::m_krbv5_profile);
                    if (!retval)
                        retval = pprofile_get_subsection_names(CLeashApp::m_krbv5_profile,
                                                               rootsec, &sections);
                    if (retval || !*sections)
                    {
                        foundError = TRUE;
                        MessageBox("OnApply::There is a problem with your "
                                   "Kerberos Five Config. file!\n"
                                   "Contact your Administrator.",
                                   "Leash", MB_OK);
                    }

                    pprofile_free_list(sections);
                    SetDlgItemText(IDC_EDIT_KRB5INI_LOCATION, m_initConfigFile);

                    pprofile_release(CLeashApp::m_krbv5_profile);
                    return TRUE;
                }

                pprofile_free_list(sections);
	    }
        }

        // Commit changes
        if (!foundError)
        {
            if (SetRegistryVariable("config", m_newConfigFile,
                                    "Software\\MIT\\Kerberos5"))
            {
                MessageBox("Failed to set \"Krb.conf\"!", "Error", MB_OK);
            }

            m_initConfigFile = m_newConfigFile;
            SetModified(TRUE);
        }
    }

    // Credential cache (ticket) file
    // Ticket file
    if (0 != m_initTicketFile.CompareNoCase(m_newTicketFile))
    {
        if (getenv("KRB5_ENV_CCNAME"))
        {
            // Just in case they set (somehow) KRB5_ENV_CCNAME while this box is up
            MessageBox("OnApply::Ticket file is set in your System's"
                       "Environment!\nYou must first remove it.",
                       "Error", MB_OK);

            return TRUE;
        }

        // Commit changes
        if (SetRegistryVariable("ccname", m_newTicketFile,
                                "Software\\MIT\\Kerberos5"))
        {
            MessageBox("Failed to set \"ccname\"!", "Error", MB_OK);
        }
        if ( CLeashApp::m_krbv5_context )
            pkrb5_cc_set_default_name(CLeashApp::m_krbv5_context,m_newTicketFile);

        m_initTicketFile = m_newTicketFile;
    }

    return TRUE;
}


BOOL CKrb5ConfigFileLocation::OnInitDialog()
{
    CDialog::OnInitDialog();

    CHAR confname[MAX_PATH];
    CHAR ticketName[MAX_PATH];

    CheckDlgButton(IDC_CHECK_CONFIRM_KRB5_EXISTS, TRUE);

    // Config. file (Krb5.ini)
    if (CLeashApp::GetProfileFile(confname, sizeof(confname)))
    {
        MessageBox("Can't locate Kerberos Five config. file!", "Error", MB_OK);
        return TRUE;
    }

    m_initConfigFile = m_newConfigFile = confname;
    SetDlgItemText(IDC_EDIT_KRB5INI_LOCATION, m_initConfigFile);

    if (pLeash_get_lock_file_locations() || getenv("KRB5_CONFIG"))
    {
        GetDlgItem(IDC_EDIT_KRB5INI_LOCATION)->EnableWindow(FALSE);
        GetDlgItem(IDC_BUTTON_KRB5INI_BROWSE)->EnableWindow(FALSE);
        GetDlgItem(IDC_CHECK_CONFIRM_KRB5_EXISTS)->EnableWindow(FALSE);
    }
    else if ( !(getenv("KRB5_CONFIG")) )
    {
        GetDlgItem(IDC_STATIC_INIFILES)->ShowWindow(FALSE);
    }


    // Set TICKET.KRB file Editbox
    *ticketName = NULL;
    if (CLeashApp::m_krbv5_context)
    {
        const char *pticketName = pkrb5_cc_default_name(CLeashApp::m_krbv5_context);

        if (pticketName)
            strcpy(ticketName, pticketName);
    }

    if (!*ticketName)
    {
        MessageBox("OnInitDialog::Can't locate Kerberos Five ticket file!",
                   "Error", MB_OK);
        return TRUE;
    }
    else
    {
        m_initTicketFile = m_newTicketFile = ticketName;
        SetDlgItemText(IDC_EDIT_KRB5_TXT_FILE, m_initTicketFile);
    }

    if (getenv("KRB5CCNAME"))
        GetDlgItem(IDC_EDIT_KRB5_TXT_FILE)->EnableWindow(FALSE);
    else
        GetDlgItem(IDC_STATIC_TICKETFILE)->ShowWindow(FALSE);

    return TRUE;
}

void CKrb5ConfigFileLocation::OnButtonKrb5iniBrowse()
{
    CLeashFileDialog dlgFile(TRUE, NULL, "*.*",
                             "Kerbereos Five Config. File (.ini)");
    dlgFile.m_ofn.lpstrTitle = "Select the Kerberos Five Config. File";
    while (TRUE)
    {
        if (IDOK == dlgFile.DoModal())
        {
            m_newConfigFile = dlgFile.GetPathName();
            SetDlgItemText(IDC_EDIT_KRB5INI_LOCATION, m_newConfigFile);
            break;
        }
        else
            break;
    }
}

void CKrb5ConfigFileLocation::OnButtonKrb5TicketfileBrowse()
{
    CString ticket_path = "*.*";
    CLeashFileDialog dlgFile(TRUE, NULL, ticket_path,
                             "Kerbereos Five Ticket File (Krb5cc)");
    dlgFile.m_ofn.lpstrTitle = "Select Credential Cache (Ticket) File";

    if (IDOK == dlgFile.DoModal())
    {
        m_newTicketFile = dlgFile.GetPathName();
        SetDlgItemText(IDC_EDIT_KRB5_TXT_FILE, m_newTicketFile);
    }
}

void CKrb5ConfigFileLocation::OnChangeEditKrb5iniLocation()
{
    if (!m_startupPage1)
    {
        GetDlgItemText(IDC_EDIT_KRB5INI_LOCATION, m_newConfigFile);
        SetModified(TRUE);
    }
}

void CKrb5ConfigFileLocation::OnChangeEditKrb5TxtFile()
{
    if (!m_startupPage1)
    {
        GetDlgItemText(IDC_EDIT_KRB5_TXT_FILE, m_newTicketFile);
        SetModified(TRUE);
    }
}

void CKrb5ConfigFileLocation::OnShowWindow(BOOL bShow, UINT nStatus)
{
    CDialog::OnShowWindow(bShow, nStatus);
    m_startupPage1 = FALSE;
}


/////////////////////////////////////////////////////////////////////////////
// CKrb5ConfigOptions dialog

IMPLEMENT_DYNCREATE(CKrb5ConfigOptions, CPropertyPage)

CKrb5ConfigOptions::CKrb5ConfigOptions()
	: CPropertyPage(CKrb5ConfigOptions::IDD)
{
    m_initForwardable = 0;
    m_newForwardable = 0;
    m_initProxiable = 0;
    m_newProxiable = 0;
    m_initRenewable = 0;
    m_newRenewable = 0;
    m_initNoAddress = 0;
    m_newNoAddress = 0;
    m_initIPAddress = 0;
#ifdef SET_PUBLIC_IP
    m_newIPAddress = 0;
#endif /* SET_PUBLIC_IP */

    //{{AFX_DATA_INIT(CKrb5ConfigOptions)
    // NOTE: the ClassWizard will add member initialization here
    //}}AFX_DATA_INIT
}


void CKrb5ConfigOptions::DoDataExchange(CDataExchange* pDX)
{
    CDialog::DoDataExchange(pDX);

    //{{AFX_DATA_MAP(CKrb5ConfigOptions)
    // NOTE: the ClassWizard will add DDX and DDV calls here
    //}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CKrb5ConfigOptions, CDialog)
    //{{AFX_MSG_MAP(CKrb5ConfigOptions)
    ON_BN_CLICKED(IDC_CHECK_FORWARDABLE, OnCheckForwardable)
    ON_BN_CLICKED(IDC_CHECK_PROXIABLE, OnCheckProxiable)
    ON_BN_CLICKED(IDC_CHECK_RENEWABLE, OnCheckRenewable)
    ON_BN_CLICKED(IDC_CHECK_NO_ADDRESS, OnCheckNoAddress)
    ON_WM_HELPINFO()
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()


BOOL CKrb5ConfigOptions::OnApply()
{
#ifdef SET_PUBLIC_IP
    SendDlgItemMessage( IDC_IPADDRESS_PUBLIC,
                        IPM_GETADDRESS,
                        0,
                        (LPARAM)(LPDWORD)&m_newIPAddress
                      );
#endif /* SET_PUBLIC_IP */

    if ((m_initForwardable == m_newForwardable) &&
        (m_initProxiable == m_newProxiable) &&
        (m_initRenewable == m_newRenewable) &&
        (m_initNoAddress == m_newNoAddress)
#ifdef SET_PUBLIC_IP
         && (m_initIPAddress == m_newIPAddress)
#endif /* SET_PUBLIC_IP */
         )
        return TRUE;

    CWinApp *pApp = NULL;
    pApp = AfxGetApp();
    if (!pApp)
    {
        MessageBox("There is a problem finding Leash application "
                   "information!",
                   "Error", MB_OK);
        return FALSE;
    }

    if ( m_newNoAddress == FALSE ) {
        CHAR confname[MAX_PATH];
        if (!CLeashApp::GetProfileFile(confname, sizeof(confname)))
        {
            const char *filenames[2];
            char *value=NULL;
            long retval, noaddresses = 1;
            filenames[0] = confname;
            filenames[1] = NULL;
            retval = pprofile_init(filenames, &CLeashApp::m_krbv5_profile);
            if (!retval) {
                retval = pprofile_get_string(CLeashApp::m_krbv5_profile, "libdefaults","noaddresses", 0, "true", &value);
                if ( value ) {
                    noaddresses = config_boolean_to_int(value);
                    pprofile_release_string(value);
                }
                pprofile_release(CLeashApp::m_krbv5_profile);
            }

            if ( noaddresses )
            {
                MessageBox("The No Addresses setting cannot be disabled unless the setting\n"
                           "    noaddresses=false\n"
                           "is added to the [libdefaults] section of the KRB5.INI file.",
                            "Error", MB_OK);
                return FALSE;

            }
        }
    }

    pLeash_set_default_forwardable(m_newForwardable);
    pLeash_set_default_proxiable(m_newProxiable);
    pLeash_set_default_renewable(m_newRenewable);
    pLeash_set_default_noaddresses(m_newNoAddress);
#ifdef SET_PUBLIC_IP
    pLeash_set_default_publicip(m_newIPAddress);
#endif /* SET_PUBLIC_IP */

    CLeashView::m_forwardableTicket = m_initForwardable = m_newForwardable;
    CLeashView::m_proxiableTicket = m_initProxiable = m_newProxiable;
    CLeashView::m_renewableTicket = m_initRenewable = m_newRenewable;
    CLeashView::m_noaddressTicket = m_initNoAddress = m_newNoAddress;
#ifdef SET_PUBLIC_IP
    CLeashView::m_publicIPAddress = m_initIPAddress = m_newIPAddress;
#endif /* SET_PUBLIC_IP */
    return TRUE;
}

BOOL CKrb5ConfigOptions::OnInitDialog()
{
    CDialog::OnInitDialog();

    CWinApp *pApp = NULL;
    pApp = AfxGetApp();
    if (!pApp)
    {
        MessageBox("There is a problem finding Leash application "
                   "information!",
                   "Error", MB_OK);
    }
    else
    {
        m_initForwardable = pLeash_get_default_forwardable();
        m_initProxiable = pLeash_get_default_proxiable();
        m_initRenewable = pLeash_get_default_renewable();
        m_initNoAddress = pLeash_get_default_noaddresses();
        m_initIPAddress = pLeash_get_default_publicip();
    }

    CheckDlgButton(IDC_CHECK_FORWARDABLE, m_initForwardable);
    m_newForwardable = m_initForwardable;

    CheckDlgButton(IDC_CHECK_PROXIABLE, m_initProxiable);
    m_newProxiable = m_initProxiable;

    CheckDlgButton(IDC_CHECK_RENEWABLE, m_initRenewable);
    m_newRenewable = m_initRenewable;

    CheckDlgButton(IDC_CHECK_NO_ADDRESS, m_initNoAddress);
    m_newNoAddress = m_initNoAddress;

    if ( m_initNoAddress ) {
        // Disable the control - jaltman

        SendDlgItemMessage( IDC_IPADDRESS_PUBLIC,
                            IPM_CLEARADDRESS,
                            0,
                            0
                            );
    }
    else {
        SendDlgItemMessage( IDC_IPADDRESS_PUBLIC,
                            IPM_SETADDRESS,
                            0,
                            (LPARAM)m_initIPAddress
                            );
    }
#ifdef SET_PUBLIC_IP
    m_newIPAddress = m_initIPAddress;
#endif /* SET_PUBLIC_IP */

    return TRUE;  // return TRUE unless you set the focus to a control
                  // EXCEPTION: OCX Property Pages should return FALSE
}

void CKrb5ConfigOptions::OnCheckForwardable()
{
    m_newForwardable = (BOOL)IsDlgButtonChecked(IDC_CHECK_FORWARDABLE);
    SetModified(TRUE);
}

void CKrb5ConfigOptions::OnCheckProxiable()
{
    m_newProxiable = (BOOL)IsDlgButtonChecked(IDC_CHECK_PROXIABLE);
    SetModified(TRUE);
}

void CKrb5ConfigOptions::OnCheckRenewable()
{
    m_newRenewable = (BOOL)IsDlgButtonChecked(IDC_CHECK_RENEWABLE);
    SetModified(TRUE);
}

void CKrb5ConfigOptions::OnCheckNoAddress()
{
    m_newNoAddress = (BOOL)IsDlgButtonChecked(IDC_CHECK_NO_ADDRESS);
    SetModified(TRUE);

    if ( m_newNoAddress ) {
        // Disable the control - jaltman

        SendDlgItemMessage( IDC_IPADDRESS_PUBLIC,
                            IPM_CLEARADDRESS,
                            0,
                            0
                            );
    } else {
        // Enable the IP Address Control - jaltman

        SendDlgItemMessage( IDC_IPADDRESS_PUBLIC,
                            IPM_SETADDRESS,
                            0,
                            (LPARAM)m_initIPAddress
                            );
    }
}

///////////////////////////////////////////////////////////////////////
// CKrb5Properties

IMPLEMENT_DYNAMIC(CKrb5Properties, CPropertySheet)

CKrb5Properties::CKrb5Properties(UINT nIDCaption, CWnd* pParentWnd,
                                 UINT iSelectPage)
    :CPropertySheet(nIDCaption, pParentWnd, iSelectPage)
{
}

CKrb5Properties::CKrb5Properties(LPCTSTR pszCaption, CWnd* pParentWnd,
                                 UINT iSelectPage)
    :CPropertySheet(pszCaption, pParentWnd, iSelectPage)
{
    AddPage(&m_fileLocation);
    AddPage(&m_configOptions);
}

CKrb5Properties::~CKrb5Properties()
{
}

void CKrb5Properties::OnHelp()
{
#ifdef CALL_HTMLHELP
    AfxGetApp()->HtmlHelp(HID_KRB5_PROPERTIES_COMMAND);
#else
    AfxGetApp()->WinHelp(HID_KRB5_PROPERTIES_COMMAND);
#endif
}



BEGIN_MESSAGE_MAP(CKrb5Properties, CPropertySheet)
    //{{AFX_MSG_MAP(CKrb5Properties)
    // NOTE - the ClassWizard will add and remove mapping macros here.
    ON_COMMAND(ID_HELP, OnHelp)
    //}}AFX_MSG_MAP
END_MESSAGE_MAP()