Bug 3264 - Problem loading idmap modules
Problem loading idmap modules
Product: Samba 3.0
Classification: Unclassified
Component: winbind
All Linux
: P3 major
: none
Assigned To: Lars Müller
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-11-16 01:35 UTC by Michael Trezzi
Modified: 2006-01-14 08:25 UTC (History)
3 users (show)

See Also:

strip idmap backend names (2.02 KB, patch)
2006-01-13 04:25 UTC, Guenther Deschner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Trezzi 2005-11-16 01:35:41 UTC
When using idmap backend = idmap_ad, Winbind doesn't start. 2 log messages led me to the solution:
Using idmap backend 'idmap_ad'
Succesfully added idmap backend 'ad'
Could not load idmap backend 'idmap_ad'

the idmap backend uses it's value as filename when searching for the backend, however the backend registers as 'ad' instead of 'idmap_ad' So it won't load. SOlution is simple -> rename idmap_ad.so to ad.so and change the idmap backend to 'ad' ot the other way around (make idmap_ad register as idmap_ad). If you know where is the problem, that the workaround is easy, however it might be a good idea to correct it in the distribution.

Michael Trezzi
Comment 1 Guenther Deschner 2006-01-13 04:25:48 UTC
Created attachment 1680 [details]
strip idmap backend names
Comment 2 Guenther Deschner 2006-01-13 04:28:32 UTC
Jerry, I would like to commit that patch which finally stripts the idmap backend name. Those having used "idmap backend = idmap_rid" would have to change to "idmap backend = rid". idmap_ad, and the static plugins tdb and ldap are not affected. What do you think?
Comment 3 Gerald (Jerry) Carter 2006-01-13 07:22:11 UTC
Yeah.  I agree.  For consistentcy, the names should simply be 
tdb, ldap, rid, & ad.  Thanks Guenther.
Comment 4 Lars Müller 2006-01-13 07:54:49 UTC
And to make an update as smooth as possible I'll take care to strip of idmap_ from any module we get in loadparm.  I discussed this with Günther and he'll assign this bug to me as soon he submitted his changes.
Comment 5 Guenther Deschner 2006-01-13 07:58:26 UTC
Fixed in subversion.

Reassigning to Lars, since he has a nice idea how to transparently solve the upgrade case (for idmap_rid vs. rid).
Comment 6 Lars Müller 2006-01-14 08:25:46 UTC
Fixed as mentiond by Günther in comment #5 with svn rev 12936.