Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 290265 - net-fs/samba-server-3.4.2: Does not build ad or adex idmap support
Summary: net-fs/samba-server-3.4.2: Does not build ad or adex idmap support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on: 285814
Blocks:
  Show dependency tree
 
Reported: 2009-10-23 17:27 UTC by Ross Anderson
Modified: 2010-12-22 19:40 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Config/Build log attached (samba_build.log,86.20 KB, text/plain)
2009-10-23 18:33 UTC, Ross Anderson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Anderson 2009-10-23 17:27:18 UTC
Attempting to build Samba-server with AD or adex support. 

[ebuild   R   ] net-fs/samba-libs-3.4.2-r2  USE="ads ldap netapi pam winbind -addns -aio -caps -cluster -cups -debug -examples -samba4 -smbclient -smbsharemodes -syslog -tools" 0 kB

[ebuild   R   ] net-fs/samba-server-3.4.2  USE="ads ldap winbind -acl -aio -avahi -caps -cluster -cups -debug -doc -examples -fam -quota -samba4 -swat -syslog -zeroconf" 0 kB


however build does:

checking how to build idmap_ldap... static
checking how to build idmap_tdb... static
checking how to build idmap_tdb2... not
checking how to build idmap_passdb... static
checking how to build idmap_nss... static
checking how to build idmap_rid... not
checking how to build idmap_ad... not
checking how to build idmap_hash... not
checking how to build idmap_adex... not
checking how to build nss_info_template... static


Reproducible: Always

Steps to Reproduce:
1. set use flags ad
2. emerge samba-libs and server 
3.

Actual Results:  
samba # ls -lv /usr/lib/samba/idmap/
total 0


[2009/10/23 12:20:27,  6] winbindd/winbindd.c:834(new_connection)
  accepted socket 20
[2009/10/23 12:20:27,  3] winbindd/winbindd_misc.c:754(winbindd_interface_version)
  [32508]: request interface version
[2009/10/23 12:20:27,  3] winbindd/winbindd_misc.c:787(winbindd_priv_pipe_dir)
  [32508]: request location of privileged pipe
[2009/10/23 12:20:27,  6] winbindd/winbindd.c:834(new_connection)
  accepted socket 21
[2009/10/23 12:20:27,  2] winbindd/winbindd.c:878(remove_client)
  final write to client failed: Broken pipe
[2009/10/23 12:20:27,  3] winbindd/winbindd_misc.c:127(winbindd_list_ent)
  [32508]: list users

Expected Results:  
ls -lv /usr/lib/samba/idmap/
total 36
-rwxr-xr-x 1 root root 22840 Jun 30 03:44 ad.so
-rwxr-xr-x 1 root root 22840 Jun 30 03:44 adex.so
-rwxr-xr-x 1 root root 10232 Jun 30 03:44 rid.so
Comment 1 Ross Anderson 2009-10-23 17:28:32 UTC
System uname: Linux-2.6.30.3-x86_64-Intel-R-_Xeon-TM-_CPU_2.80GHz-with-gentoo-1.12.11.1
Timestamp of tree: Fri, 23 Oct 2009 09:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 1.3.7-r1, 2.1.8-r1
dev-lang/python:     2.4.4-r13, 2.5.4-r2, 2.6.2-r1
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j13"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acpi amd64 apache2 async berkdb bzip2 c++ cli cracklib crypt dcc dri dvd fortran iconv innodb isdnlog java kerberos ldap ldapsam libwww management mmx modules mudflap multilib mysql nagios-dns nagios-ntp nagios-ping nagios-ssh nat ncurses nfs nls noamazon noaudio nocardbus nojoystick nptlonly oav openmp pam pcre perl php pppd python readline realms reflection reiserfs samba session spl sse sse2 ssl svg tcpd winbind xfs xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

=================================================================
                        Package Settings
=================================================================

net-fs/samba-server-3.4.2 was built with the following:
USE="ads ldap (multilib) winbind -acl -aio -avahi -caps -cluster -cups -debug -doc -examples -fam -quota -samba4 -swat -syslog -zeroconf"
Comment 2 Ross Anderson 2009-10-23 17:50:40 UTC
[2009/10/23 12:49:50,  4] winbindd/winbindd_dual.c:1452(fork_domain_child)
  child daemon request 51
