--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: smbldap-tools: smbldap-useradd does not work with -M
- From: Danya Alexeyevsky <dendik@kodomo.fbb.msu.ru>
- Date: Mon, 02 Jul 2012 19:16:10 +0400
- Message-id: <20120702151610.20241.19078.reportbug@kodomo.fbb.msu.ru>
Package: smbldap-tools
Version: 0.9.7-1
Severity: normal
Tags: patch
smbldap-adduser -M some@email some-user produces an error stating that
it can not add the value for 'mail' attribute to LDAP record, since the
value already exists.
The error is produced from duplication of code block:
if (@adds) {
my $modify =
$ldap_master->modify( "uid=$userName,$config{usersdn}", add => {@adds} );
$modify->code && die "failed to add entry: ", $modify->error;
}
on lines 624 and 510.
To fix this one needs to either remove one of these blocks, or add
@adds = ();
on line 512.
Thanks!
PS. Sorry for not giving the exact error messages / properly formatted
patches, I already have no unfixed versions on my hands and it seems not
too big deal to fetch another copy to make a better description of the
patch.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.1.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=C, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages smbldap-tools depends on:
ii libcrypt-smbhash-perl 0.12-3 generate LM/NT hash of a password
ii libio-socket-ssl-perl 1.31-1 Perl module implementing object or
ii libnet-ldap-perl 1:0.39-1 client interface to LDAP servers
ii libunicode-maputf8-perl 1.11-2 Perl module for conversing between
ii perl 5.14.2-9 Larry Wall's Practical Extraction
smbldap-tools recommends no packages.
smbldap-tools suggests no packages.
-- no debconf information
--- End Message ---