s3-talloc Change TALLOC_ARRAY() to talloc_array()
[samba.git] / libgpo / gpo_ldap.c
index 38a040533a2ba7c9278291288041b0871fb91005..debae53da1f4c6814a0f2af666df36d45bd865c0 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "includes.h"
 #include "libgpo/gpo.h"
+#include "auth.h"
 #if _SAMBA_BUILD_ == 4
 #include "libgpo/gpo_s4.h"
 #include "source4/libgpo/ads_convenience.h"
@@ -639,7 +640,7 @@ ADS_STATUS ads_get_sid_token(ADS_STRUCT *ads,
                return status;
        }
 
-       token_sids = TALLOC_ARRAY(mem_ctx, struct dom_sid, 1);
+       token_sids = talloc_array(mem_ctx, struct dom_sid, 1);
        ADS_ERROR_HAVE_NO_MEMORY(token_sids);
 
        status = ADS_ERROR_NT(add_sid_to_array_unique(mem_ctx,
@@ -671,7 +672,7 @@ ADS_STATUS ads_get_sid_token(ADS_STRUCT *ads,
 
        *token = new_token;
 
-       debug_nt_user_token(DBGC_CLASS, 5, *token);
+       security_token_debug(DBGC_CLASS, 5, *token);
 
        return ADS_ERROR_LDAP(LDAP_SUCCESS);
 }