summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 09:56:47 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 09:56:47 +0000
commit61b20e5ee653dda680ab3101fa2f7f7ad6ec251b (patch)
tree3c060d982c070f2981d334184d106a1d60fac077 /source3/passdb
parent06c79a1757fa953237239288a8736f30db61f193 (diff)
downloadsamba-61b20e5ee653dda680ab3101fa2f7f7ad6ec251b.tar.gz
samba-61b20e5ee653dda680ab3101fa2f7f7ad6ec251b.tar.bz2
samba-61b20e5ee653dda680ab3101fa2f7f7ad6ec251b.zip
local_lookup_name() doens't acutally use its 'domain' argument, so drop it and
make its use clearer. (This used to be commit d1ea20cc2392f8ba4ac4241f9b5ec14489e49147)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/passdb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c
index 2bb4ee0a75..52b24b04f3 100644
--- a/source3/passdb/passdb.c
+++ b/source3/passdb/passdb.c
@@ -610,23 +610,21 @@ BOOL local_lookup_sid(DOM_SID *sid, char *name, enum SID_NAME_USE *psid_name_use
Convert a name into a SID. Used in the lookup name rpc.
********************************************************************/
-BOOL local_lookup_name(const char *c_domain, const char *c_user, DOM_SID *psid, enum SID_NAME_USE *psid_name_use)
+BOOL local_lookup_name(const char *c_user, DOM_SID *psid, enum SID_NAME_USE *psid_name_use)
{
extern DOM_SID global_sid_World_Domain;
struct passwd *pass = NULL;
DOM_SID local_sid;
fstring user;
- fstring domain;
SAM_ACCOUNT *sam_account = NULL;
*psid_name_use = SID_NAME_UNKNOWN;
/*
- * domain and user may be quoted const strings, and map_username and
- * friends can modify them. Make a modifiable copy. JRA.
+ * user may be quoted a const string, and map_username and
+ * friends can modify it. Make a modifiable copy. JRA.
*/
- fstrcpy(domain, c_domain);
fstrcpy(user, c_user);
sid_copy(&local_sid, &global_sam_sid);