Bug 3081 - mass-adding users with pdbedit or smbpasswd leads to long delay
mass-adding users with pdbedit or smbpasswd leads to long delay
Product: Samba 3.0
Classification: Unclassified
Component: pdb_sql
All Linux
: P3 normal
: none
Assigned To: pdb_sql maintainers mail alias
Samba QA Contact
Depends on:
  Show dependency treegraph
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 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 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.