From d3f269cd833c7452776008881ec1f1b695e0eabf Mon Sep 17 00:00:00 2001
From: Simo Sorce <idra@samba.org>
Date: Thu, 22 Jan 2004 14:44:45 +0000
Subject: fix previously committed old version by mistake (This used to be
 commit 4840b25dbd4d2eafc010389a711d42862d5fb0f0)

---
 source3/passdb/pdb_gums.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'source3/passdb')

diff --git a/source3/passdb/pdb_gums.c b/source3/passdb/pdb_gums.c
index 874199e04d..f34d3a94b5 100644
--- a/source3/passdb/pdb_gums.c
+++ b/source3/passdb/pdb_gums.c
@@ -1,6 +1,6 @@
 /*
- * 'Gums' password backend for samba
- * Copyright (C) Simo Sorce 2004
+ * GUMS password backend for samba
+ * Copyright (C) Simo Sorce 2003-2004
  * 
  * This program is free software; you can redistribute it and/or modify it under
  * the terms of the GNU General Public License as published by the Free
@@ -236,7 +236,7 @@ static NTSTATUS gums_getsampwnam (struct pdb_methods *methods, SAM_ACCOUNT *acco
 	if (!account || !name)
 		return NT_STATUS_INVALID_PARAMETER;
 
-	if (!NT_STATUS_IS_OK(ret = ggwd->fns->get_object_from_name(&go, name, GUMS_OBJ_NORMAL_USER))) {
+	if (!NT_STATUS_IS_OK(ret = ggwd->fns->get_object_from_name(&go, global_myname(), name, GUMS_OBJ_NORMAL_USER))) {
 		DEBUG(10, ("gums_getsampwnam: unable to find account with name %s", name));
 		return ret;
 	}
-- 
cgit