[2009/10/23 12:49:50,  3] winbindd/winbindd_idmap.c:293(winbindd_dual_sid2uid)
  [ 1599]: sid to uid S-1-5-21-3450377694-2679267419-198819240-1114
[2009/10/23 12:49:50,  5] winbindd/idmap.c:218(smb_register_idmap_alloc)
  Successfully added idmap alloc backend 'ldap'
[2009/10/23 12:49:50,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'ldap'
[2009/10/23 12:49:50,  5] winbindd/idmap.c:218(smb_register_idmap_alloc)
  Successfully added idmap alloc backend 'tdb'
[2009/10/23 12:49:50,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'tdb'
[2009/10/23 12:49:50,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'passdb'
[2009/10/23 12:49:50,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'nss'
[2009/10/23 12:49:50,  3] winbindd/idmap.c:359(idmap_init_default_domain)
  idmap_init: using 'adex' as remote backend
[2009/10/23 12:49:50,  3] winbindd/idmap.c:302(idmap_init_domain)
  idmap backend adex not found
[2009/10/23 12:49:50,  3] winbindd/idmap.c:307(idmap_init_domain)
  Could not probe idmap module adex
Comment 3 Ross Anderson 2009-10-23 17:52:59 UTC
or alternatively 

[2009/10/23 12:52:00,  4] winbindd/winbindd_dual.c:1452(fork_domain_child)
  child daemon request 51
[2009/10/23 12:52:00,  3] winbindd/winbindd_idmap.c:293(winbindd_dual_sid2uid)
  [ 2149]: sid to uid S-1-5-21-3450377694-2679267419-198819240-1114
[2009/10/23 12:52:00,  5] winbindd/idmap.c:218(smb_register_idmap_alloc)
  Successfully added idmap alloc backend 'ldap'
[2009/10/23 12:52:00,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'ldap'
[2009/10/23 12:52:00,  5] winbindd/idmap.c:218(smb_register_idmap_alloc)
  Successfully added idmap alloc backend 'tdb'
[2009/10/23 12:52:00,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'tdb'
[2009/10/23 12:52:00,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'passdb'
[2009/10/23 12:52:00,  5] winbindd/idmap.c:169(smb_register_idmap)
  Successfully added idmap backend 'nss'
[2009/10/23 12:52:00,  3] winbindd/idmap.c:359(idmap_init_default_domain)
  idmap_init: using 'ad' as remote backend
[2009/10/23 12:52:00,  3] winbindd/idmap.c:302(idmap_init_domain)
  idmap backend ad not found
[2009/10/23 12:52:00,  3] winbindd/idmap.c:307(idmap_init_domain)
  Could not probe idmap module ad
Comment 4 Rafał Mużyło 2009-10-23 18:05:07 UTC
Attach config.log and build.log (at least its part till the end of
configure).

Probably another thing missed during split.
Comment 5 Ross Anderson 2009-10-23 18:33:36 UTC
Created attachment 208024 [details]
Config/Build log attached 

idmap_ad or idmap_adex modules not being added to configure
Comment 6 Rafał Mużyło 2009-10-23 21:58:38 UTC
I don't see that config.log there, but it should be enough.
Comment 7 Ross Anderson 2009-10-26 18:29:29 UTC
Similar to bug listed here. 

http://bugs.gentoo.org/show_bug.cgi?id=285814
Comment 8 Ross Anderson 2009-11-01 17:11:08 UTC
Bug continues to be present in 3.4.3

Comment 9 Patrick Lauer gentoo-dev 2009-11-05 22:46:56 UTC
I think we'll have to make fixing this bug dependant on a proper solution for #285814
Comment 10 Víctor Ostorga (RETIRED) gentoo-dev 2010-12-22 19:40:05 UTC
+  22 Dec 2010; Víctor Ostorga <vostorga@gentoo.org> samba-3.4.9.ebuild,
+  samba-3.5.6.ebuild:
+  Adding idmap (rid,adex,ldap,hash,ad) modules support, bugs #329383 #285814
+  #290265 Adding manpages for idmap modules bug #281262
+  Based on patch thanks to Azamat H. Hackimov <azamat.hackimov@gmail.com>