Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Feb 2015 15:46:33 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 197320] net/samba41: "pkg install samba41" (or samba4) pre-compiled install missing idmap_ad / ad.so shared-module!
Message-ID:  <bug-197320-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197320

            Bug ID: 197320
           Summary: net/samba41: "pkg install samba41" (or samba4)
                    pre-compiled install missing idmap_ad / ad.so
                    shared-module!
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: timur@FreeBSD.org
          Reporter: xenomorph@gmail.com
          Assignee: timur@FreeBSD.org
             Flags: maintainer-feedback?(timur@FreeBSD.org)

It seems like the binary/pre-compiled install of both Samba 4.0.x and Samba
4.1.x lack required modules for using Active Directory / rfc2307 id mapping.

With a very simple smb4.conf configuration, I should be able to pull up the
UID, GID, and other rfc2307 information from my Active Directory using the "ad"
backend.

----------
# server info
workgroup = DOMAIN
realm = DOMAIN.LOCAL
netbios name = Server
security = ads

# uid and gid is in ad
idmap config DOMAIN : backend = ad
idmap config DOMAIN : range = 10000-19999
idmap config DOMAIN : schema_mode = rfc2307
----------

Querying a user doesn't give me any of the information that I'm expecting. My
logs are filled with dozens of complaints about a missing "ad.so" idmap shared
module.

----------
[2015/02/03 17:00:47.849685,  3]
../source3/winbindd/idmap.c:230(idmap_init_domain)
  idmap backend ad not found
[2015/02/03 17:00:47.849727,  5] ../lib/util/modules.c:174(do_smb_load_module)
  Probing module 'ad'
[2015/02/03 17:00:47.849763,  5] ../lib/util/modules.c:188(do_smb_load_module)
  Probing module 'ad': Trying to load from
/usr/local/lib/shared-modules/idmap/ad.so
[2015/02/03 17:00:47.849958,  5] ../lib/util/modules.c:56(load_module)
  Error loading module '/usr/local/lib/shared-modules/idmap/ad.so': Cannot open
"/usr/local/lib/shared-modules/idmap/ad.so"
[2015/02/03 17:00:47.849985,  3]
../source3/winbindd/idmap.c:235(idmap_init_domain)
  Could not probe idmap module ad
----------

The directory "/usr/local/lib/shared-modules/idmap/" only contains four files:
----
autorid.so
hash.so
rfc2307.so
rid.so
tdb2.so
-----

Where is "ad.so"?

Compiling samba41 or samba4 from scratch does build and install "ad.so" (and my
above configuration then works as expected). Shouldn't ad.so be included by
default in the pre-compiled Samba packages? ("pkg install samba41" and "pkg
install samba4").

--- Comment #1 from Bugzilla Automation <bugzilla@FreeBSD.org> ---
Auto-assigned to maintainer timur@FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197320-13>