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/libgpo/gpo_ldap.c

    r414 r745  
    1919
    2020#include "includes.h"
     21#include "libgpo/gpo.h"
     22#include "auth.h"
    2123#if _SAMBA_BUILD_ == 4
    22 #include "libgpo/gpo.h"
    2324#include "libgpo/gpo_s4.h"
    2425#include "source4/libgpo/ads_convenience.h"
    2526#endif
     27#include "../libcli/security/security.h"
    2628
    2729/****************************************************************
     
    486488                "versionNumber",
    487489                NULL};
    488         uint32_t sd_flags = DACL_SECURITY_INFORMATION;
     490        uint32_t sd_flags = SECINFO_DACL;
    489491
    490492        ZERO_STRUCTP(gpo);
     
    553555                                         enum GPO_LINK_TYPE link_type,
    554556                                         bool only_add_forced_gpos,
    555                                          const NT_USER_TOKEN *token)
     557                                         const struct security_token *token)
    556558{
    557559        ADS_STATUS status;
     
    620622                             TALLOC_CTX *mem_ctx,
    621623                             const char *dn,
    622                              NT_USER_TOKEN **token)
     624                             struct security_token **token)
    623625{
    624626        ADS_STATUS status;
    625         DOM_SID object_sid;
    626         DOM_SID primary_group_sid;
    627         DOM_SID *ad_token_sids;
     627        struct dom_sid object_sid;
     628        struct dom_sid primary_group_sid;
     629        struct dom_sid *ad_token_sids;
    628630        size_t num_ad_token_sids = 0;
    629         DOM_SID *token_sids;
    630         size_t num_token_sids = 0;
    631         NT_USER_TOKEN *new_token = NULL;
     631        struct dom_sid *token_sids;
     632        uint32_t num_token_sids = 0;
     633        struct security_token *new_token = NULL;
    632634        int i;
    633635
     
    639641        }
    640642
    641         token_sids = TALLOC_ARRAY(mem_ctx, DOM_SID, 1);
     643        token_sids = TALLOC_ARRAY(mem_ctx, struct dom_sid, 1);
    642644        ADS_ERROR_HAVE_NO_MEMORY(token_sids);
    643645
     
    671673        *token = new_token;
    672674
    673         debug_nt_user_token(DBGC_CLASS, 5, *token);
     675        security_token_debug(DBGC_CLASS, 5, *token);
    674676
    675677        return ADS_ERROR_LDAP(LDAP_SUCCESS);
     
    711713                            const char *dn,
    712714                            uint32_t flags,
    713                             const NT_USER_TOKEN *token,
     715                            const struct security_token *token,
    714716                            struct GROUP_POLICY_OBJECT **gpo_list)
    715717{
     
    725727        if (!dn) {
    726728                return ADS_ERROR_NT(NT_STATUS_INVALID_PARAMETER);
     729        }
     730
     731        if (!ads_set_sasl_wrap_flags(ads, ADS_AUTH_SASL_SIGN)) {
     732                return ADS_ERROR(LDAP_INVALID_CREDENTIALS);
    727733        }
    728734
Note: See TracChangeset for help on using the changeset viewer.