|
From: <he...@us...> - 2013-05-11 07:53:38
|
Revision: 181
http://sourceforge.net/p/pdbsql/code/181
Author: herwinw
Date: 2013-05-11 07:53:35 +0000 (Sat, 11 May 2013)
Log Message:
-----------
Added some dummy search functions
See bug 11. Code provided by Gary Mills.
Modified Paths:
--------------
branches/pdbsql_36/pdb_mysql.c
branches/pdbsql_36/pdb_pgsql.c
Modified: branches/pdbsql_36/pdb_mysql.c
===================================================================
--- branches/pdbsql_36/pdb_mysql.c 2013-05-11 07:40:03 UTC (rev 180)
+++ branches/pdbsql_36/pdb_mysql.c 2013-05-11 07:53:35 UTC (rev 181)
@@ -517,6 +517,23 @@
return true;
}
+/* Dummy search_ functions. Maybe they should really work XXXX */
+/* Courtesy of Gary Mills */
+static bool mysqlsam_search_groups(struct pdb_methods *methods,
+ struct pdb_search *search)
+{
+ talloc_set_destructor(search, NULL);
+ return false;
+}
+
+static bool mysqlsam_search_aliases(struct pdb_methods *methods,
+ struct pdb_search *search,
+ const struct dom_sid *sid)
+{
+ talloc_set_destructor(search, NULL);
+ return false;
+}
+
static NTSTATUS mysqlsam_init(struct pdb_methods **pdb_method, const char *location)
{
NTSTATUS nt_status;
@@ -535,6 +552,8 @@
(*pdb_method)->name = "mysqlsam";
(*pdb_method)->search_users = mysqlsam_search_users;
+ (*pdb_method)->search_groups = mysqlsam_search_groups;
+ (*pdb_method)->search_aliases = mysqlsam_search_aliases;
(*pdb_method)->getsampwnam = mysqlsam_getsampwnam;
(*pdb_method)->getsampwsid = mysqlsam_getsampwsid;
(*pdb_method)->add_sam_account = mysqlsam_add_sam_account;
Modified: branches/pdbsql_36/pdb_pgsql.c
===================================================================
--- branches/pdbsql_36/pdb_pgsql.c 2013-05-11 07:40:03 UTC (rev 180)
+++ branches/pdbsql_36/pdb_pgsql.c 2013-05-11 07:53:35 UTC (rev 181)
@@ -564,6 +564,24 @@
return true;
}
+/* Dummy search_ functions. Maybe they should really work XXXX */
+/* Courtesy of Gary Mills */
+static bool pgsqlsam_search_groups(struct pdb_methods *methods,
+ struct pdb_search *search)
+{
+ talloc_set_destructor(search, NULL);
+ return false;
+}
+
+static bool pgsqlsam_search_aliases(struct pdb_methods *methods,
+ struct pdb_search *search,
+ const struct dom_sid *sid)
+{
+ talloc_set_destructor(search, NULL);
+ return false;
+}
+
+
static NTSTATUS pgsqlsam_init (struct pdb_methods **pdb_method, const char *location)
{
NTSTATUS nt_status;
@@ -585,6 +603,8 @@
(*pdb_method)->name = "pgsqlsam";
(*pdb_method)->search_users = pgsqlsam_search_users;
+ (*pdb_method)->search_groups = pgsqlsam_search_groups;
+ (*pdb_method)->search_aliases = pgsqlsam_search_aliases;
(*pdb_method)->getsampwnam = pgsqlsam_getsampwnam;
(*pdb_method)->getsampwsid = pgsqlsam_getsampwsid;
(*pdb_method)->add_sam_account = pgsqlsam_add_sam_account;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|