Bug 3081 - mass-adding users with pdbedit or smbpasswd leads to long delay
Summary: mass-adding users with pdbedit or smbpasswd leads to long delay
Alias: None
Product: Samba 3.0
Classification: Unclassified
Component: pdb_sql (show other bugs)
Version: 3.0.20
Hardware: All Linux
: P3 normal
Target Milestone: none
Assignee: pdb_sql maintainers mail alias
QA Contact: Samba QA Contact
Depends on:
Reported: 2005-09-09 09:07 UTC by Florian Effenberger
Modified: 2006-02-10 08:42 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Florian Effenberger 2005-09-09 09:07:26 UTC
Mass-adding users with pdbedit or smbpasswd leads to long delay. The system is
fast enough, however, it takes one second per user.

Might there be any (hidden) delay in these tools?

The command to add the users is:

  ( echo $2 ; echo $2 ) | /usr/local/samba/bin/smbpasswd -a $1 -s
  /usr/local/samba/bin/pdbedit -r -u $1 -f "$3 $4"

whereas $1 is the logon name, $3 and $4 are the users first and last name.
Comment 1 Gerald (Jerry) Carter (dead mail address) 2005-09-27 12:22:16 UTC
I think I mentioned on the mailing list to try to 
reproduce this againt tdbsam.  IIRC you are using an LDAP backend.
Comment 2 Florian Effenberger 2005-09-27 21:18:26 UTC
I am using a pdb_mysql backend. Currently, I cannot try it on the machine (it is
a production system), but I'll try it as soon as possible on a test system.
Comment 3 Gerald (Jerry) Carter (dead mail address) 2006-02-10 08:42:06 UTC
See bug 3375.  If someone wants to maintain these modules outside
the Samba source tree, that is fine.  But the source has been removed
from the upcoming 3.0.22 release.