Package: slapd Version: 2.1.30-3 Followup-For: Bug #255276 I am using LDAP for authentication with libnss_ldap. I also use webmin-ldap-useradmin 1.160-1 for managing the LDAP database. I am trying to add Samba login information to a user account using webmin, but when I set "Samba login?" to "Yes" in the webmin Edit User screen and press Save, I get "Failed to save user : Failed to modify user in LDAP database : I/O Error" and subsequent attempts to access the LDAP database through webmin fail with "Failed to connect to LDAP server 127.0.0.1 port 389." Moreover the LDAP server stops accepting connections: ~$ ldapsearch ldap_sasl_interactive_bind_s: Can't contact LDAP server (81) ~$ ldapsearch -W -x Enter LDAP Password: ldap_bind: Can't contact LDAP server (81) As a result, it is no longer possible to log in to the system. Listing the database with slapcat works sometimes, but I have also experienced that slapcat just hangs, giving no output at all. Restarting slapd does not help, but if I run db4.2_recover and then restart slapd, it works normally again. The LDAP database is very small, containing only 3-4 user entries. I tried putting the line export LD_ASSUME_KERNEL=2.4.1 in /etc/default/slapd and restarting slapd, but it did not help. -- System Information: Debian Release: 3.1 APT prefers testing APT policy: (990, 'testing'), (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.8custom Locale: LANG=sv_SE.UTF-8, LC_CTYPE=sv_SE.UTF-8 Versions of packages slapd depends on: ii coreutils [fileutils] 5.2.1-2 The GNU core utilities ii debconf 1.4.30.5 Debian configuration management sy ii libc6 2.3.2.ds1-16 GNU C Library: Shared libraries an pi libdb4.2 4.2.52-17 Berkeley v4.2 Database Libraries [ ii libgcrypt11 1.2.0-4 LGPL Crypto library - runtime libr ii libgnutls11 1.0.16-7 GNU TLS library - runtime library ii libgpg-error0 1.0-1 library for common error values an ii libiodbc2 3.51.2-5 iODBC Driver Manager ii libldap2 2.1.30-3 OpenLDAP libraries ii libltdl3 1.5.6-2 A system independent dlopen wrappe ii libsasl2 2.1.19-1.1 Authentication abstraction library ii libslp1 1.0.11-7 OpenSLP libraries ii libwrap0 7.6.dbs-6 Wietse Venema's TCP wrappers libra ii perl [libmime-base64-perl] 5.8.4-2.2 Larry Wall's Practical Extraction ii psmisc 21.5-1 Utilities that use the proc filesy ii zlib1g 1:1.2.1.1-7 compression library - runtime -- debconf information: slapd/fix_directory: true * shared/organization: Better Home slapd/upgrade_slapcat_failure: slapd/backend: BDB * slapd/allow_ldap_v2: false slapd/no_configuration: false slapd/move_old_database: true slapd/suffix_change: false slapd/slave_databases_require_updateref: slapd/autoconf_modules: true * slapd/domain: home.better.se slapd/password_mismatch: slapd/invalid_config: true slapd/upgrade_slapadd_failure: slapd/purge_database: false slapd/admin: