The Samba-Bugzilla – Bug 3081
mass-adding users with pdbedit or smbpasswd leads to long delay
Last modified: 2006-02-10 08:42:06 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.
I think I mentioned on the mailing list to try to
reproduce this againt tdbsam. IIRC you are using an LDAP backend.
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.
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.