~ubuntu-branches/ubuntu/lucid/samba/lucid-proposed

« back to all changes in this revision

Viewing changes to source/libads/kerberos.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-07-21 17:53:23 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050721175323-m3oh6aoigywohfnq
Tags: 3.0.14a-6ubuntu1
Resynchronise with Debian, resolving merge conflicts (#12360)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
   kerberos utility library
4
4
   Copyright (C) Andrew Tridgell 2001
5
5
   Copyright (C) Remus Koos 2001
6
 
   Copyright (C) Nalin Dahyabhai 2004.
 
6
   Copyright (C) Nalin Dahyabhai <nalin@redhat.com> 2004.
7
7
   Copyright (C) Jeremy Allison 2004.
8
8
 
9
9
   This program is free software; you can redistribute it and/or modify
320
320
        krb5_auth_context auth_context = NULL;
321
321
        krb5_error_code err = 0;
322
322
 
 
323
        ZERO_STRUCT(creds);
 
324
 
323
325
        asprintf(&machine_account, "%s$@%s", global_myname(), lp_realm());
324
326
        if (machine_account == NULL) {
325
327
                goto out;
340
342
           ticket to ourselves. */
341
343
 
342
344
        /* Set up the enctype and client and server principal fields for krb5_get_credentials. */
343
 
        memset(&creds, '\0', sizeof(creds));
344
345
        kerberos_set_creds_enctype(&creds, enctype);
345
346
 
346
347
        if ((err = krb5_cc_get_principal(ctx, ccache, &creds.client))) {