Displaying 1 result from an estimated 1 matches for "update_users_primgroup_sid".
2004 Jan 30
0
[PATCH] Group mapping primary group SID update
...rue;
}
+/******************************************************
+ Update primary group 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: C...