<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>13210</bug_id>
          
          <creation_ts>2007-10-24 12:54:10 +0400</creation_ts>
          <short_desc>No idmap backends included</short_desc>
          <delta_ts>2007-11-16 11:58:44 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>samba-common</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivanov Maxim">ivanov.maxim</reporter>
          <assigned_to name="Evgeny Sinelnikov">sin</assigned_to>
          <cc>mike</cc>
    
    <cc>sin</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56925</commentid>
    <comment_count>0</comment_count>
    <who name="Ivanov Maxim">ivanov.maxim</who>
    <bug_when>2007-10-24 12:54:10 +0400</bug_when>
    <thetext>There is no idmap backends included in /usr/lib/samba/idmap

I&apos;ve configured samba to use rid idmap backend like this:

======== part of smb.conf ================================
idmap domains = ALLDOMAINS
idmap config ALLDOMAINS:backend      = rid
idmap config ALLDOMAINS:default      = yes
idmap config ALLDOMAINS:baserid      = 1000
idmap config ALLDOMAINS:range        = 10000 - 60000
==========================================================

and this is result of command wbinfo --alocate-uid (wbinfo -g and wbinfo -u 
works just fine):

[2007/10/24 12:52:49, 4] nsswitch/winbindd_dual.c:fork_domain_child(1054)
  child daemon request 28
[2007/10/24 12:52:49, 10] nsswitch/winbindd_dual.c:child_process_request(479)
  process_request: request fn ALLOCATE_UID
[2007/10/24 12:52:49, 10] nsswitch/idmap_cache.c:idmap_cache_init(60)
  Opening cache file at /var/lib/samba/idmap_cache.tdb
[2007/10/24 12:52:49, 5] nsswitch/idmap.c:smb_register_idmap_alloc(216)
  Successfully added idmap alloc backend &apos;ldap&apos;
[2007/10/24 12:52:49, 5] nsswitch/idmap.c:smb_register_idmap(163)
  Successfully added idmap backend &apos;ldap&apos;
[2007/10/24 12:52:49, 5] nsswitch/idmap.c:smb_register_idmap_alloc(216)
  Successfully added idmap alloc backend &apos;tdb&apos;
[2007/10/24 12:52:49, 5] nsswitch/idmap.c:smb_register_idmap(163)
  Successfully added idmap backend &apos;tdb&apos;
[2007/10/24 12:52:49, 5] nsswitch/idmap.c:smb_register_idmap(163)
  Successfully added idmap backend &apos;passdb&apos;
[2007/10/24 12:52:49, 5] nsswitch/idmap.c:smb_register_idmap(163)
  Successfully added idmap backend &apos;nss&apos;
[2007/10/24 12:52:49, 1] nsswitch/idmap.c:idmap_init(365)
  Initializing idmap domains
[2007/10/24 12:52:49, 5] lib/module.c:smb_probe_module(108)
  Probing module &apos;rid&apos;
[2007/10/24 12:52:49, 5] lib/module.c:smb_probe_module(119)
  Probing module &apos;rid&apos;: Trying to load from /usr/lib/samba/idmap/rid.so
[2007/10/24 12:52:49, 3] lib/module.c:do_smb_load_module(49)
  Error loading 
module &apos;/usr/lib/samba/idmap/rid.so&apos;: /usr/lib/samba/idmap/rid.so: cannot open 
shared object file: No such file or directory
[2007/10/24 12:52:49, 0] nsswitch/idmap.c:idmap_init(443)
  ERROR: Could not get methods for backend rid
[2007/10/24 12:52:49, 0] nsswitch/idmap.c:idmap_init(713)
  Aborting IDMAP Initialization ...
[2007/10/24 12:52:49, 10] nsswitch/winbindd_cache.c:cache_store_response(2260)
  Storing response for pid 5531, len 3240

Steps to Reproduce:
1. configure samba as AD domain member and any idmap backend
2. wbinfo --allocate-uid

Actual Results:  
string &quot;ERROR: Could not get methods for backend rid&quot; in logs

Expected Results:  
new allocated uid</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58021</commentid>
    <comment_count>1</comment_count>
    <who name="Alexander Bokovoy">ab</who>
    <bug_when>2007-11-11 21:10:49 +0300</bug_when>
    <thetext>My error, idmap_ad and idmap_rid aren&apos;t activated and built by default. Will be
fixed in 3.0.26a-alt2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58239</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Shigorin">mike</who>
    <bug_when>2007-11-16 10:04:38 +0300</bug_when>
    <thetext>* Sun Nov 11 2007 Alexander Bokovoy &lt;ab@altlinux&gt; 3.0.26a-alt2   
- Use git to handle the package
  + Fix #13210 (and a number of similar unreported bugs), now
    all pdb, auth, rpc, and idmap are included into samba-common</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58244</commentid>
    <comment_count>3</comment_count>
    <who name="Alexander Bokovoy">ab</who>
    <bug_when>2007-11-16 11:58:44 +0300</bug_when>
    <thetext>Fixed in 3.0.27-alt1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>