~ubuntu-branches/ubuntu/oneiric/openafs/oneiric-201305130334

« back to all changes in this revision

Viewing changes to src/kauth/kaserver.c

  • Committer: Bazaar Package Importer
  • Author(s): Russ Allbery
  • Date: 2008-09-22 19:07:02 UTC
  • mfrom: (12.1.14 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080922190702-59m13d7kn6gkw32d
Tags: 1.4.7.dfsg1-6
* Apply upstream patch to free /proc entries in the correct order.
  Thanks, Marc Dionne.  (Closes: #493914)
* Apply upstream deltas to support 2.6.27 kernels and to stop using
  COMMON_KERN_CFLAGS for all 2.6 kernels uniformly, which fixes
  problems on amd64 with newer kernels.  Thanks, Björn Torkelsson.
  (LP: #267504)
* Translation updates:
  - Swedish, thanks Martin Bagge.  (Closes: #493120)

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <afs/param.h>
12
12
 
13
13
RCSID
14
 
    ("$Header: /cvs/openafs/src/kauth/kaserver.c,v 1.17.2.4 2006/06/20 20:35:01 jaltman Exp $");
 
14
    ("$Header: /cvs/openafs/src/kauth/kaserver.c,v 1.17.2.8 2008/03/10 22:35:35 shadow Exp $");
15
15
 
16
16
#include <afs/stds.h>
17
17
#include <sys/types.h>
26
26
#include "kalog.h"              /* for OpenLog() */
27
27
#include <time.h>
28
28
#include <stdio.h>
29
 
#ifdef HAVE_STRING_H
30
29
#include <string.h>
31
 
#else
32
 
#ifdef HAVE_STRINGS_H
33
 
#include <strings.h>
34
 
#endif
35
 
#endif
36
30
#ifdef HAVE_FCNTL_H
37
31
#include <fcntl.h>
38
32
#endif
47
41
#include <afs/cellconfig.h>
48
42
#include <lock.h>
49
43
#include <afs/afsutil.h>
 
44
#include <afs/com_err.h>
50
45
#include <ubik.h>
51
46
#include <sys/stat.h>
52
47
#include "kauth.h"
330
325
    if (!KA_conf) {
331
326
        code = KANOCELLS;
332
327
      abort:
333
 
        com_err(whoami, code, "Failed getting cell info");
 
328
        afs_com_err(whoami, code, "Failed getting cell info");
334
329
        exit(1);
335
330
    }
336
331
#ifdef        AUTH_DBM_LOG
343
338
    OpenLog(AFSDIR_SERVER_KALOG_FILEPATH);
344
339
    SetupLogSignals();
345
340
#endif
 
341
 
 
342
    fprintf(stderr, "%s: WARNING: kaserver is deprecated due to its weak security "
 
343
            "properties.  Migrating to a Kerberos 5 KDC is advised.  "
 
344
            "http://www.openafs.org/no-more-des.html\n", whoami);
 
345
    ViceLog(0, ("WARNING: kaserver is deprecated due to its weak security properties.  "
 
346
            "Migrating to a Kerberos 5 KDC is advised.  "
 
347
            "http://www.openafs.org/no-more-des.html\n"));
 
348
 
346
349
    code =
347
350
        afsconf_GetExtendedCellInfo(KA_conf, cell, AFSCONF_KAUTHSERVICE,
348
351
                                    &cellinfo, &clones);
349
352
    if (servers) {
350
353
        if (code = ubik_ParseServerList(argc, argv, &myHost, serverList)) {
351
 
            com_err(whoami, code, "Couldn't parse server list");
 
354
            afs_com_err(whoami, code, "Couldn't parse server list");
352
355
            exit(1);
353
356
        }
354
357
        cellinfo.hostAddr[0].sin_addr.s_addr = myHost;
416
419
                                  &clones, dbpath, &KA_dbase);
417
420
 
418
421
    if (code) {
419
 
        com_err(whoami, code, "Ubik init failed");
 
422
        afs_com_err(whoami, code, "Ubik init failed");
420
423
        exit(2);
421
424
    }
422
425
 
488
491
    }
489
492
 
490
493
    ViceLog(0, ("Starting to process AuthServer requests\n"));
491
 
    rx_ServerProc();            /* donate this LWP */
 
494
    rx_ServerProc(NULL);                /* donate this LWP */
492
495
    return 0;
493
496
}