Ignore:
Timestamp:
Nov 24, 2016, 1:14:11 PM (9 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: update vendor to version 4.4.3

Location:
vendor/current/source4/ntptr
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vendor/current/source4/ntptr/ntptr_base.c

    r740 r988  
    2626#include "ntptr/ntptr.h"
    2727#include "param/param.h"
     28#include "lib/util/samba_modules.h"
    2829
    2930/* the list of currently registered NTPTR backends */
     
    6970}
    7071
    71 NTSTATUS ntptr_init(struct loadparm_context *lp_ctx)
     72NTSTATUS ntptr_init(void)
    7273{
    7374#define _MODULE_PROTO(init) extern NTSTATUS init(void);
    7475        STATIC_ntptr_MODULES_PROTO;
    7576        init_module_fn static_init[] = { STATIC_ntptr_MODULES };
    76         init_module_fn *shared_init = load_samba_modules(NULL, lp_ctx, "ntptr");
     77        init_module_fn *shared_init = load_samba_modules(NULL, "ntptr");
    7778
    7879        run_init_functions(static_init);
  • vendor/current/source4/ntptr/simple_ldb/ntptr_simple_ldb.c

    r740 r988  
    4141#include "param/param.h"
    4242
     43NTSTATUS ntptr_simple_ldb_init(void);
     44
    4345/*
    4446  connect to the SPOOLSS database
     
    4749static struct ldb_context *sptr_db_connect(TALLOC_CTX *mem_ctx, struct tevent_context *ev_ctx, struct loadparm_context *lp_ctx)
    4850{
    49         return ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx, lpcfg_spoolss_url(lp_ctx), system_session(lp_ctx),
     51        return ldb_wrap_connect(mem_ctx, ev_ctx, lp_ctx, "spoolss.ldb", system_session(lp_ctx),
    5052                                NULL, 0);
    5153}
     
    318320         */
    319321
    320         switch (r->in.level) {
     322        switch (r->in.info_ctr->level) {
    321323        case 1:
    322                 if (!r->in.info.info1) {
     324                if (!r->in.info_ctr->info.info1) {
    323325                        return WERR_FOOBAR;
    324326                }
     
    326328                                       ldb_dn_new(mem_ctx, sptr_db, "CN=Forms,CN=PrintServer"),
    327329                                       &msgs, attrs, "(&(form-name=%s)(objectClass=form))",
    328                                        r->in.info.info1->form_name);
     330                                       r->in.info_ctr->info.info1->form_name);
    329331
    330332                if (count == 1) return WERR_FOOBAR;
     
    332334                if (count < 0) return WERR_GENERAL_FAILURE;
    333335
    334                 if (r->in.info.info1->flags != SPOOLSS_FORM_USER) {
     336                if (r->in.info_ctr->info.info1->flags != SPOOLSS_FORM_USER) {
    335337                        return WERR_FOOBAR;
    336338                }
     
    340342
    341343                /* add core elements to the ldb_message for the Form */
    342                 msg->dn = ldb_dn_new_fmt(msg, sptr_db, "form-name=%s,CN=Forms,CN=PrintServer", r->in.info.info1->form_name);
     344                msg->dn = ldb_dn_new_fmt(msg, sptr_db, "form-name=%s,CN=Forms,CN=PrintServer", r->in.info_ctr->info.info1->form_name);
    343345                SET_STRING(sptr_db, msg, "objectClass", "form");
    344346
    345                 SET_UINT(sptr_db, msg, "flags", r->in.info.info1->flags);
    346 
    347                 SET_STRING(sptr_db, msg, "form-name", r->in.info.info1->form_name);
    348 
    349                 SET_UINT(sptr_db, msg, "size-width", r->in.info.info1->size.width);
    350                 SET_UINT(sptr_db, msg, "size-height", r->in.info.info1->size.height);
    351 
    352                 SET_UINT(sptr_db, msg, "area-left", r->in.info.info1->area.left);
    353                 SET_UINT(sptr_db, msg, "area-top", r->in.info.info1->area.top);
    354                 SET_UINT(sptr_db, msg, "area-right", r->in.info.info1->area.right);
    355                 SET_UINT(sptr_db, msg, "area-bottom", r->in.info.info1->area.bottom);
     347                SET_UINT(sptr_db, msg, "flags", r->in.info_ctr->info.info1->flags);
     348
     349                SET_STRING(sptr_db, msg, "form-name", r->in.info_ctr->info.info1->form_name);
     350
     351                SET_UINT(sptr_db, msg, "size-width", r->in.info_ctr->info.info1->size.width);
     352                SET_UINT(sptr_db, msg, "size-height", r->in.info_ctr->info.info1->size.height);
     353
     354                SET_UINT(sptr_db, msg, "area-left", r->in.info_ctr->info.info1->area.left);
     355                SET_UINT(sptr_db, msg, "area-top", r->in.info_ctr->info.info1->area.top);
     356                SET_UINT(sptr_db, msg, "area-right", r->in.info_ctr->info.info1->area.right);
     357                SET_UINT(sptr_db, msg, "area-bottom", r->in.info_ctr->info.info1->area.bottom);
    356358                break;
    357359        default:
     
    382384         */
    383385
    384         switch (r->in.level) {
     386        switch (r->in.info_ctr->level) {
    385387        case 1:
    386                 if (!r->in.info.info1) {
     388                if (!r->in.info_ctr->info.info1) {
    387389                        return WERR_FOOBAR;
    388390                }
     
    391393                                       ldb_dn_new(mem_ctx, sptr_db, "CN=Forms,CN=PrintServer"),
    392394                                       &msgs, attrs, "(&(form-name=%s)(objectClass=form))",
    393                                        r->in.info.info1->form_name);
     395                                       r->in.info_ctr->info.info1->form_name);
    394396
    395397                if (count == 0) return WERR_FOOBAR;
     
    408410                msg->dn = msgs[0]->dn;
    409411
    410                 SET_UINT(sptr_db, msg, "flags", r->in.info.info1->flags);
    411 
    412                 SET_STRING(sptr_db, msg, "form-name", r->in.info.info1->form_name);
    413 
    414                 SET_UINT(sptr_db, msg, "size-width", r->in.info.info1->size.width);
    415                 SET_UINT(sptr_db, msg, "size-height", r->in.info.info1->size.height);
    416 
    417                 SET_UINT(sptr_db, msg, "area-left", r->in.info.info1->area.left);
    418                 SET_UINT(sptr_db, msg, "area-top", r->in.info.info1->area.top);
    419                 SET_UINT(sptr_db, msg, "area-right", r->in.info.info1->area.right);
    420                 SET_UINT(sptr_db, msg, "area-bottom", r->in.info.info1->area.bottom);
     412                SET_UINT(sptr_db, msg, "flags", r->in.info_ctr->info.info1->flags);
     413
     414                SET_STRING(sptr_db, msg, "form-name", r->in.info_ctr->info.info1->form_name);
     415
     416                SET_UINT(sptr_db, msg, "size-width", r->in.info_ctr->info.info1->size.width);
     417                SET_UINT(sptr_db, msg, "size-height", r->in.info_ctr->info.info1->size.height);
     418
     419                SET_UINT(sptr_db, msg, "area-left", r->in.info_ctr->info.info1->area.left);
     420                SET_UINT(sptr_db, msg, "area-top", r->in.info_ctr->info.info1->area.top);
     421                SET_UINT(sptr_db, msg, "area-right", r->in.info_ctr->info.info1->area.right);
     422                SET_UINT(sptr_db, msg, "area-bottom", r->in.info_ctr->info.info1->area.bottom);
    421423                break;
    422424        default:
  • vendor/current/source4/ntptr/wscript_build

    r740 r988  
    55        subsystem='ntptr',
    66        init_function='ntptr_simple_ldb_init',
    7         deps='ldb NDR_SPOOLSS DCERPC_COMMON ldbsamba'
     7        deps='ldb NDR_SPOOLSS DCERPC_COMMON ldbsamba',
     8        enabled=bld.AD_DC_BUILD_IS_ENABLED()
    89        )
    910
     
    1213        source='ntptr_base.c ntptr_interface.c',
    1314        autoproto='ntptr_proto.h',
    14         public_deps='DCERPC_COMMON'
     15        public_deps='DCERPC_COMMON',
     16        enabled=bld.AD_DC_BUILD_IS_ENABLED()
    1517        )
    1618
Note: See TracChangeset for help on using the changeset viewer.