Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184507 - app-emulation/wine does not work for ldap-only users
Summary: app-emulation/wine does not work for ldap-only users
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Wine Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-07 13:00 UTC by Evert
Modified: 2016-04-25 16:28 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evert 2007-07-07 13:00:04 UTC
wine-0.9.40 does not work for ldap-only users

Below I show how it does not work for winecfg since this is the easiest way for me to show, but wine itself does not work either...

Reproducible: Always

Steps to Reproduce:
1. setup linux-authentication using ldap
2. configure the wineuser in the ldap
3. remove the wineuser from /etc/passwd
4. login as the wineuser
5. rm -rf .wine
6. winecfg
Actual Results:  
$ winecfg 
wine: creating configuration directory '/home/wineuser/.wine'...
wine: wineprefixcreate failed while creating '/home/wineuser/.wine'.
[ the Wine configuration gui does not appear ]

Expected Results:  
$ winecfg 
wine: creating configuration directory '/home/wineuser/.wine'...
wine: '/home/wineuser/.wine' created successfully.
[ the Wine configuration gui appears ]

I can get the expected results if I put the output of
$ getent passwd | grep -m1 ^wineuser:
back into /etc/passwd, but of course that's not what LDAP is meant for...


# emerge -pv wine
[ebuild   R   ] app-emulation/wine-0.9.40  USE="X alsa cups esd jpeg ldap ncurses opengl oss xml -dbus -hal -jack -lcms -nas -scanner" 0 kB 


# emerge --info
Portage 2.1.2.9 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.20.4 i686)
=================================================================
System uname: 2.6.20.4 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 07 Jul 2007 03:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
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
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=i686 -pipe"
DISTDIR="/data/linux/gentoo/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="C"
LINGUAS="en en_US en_GB nl de"
MAKEOPTS="-j2"
PKGDIR="/data/linux/gentoo/packages/amd_athlon-xp"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/compile"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac alsa apache2 apm berkdb bitmap-fonts cli cracklib crypt cups dri dvd dvdr dvdread encode esd fortran gdbm gif gnome gpm gstreamer gtk iconv imlib ipv6 isdnlog java jpeg ldap libg++ mad midi mikmod mmx mng mozilla mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt qt3 qt4 quicktime readline reflection samba sdl session spell spl sse ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode v4l v4l2 vcd vorbis wmf x86 xinerama xml xorg xv zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB nl de" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nvidia v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2007-07-07 21:52:28 UTC
that error comes from executing another binary ... try running this:
wineprefixcreate --wait --prefix $PWD/MOOOOO

and if that fails, run it through `strace -f -o log` and post the log file as an attachment
Comment 2 Evert 2007-07-13 21:29:12 UTC
wineprefixcreate is not the problem if I run it directly; without args it creates .wine + contents; your way it creates M00000 + contents which is not strange knowing it's just a shell script.

Still stays the fact that if I install something, for instance Diablo II, with the user in /etc/passwd, the game plays normal, but after removing the user from /etc/passwd (ldap-only user) nothing happens when starting the game.
Comment 3 Justin Sanchez 2007-07-22 17:50:09 UTC
Does the behavior change if you restart nscd just before running the command?
Comment 4 Evert 2007-10-20 12:40:35 UTC
I didn't even have nscd started, should I, and if yes, why?
Anyway, starting nscd makes it work for ldap-only users
Comment 5 Marek Szuba archtester gentoo-dev 2016-04-25 08:08:36 UTC
Dear subscribers to this bug,

Is there still any interest in keeping this bug open? It is almost 9 years old, almost certainly an upstream issue rather than something Gentoo-specific, refers to a positively ancient version of Wine, and even back then could be worked around easily. Oh, and while I don't know what it would be like using nss_ldap+pam_ldap (which I assume is what Evert used to set up LDAP auth nowadays, I've got no trouble running Wine-1.6.2 as an LDAP user on a system using sys-auth/sssd for LDAP access.
Comment 6 Adam Feldman gentoo-dev 2016-04-25 16:28:59 UTC
(In reply to Marek Szuba from comment #5)
> Dear subscribers to this bug,
> 
> Is there still any interest in keeping this bug open? It is almost 9 years
> old, almost certainly an upstream issue rather than something
> Gentoo-specific, refers to a positively ancient version of Wine, and even
> back then could be worked around easily. Oh, and while I don't know what it
> would be like using nss_ldap+pam_ldap (which I assume is what Evert used to
> set up LDAP auth nowadays, I've got no trouble running Wine-1.6.2 as an LDAP
> user on a system using sys-auth/sssd for LDAP access.

Helping out on a bug is OK.  Working with bug-cleaners to close out old maintainer-wanted bugs is also OK.  Trying to close out bugs actively owned by maintainers is not.  This has been discussed publicly before, and has been decided that there is no gain from closing out old (valid) bugs.  Please keep this in mind, and I will be watching your bugzilla activity from now on.