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.
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
Message-Id: <email address hidden>
Date: Fri, 24 Sep 2004 10:22:13 +0200
From: Marcus Better <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: slapd: Similar problem
Package: slapd
Version: 2.1.30-3
Followup-For: Bug #255276
I am using LDAP for authentication with libnss_ldap. I also use ldap-useradmin 1.160-1 for managing the LDAP database.
webmin-
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 interactive_ bind_s: Can't contact LDAP server (81)
ldap_sasl_
~$ 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 KERNEL= 2.4.1
export LD_ASSUME_
in /etc/default/slapd and restarting slapd, but it did not help.
-- System Information: sv_SE.UTF- 8
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=
Versions of packages slapd depends on: base64- perl] 5.8.4-2.2 Larry Wall's Practical Extraction
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-
ii psmisc 21.5-1 Utilities that use the proc filesy
ii zlib1g 1:1.2.1.1-7 compression library - runtime
-- debconf information: fix_directory: true organization: Better Home upgrade_ slapcat_ failure: ldap_v2: false no_configuratio n: false move_old_ database: true suffix_ change: false slave_databases _require_ updateref: autoconf_ modules: true password_ mismatch: invalid_ config: true upgrade_ slapadd_ failure: purge_database: false
slapd/
* shared/
slapd/
slapd/backend: BDB
* slapd/allow_
slapd/
slapd/
slapd/
slapd/
slapd/
* slapd/domain: home.better.se
slapd/
slapd/
slapd/
slapd/
slapd/admin: