search for: sam_pwent

Displaying 2 results from an estimated 2 matches for "sam_pwent".

2004 Jan 30
0
[PATCH] Group mapping primary group SID update
...SID in passdb with <string_sid> + for users whose Unix primary group is <gid>. Useful + after a net_groupmap add/modify/delete. +******************************************************/ +static BOOL update_users_primgroup_sid(const gid_t gid, fstring string_sid) +{ + SAM_ACCOUNT *sam_pwent=NULL; + struct passwd *pass=NULL; + fstring usrname = ""; + + /* Initialize static context */ + if(!initialize_password_db(True)) { + DEBUG(0,("update_users_primgroup_sid: Cannot initialize password database.\n")); + return Fa...
2005 Aug 10
0
[GOLUM] RE: pdbedit not working as documented
...mplete user SID or RID!\n"); > ??????????????????????????????return -1; > ??????????????????????} > ??????????????????????sid_copy(&u_sid, get_global_sam_sid()); > ??????????????????????sid_append_rid(&u_sid, u_rid); > ??????????????} > ??????????????pdb_set_user_sid (sam_pwent, &u_sid, PDB_CHANGED); > ??????} > ??????if (group_sid) { > ??????????????DOM_SID g_sid; > ??????????????if (!string_to_sid(&g_sid, group_sid)) { > ??????????????????????/* not a complete sid, may be a RID, try building a > SID */ > ??????????????????????int g_rid; >...