[Freeipa-devel] [PATCH] 16 Add a second module init call for newer samba versions

Sumit Bose sbose at redhat.com
Thu Dec 8 11:58:12 UTC 2011


Hi,

the samba team decided to rename the symbol to initialize a new module
(again). This patch adds the new name and keeps the old one.

bye,
Sumit
-------------- next part --------------
From a9036112ca47f14d9f17f665fd6bd3efba9dc7b3 Mon Sep 17 00:00:00 2001
From: Sumit Bose <sbose at redhat.com>
Date: Wed, 7 Dec 2011 17:23:53 +0100
Subject: [PATCH] Add a second module init call for newer samba versions

---
 daemons/ipa-sam/ipa_sam.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/daemons/ipa-sam/ipa_sam.c b/daemons/ipa-sam/ipa_sam.c
index 684cd37ef64d3b73bb1feba9ca91f4a4a241af4e..be97cb7c44f98a76208f16baab96e4438ec74eca 100644
--- a/daemons/ipa-sam/ipa_sam.c
+++ b/daemons/ipa-sam/ipa_sam.c
@@ -3233,3 +3233,9 @@ NTSTATUS samba_module_init(void)
 	return smb_register_passdb(PASSDB_INTERFACE_VERSION, "ipasam",
 				   pdb_init_ipasam);
 }
+
+NTSTATUS samba_init_module(void)
+{
+	return smb_register_passdb(PASSDB_INTERFACE_VERSION, "ipasam",
+				   pdb_init_ipasam);
+}
-- 
1.7.6



More information about the Freeipa-devel mailing list