[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#679936: marked as done (smbldap-tools: smbldap-useradd does not work with -M)



Your message dated Mon, 1 Jun 2020 00:15:39 -0500
with message-id <20200601051539.gqebwdd7gk4wunxj@mercurius.olympus>
and subject line smbldap-tools: smbldap-useradd does not work with -M
has caused the Debian Bug report #679936,
regarding smbldap-tools: smbldap-useradd does not work with -M
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
679936: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679936
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
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 ---
--- Begin Message ---
Version: 0.9.9-1

This bug is already fixed on upstream version 0.9.8, and a higher
version containing the fix was already uploaded to the Debian archives.

--- End Message ---

Reply to: