summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-11 17:44:44 +0200
committerVolker Lendecke <vl@samba.org>2008-07-11 17:53:25 +0200
commit68071e94a53ca943fb2661ac0925e921da7db379 (patch)
treec9a69a9065033b48725ed754afeb5a62c742daa0 /source3
parentf70c8ecde2a1041adf4a8ef1cc2a70f823997e38 (diff)
downloadsamba-68071e94a53ca943fb2661ac0925e921da7db379.tar.gz
samba-68071e94a53ca943fb2661ac0925e921da7db379.tar.bz2
samba-68071e94a53ca943fb2661ac0925e921da7db379.zip
Revert "Don't scream, better explain a bit in comments"
This reverts commit dcc39ed00453a075b23daece2844ca4817bfbfaf. (This used to be commit 26ca09a3570a0df051d042bef586ea57ad9f198c)
Diffstat (limited to 'source3')
-rw-r--r--source3/passdb/lookup_sid.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 4e11bb84d8..35af1ff0dc 100644
--- a/source3/passdb/lookup_sid.c
+++ b/source3/passdb/lookup_sid.c
@@ -1109,7 +1109,7 @@ void store_gid_sid_cache(const DOM_SID *psid, gid_t gid)
}
/*****************************************************************
- uid_t->SID conversion used if winbind is not around
+ *THE LEGACY* convert uid_t to SID function.
*****************************************************************/
static void legacy_uid_to_sid(DOM_SID *psid, uid_t uid)
@@ -1143,7 +1143,7 @@ static void legacy_uid_to_sid(DOM_SID *psid, uid_t uid)
}
/*****************************************************************
- gid_t->SID conversion used if winbind is not around
+ *THE LEGACY* convert gid_t to SID function.
*****************************************************************/
static void legacy_gid_to_sid(DOM_SID *psid, gid_t gid)
@@ -1174,7 +1174,7 @@ static void legacy_gid_to_sid(DOM_SID *psid, gid_t gid)
}
/*****************************************************************
- SID->uid_t conversion used if winbind is not around
+ *THE LEGACY* convert SID to uid function.
*****************************************************************/
static bool legacy_sid_to_uid(const DOM_SID *psid, uid_t *puid)
@@ -1217,7 +1217,8 @@ done:
}
/*****************************************************************
- SID->gid_t conversion used if winbind is not around
+ *THE LEGACY* convert SID to gid function.
+ Group mapping is used for gids that maps to Wellknown SIDs
*****************************************************************/
static bool legacy_sid_to_gid(const DOM_SID *psid, gid_t *pgid)
@@ -1280,7 +1281,7 @@ static bool legacy_sid_to_gid(const DOM_SID *psid, gid_t *pgid)
}
/*****************************************************************
- uid_t->SID conversion
+ *THE CANONICAL* convert uid_t to SID function.
*****************************************************************/
void uid_to_sid(DOM_SID *psid, uid_t uid)
@@ -1309,7 +1310,7 @@ void uid_to_sid(DOM_SID *psid, uid_t uid)
}
/*****************************************************************
- gid_t->SID conversion
+ *THE CANONICAL* convert gid_t to SID function.
*****************************************************************/
void gid_to_sid(DOM_SID *psid, gid_t gid)
@@ -1338,7 +1339,7 @@ void gid_to_sid(DOM_SID *psid, gid_t gid)
}
/*****************************************************************
- SID->uid_t conversion
+ *THE CANONICAL* convert SID to uid function.
*****************************************************************/
bool sid_to_uid(const DOM_SID *psid, uid_t *puid)
@@ -1388,7 +1389,8 @@ bool sid_to_uid(const DOM_SID *psid, uid_t *puid)
}
/*****************************************************************
- SID->gid_t conversion
+ *THE CANONICAL* convert SID to gid function.
+ Group mapping is used for gids that maps to Wellknown SIDs
*****************************************************************/
bool sid_to_gid(const DOM_SID *psid, gid_t *pgid)