Changeset 745 for trunk/server/libgpo/gpo_ldap.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/libgpo/gpo_ldap.c
r414 r745 19 19 20 20 #include "includes.h" 21 #include "libgpo/gpo.h" 22 #include "auth.h" 21 23 #if _SAMBA_BUILD_ == 4 22 #include "libgpo/gpo.h"23 24 #include "libgpo/gpo_s4.h" 24 25 #include "source4/libgpo/ads_convenience.h" 25 26 #endif 27 #include "../libcli/security/security.h" 26 28 27 29 /**************************************************************** … … 486 488 "versionNumber", 487 489 NULL}; 488 uint32_t sd_flags = DACL_SECURITY_INFORMATION;490 uint32_t sd_flags = SECINFO_DACL; 489 491 490 492 ZERO_STRUCTP(gpo); … … 553 555 enum GPO_LINK_TYPE link_type, 554 556 bool only_add_forced_gpos, 555 const NT_USER_TOKEN*token)557 const struct security_token *token) 556 558 { 557 559 ADS_STATUS status; … … 620 622 TALLOC_CTX *mem_ctx, 621 623 const char *dn, 622 NT_USER_TOKEN**token)624 struct security_token **token) 623 625 { 624 626 ADS_STATUS status; 625 DOM_SIDobject_sid;626 DOM_SIDprimary_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; 628 630 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; 632 634 int i; 633 635 … … 639 641 } 640 642 641 token_sids = TALLOC_ARRAY(mem_ctx, DOM_SID, 1);643 token_sids = TALLOC_ARRAY(mem_ctx, struct dom_sid, 1); 642 644 ADS_ERROR_HAVE_NO_MEMORY(token_sids); 643 645 … … 671 673 *token = new_token; 672 674 673 debug_nt_user_token(DBGC_CLASS, 5, *token);675 security_token_debug(DBGC_CLASS, 5, *token); 674 676 675 677 return ADS_ERROR_LDAP(LDAP_SUCCESS); … … 711 713 const char *dn, 712 714 uint32_t flags, 713 const NT_USER_TOKEN*token,715 const struct security_token *token, 714 716 struct GROUP_POLICY_OBJECT **gpo_list) 715 717 { … … 725 727 if (!dn) { 726 728 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); 727 733 } 728 734
Note:
See TracChangeset
for help on using the changeset viewer.