summaryrefslogtreecommitdiff
path: root/source3/passdb/lookup_sid.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-07-03 02:32:18 +0200
committerVolker Lendecke <vl@samba.org>2008-07-03 11:08:51 +0200
commitd1635687aed6d4a19f6e87ca83ed330e5223bcc6 (patch)
tree41da1cb3319bb36cebd1614740b8e43c0acea06c /source3/passdb/lookup_sid.c
parentabb42b267b7e1240dcb479d8a2463b907529c5a2 (diff)
downloadsamba-d1635687aed6d4a19f6e87ca83ed330e5223bcc6.tar.gz
samba-d1635687aed6d4a19f6e87ca83ed330e5223bcc6.tar.bz2
samba-d1635687aed6d4a19f6e87ca83ed330e5223bcc6.zip
Don't scream, better explain a bit in comments
(This used to be commit dcc39ed00453a075b23daece2844ca4817bfbfaf)
Diffstat (limited to 'source3/passdb/lookup_sid.c')
-rw-r--r--source3/passdb/lookup_sid.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/source3/passdb/lookup_sid.c b/source3/passdb/lookup_sid.c
index 35af1ff0dc..4e11bb84d8 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)
}
/*****************************************************************
- *THE LEGACY* convert uid_t to SID function.
+ uid_t->SID conversion used if winbind is not around
*****************************************************************/
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)
}
/*****************************************************************
- *THE LEGACY* convert gid_t to SID function.
+ gid_t->SID conversion used if winbind is not around
*****************************************************************/
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)
}
/*****************************************************************
- *THE LEGACY* convert SID to uid function.
+ SID->uid_t conversion used if winbind is not around
*****************************************************************/
static bool legacy_sid_to_uid(const DOM_SID *psid, uid_t *puid)
@@ -1217,8 +1217,7 @@ done:
}
/*****************************************************************
- *THE LEGACY* convert SID to gid function.
- Group mapping is used for gids that maps to Wellknown SIDs
+ SID->gid_t conversion used if winbind is not around
*****************************************************************/
static bool legacy_sid_to_gid(const DOM_SID *psid, gid_t *pgid)
@@ -1281,7 +1280,7 @@ static bool legacy_sid_to_gid(const DOM_SID *psid, gid_t *pgid)
}
/*****************************************************************
- *THE CANONICAL* convert uid_t to SID function.
+ uid_t->SID conversion
*****************************************************************/
void uid_to_sid(DOM_SID *psid, uid_t uid)
@@ -1310,7 +1309,7 @@ void uid_to_sid(DOM_SID *psid, uid_t uid)
}
/*****************************************************************
- *THE CANONICAL* convert gid_t to SID function.
+ gid_t->SID conversion
*****************************************************************/
void gid_to_sid(DOM_SID *psid, gid_t gid)
@@ -1339,7 +1338,7 @@ void gid_to_sid(DOM_SID *psid, gid_t gid)
}
/*****************************************************************
- *THE CANONICAL* convert SID to uid function.
+ SID->uid_t conversion
*****************************************************************/
bool sid_to_uid(const DOM_SID *psid, uid_t *puid)
@@ -1389,8 +1388,7 @@ bool sid_to_uid(const DOM_SID *psid, uid_t *puid)
}
/*****************************************************************
- *THE CANONICAL* convert SID to gid function.
- Group mapping is used for gids that maps to Wellknown SIDs
+ SID->gid_t conversion
*****************************************************************/
bool sid_to_gid(const DOM_SID *psid, gid_t *pgid)