Bug 7637 - Active directory modules not being built (either static or shared)
Summary: Active directory modules not being built (either static or shared)
Status: NEW
Alias: None
Product: Samba 3.6
Classification: Unclassified
Component: Winbind (show other bugs)
Version: 3.6.0pre1
Hardware: x86 Linux
: P3 normal
Target Milestone: ---
Assignee: Michael Adam
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-20 16:31 UTC by Douglas Mayne
Modified: 2010-08-20 16:31 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Douglas Mayne 2010-08-20 16:31:00 UTC
I am testing with 3.6.0pre1 (as released 2010-07-28).

After googling this issue, I see a lot of Linux distributions (gentoo, debian, etc) and many Linux users are running into a problem when they attempt to upgrade or install a new version of Samba (3.5.x, 3.6.x). Here is a cross reference to a gentoo bug:
http://bugs.gentoo.org/show_bug.cgi?id=285814

As far as I know, I think this bug probably affects other versions that rely on the source3 tree. I upgraded to 3.6.0pre1 to see if that would fix this issue under 3.5.4. The problem has been already been reported where Winbind loses the ability to read the contents of existing Active Directory databases. This involves modules for the "backend" : ad, adex, ad_hash, ad_rid. I am just learning samba's AD integration and this was putting up a roadblock. I hacked my own solution that just hardcodes the modules into the "defaults" in the configure.in script. I am not sure it's the right thing to do, but at least I was able to continue with my testing. By the way, the configure directive 

"--with-shared-modules=idmap_rid,idmap_ad,idmap_hash"

has no effect. The config.log file will show:

configure:36843: checking how to build idmap_ad
configure:36858: result: not
configure:36887: checking how to build idmap_hash
configure:36902: result: not
configure:36931: checking how to build idmap_adex
configure:36946: result: not

With the patch below, the result is "SHARED" as intended.

Thanks for developing this important software!

Here is my patch:

--- old/source3/configure.in	2010-07-28 03:29:06.000000000 -0600
+++ new/source3/configure.in	2010-08-19 21:35:32.696788244 -0600
@@ -6563,6 +6563,11 @@
 MODULE_idmap_tdb=STATIC
 MODULE_idmap_passdb=STATIC
 MODULE_idmap_nss=STATIC
+MODULE_idmap_rid=SHARED
+MODULE_idmap_ad=SHARED
+MODULE_idmap_adex=SHARED
+MODULE_idmap_hash=SHARED
+
 
 MODULE_nss_info_template=STATIC