diff options
author | Gerald Carter <jerry@samba.org> | 2006-02-24 21:36:40 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2006-02-24 21:36:40 +0000 |
commit | 0c0a59c2d67b9f0f808a3705722160caa209d9a1 (patch) | |
tree | 6b17ffb65466f12a87a7f6151926b23c1ee07330 /source/include | |
parent | ef630cfe9e465c0f807c9f734fa8f96c64b03a55 (diff) | |
download | samba-0c0a59c2d67b9f0f808a3705722160caa209d9a1.tar.gz samba-0c0a59c2d67b9f0f808a3705722160caa209d9a1.tar.xz samba-0c0a59c2d67b9f0f808a3705722160caa209d9a1.zip |
r13679: Commiting the rm_primary_group.patch posted on samba-technical
* ignore the primary group SID attribute from struct samu*
* generate the primary group SID strictlky from the Unix
primary group when dealing with passdb users
* Fix memory leak in original patch caused by failing to free a
talloc *
* add wrapper around samu_set_unix() to prevent exposing the create
BOOL to callers. Wrappers are samu_set_unix() and samu-allic_rid_unix()
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/passdb.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/include/passdb.h b/source/include/passdb.h index 3c1e9bb5b74..0e64653fe6b 100644 --- a/source/include/passdb.h +++ b/source/include/passdb.h @@ -163,8 +163,8 @@ struct samu { const char *unknown_str; /* don't know what this is, yet. */ const char *munged_dial; /* munged path name and dial-back tel number */ - DOM_SID user_sid; /* Primary User SID */ - DOM_SID group_sid; /* Primary Group SID */ + DOM_SID user_sid; + DOM_SID *group_sid; DATA_BLOB lm_pw; /* .data is Null if no password */ DATA_BLOB nt_pw; /* .data is Null if no password */ @@ -185,6 +185,7 @@ struct samu { uint32 unknown_6; /* 0x0000 04ec */ /* a tag for who added the private methods */ + const struct pdb_methods *backend_private_methods; void *backend_private_data; void (*backend_private_data_free_fn)(void **); |