Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/utils/net_lookup.c

    r414 r745  
    1919#include "includes.h"
    2020#include "utils/net.h"
     21#include "libads/sitename_cache.h"
     22#include "libads/dns.h"
     23#include "../librpc/gen_ndr/ndr_netlogon.h"
     24#include "smb_krb5.h"
     25#include "../libcli/security/security.h"
     26#include "passdb/lookup_sid.h"
    2127
    2228int net_lookup_usage(struct net_context *c, int argc, const char **argv)
     
    320326{
    321327        const char *dom, *name;
    322         DOM_SID sid;
     328        struct dom_sid sid;
    323329        enum lsa_SidType type;
    324330
     
    344350{
    345351        const char *dom, *name;
    346         DOM_SID sid;
     352        struct dom_sid sid;
    347353        enum lsa_SidType type;
    348354
     
    406412        }
    407413
    408         status = dsgetdcname(mem_ctx, NULL, domain_name, NULL, site_name,
     414        if (!c->msg_ctx) {
     415                d_fprintf(stderr, _("Could not initialise message context. "
     416                        "Try running as root\n"));
     417                return -1;
     418        }
     419
     420        status = dsgetdcname(mem_ctx, c->msg_ctx, domain_name, NULL, site_name,
    409421                             flags, &info);
    410422        if (!NT_STATUS_IS_OK(status)) {
Note: See TracChangeset for help on using the changeset viewer.