include ../../source/Makefile
-PSEC_OBJ1 = $(LIB_OBJ) $(PARAM_OBJ) $(UBIQX_OBJ) $(RPC_PARSE_OBJ) $(LIBSMB_OBJ)
+PSEC_OBJ1 = $(LIB_OBJ) $(PARAM_OBJ) $(UBIQX_OBJ) $(RPC_PARSE_OBJ) \
+ $(LIBSMB_OBJ) $(PASSDB_OBJ) $(RPC_CLIENT_OBJ)
PSEC_OBJS = $(PSEC_OBJ1:%=$(srcdir)/%)
psec: $(PSEC_OBJS) psec.o
- $(CC) -o $@ psec.o $(PSEC_OBJS)
+ $(CC) -o $@ psec.o $(PSEC_OBJS) $(LIBS)
return temp;
}
-int str_to_ace(SEC_ACE *ace, char *ace_str)
+void str_to_ace(SEC_ACE *ace, char *ace_str)
{
SEC_ACCESS sa;
DOM_SID sid;
for (i = 0; i < secdesc_ctr->sec->dacl->num_aces; i++) {
SEC_ACE *ace = &secdesc_ctr->sec->dacl->ace[i];
- fstring sidstr;
sid_to_string(sidstr, &ace->sid);
/* Create security descriptor */
- sd = make_sec_desc(SEC_DESC_REVISION, SEC_DESC_SELF_RELATIVE |
- SEC_DESC_DACL_PRESENT,
+ sd = make_sec_desc(SEC_DESC_REVISION,
has_user_sid ? &user_sid : NULL,
has_group_sid ? &group_sid : NULL,
NULL, /* System ACL */