~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to source3/librpc/gen_ndr/ndr_policyagent.c

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* parser auto-generated by pidl */
 
2
 
 
3
#include "includes.h"
 
4
#include "librpc/gen_ndr/ndr_policyagent.h"
 
5
 
 
6
static enum ndr_err_code ndr_push_policyagent_Dummy(struct ndr_push *ndr, int flags, const struct policyagent_Dummy *r)
 
7
{
 
8
        if (flags & NDR_IN) {
 
9
        }
 
10
        if (flags & NDR_OUT) {
 
11
                NDR_CHECK(ndr_push_WERROR(ndr, NDR_SCALARS, r->out.result));
 
12
        }
 
13
        return NDR_ERR_SUCCESS;
 
14
}
 
15
 
 
16
static enum ndr_err_code ndr_pull_policyagent_Dummy(struct ndr_pull *ndr, int flags, struct policyagent_Dummy *r)
 
17
{
 
18
        if (flags & NDR_IN) {
 
19
        }
 
20
        if (flags & NDR_OUT) {
 
21
                NDR_CHECK(ndr_pull_WERROR(ndr, NDR_SCALARS, &r->out.result));
 
22
        }
 
23
        return NDR_ERR_SUCCESS;
 
24
}
 
25
 
 
26
_PUBLIC_ void ndr_print_policyagent_Dummy(struct ndr_print *ndr, const char *name, int flags, const struct policyagent_Dummy *r)
 
27
{
 
28
        ndr_print_struct(ndr, name, "policyagent_Dummy");
 
29
        if (r == NULL) { ndr_print_null(ndr); return; }
 
30
        ndr->depth++;
 
31
        if (flags & NDR_SET_VALUES) {
 
32
                ndr->flags |= LIBNDR_PRINT_SET_VALUES;
 
33
        }
 
34
        if (flags & NDR_IN) {
 
35
                ndr_print_struct(ndr, "in", "policyagent_Dummy");
 
36
                ndr->depth++;
 
37
                ndr->depth--;
 
38
        }
 
39
        if (flags & NDR_OUT) {
 
40
                ndr_print_struct(ndr, "out", "policyagent_Dummy");
 
41
                ndr->depth++;
 
42
                ndr_print_WERROR(ndr, "result", r->out.result);
 
43
                ndr->depth--;
 
44
        }
 
45
        ndr->depth--;
 
46
}
 
47
 
 
48
static const struct ndr_interface_call policyagent_calls[] = {
 
49
        {
 
50
                "policyagent_Dummy",
 
51
                sizeof(struct policyagent_Dummy),
 
52
                (ndr_push_flags_fn_t) ndr_push_policyagent_Dummy,
 
53
                (ndr_pull_flags_fn_t) ndr_pull_policyagent_Dummy,
 
54
                (ndr_print_function_t) ndr_print_policyagent_Dummy,
 
55
                { 0, NULL },
 
56
                { 0, NULL },
 
57
        },
 
58
        { NULL, 0, NULL, NULL, NULL }
 
59
};
 
60
 
 
61
static const char * const policyagent_endpoint_strings[] = {
 
62
        "ncacn_np:[\\pipe\\policyagent]", 
 
63
};
 
64
 
 
65
static const struct ndr_interface_string_array policyagent_endpoints = {
 
66
        .count  = 1,
 
67
        .names  = policyagent_endpoint_strings
 
68
};
 
69
 
 
70
static const char * const policyagent_authservice_strings[] = {
 
71
        "host", 
 
72
};
 
73
 
 
74
static const struct ndr_interface_string_array policyagent_authservices = {
 
75
        .count  = 1,
 
76
        .names  = policyagent_authservice_strings
 
77
};
 
78
 
 
79
 
 
80
const struct ndr_interface_table ndr_table_policyagent = {
 
81
        .name           = "policyagent",
 
82
        .syntax_id      = {
 
83
                {0xd335b8f6,0xcb31,0x11d0,{0xb0,0xf9},{0x00,0x60,0x97,0xba,0x4e,0x54}},
 
84
                NDR_POLICYAGENT_VERSION
 
85
        },
 
86
        .helpstring     = NDR_POLICYAGENT_HELPSTRING,
 
87
        .num_calls      = 1,
 
88
        .calls          = policyagent_calls,
 
89
        .endpoints      = &policyagent_endpoints,
 
90
        .authservices   = &policyagent_authservices
 
91
};
 
92