Samba4: 2.9 seconds to set a password???
Andrew Bartlett
abartlet at samba.org
Tue Dec 2 04:42:11 GMT 2008
On Mon, 2008-12-01 at 23:34 -0500, simo wrote:
> On Tue, 2008-12-02 at 14:18 +1100, Andrew Bartlett wrote:
> > On Mon, 2008-11-24 at 09:08 +0100, Stefan (metze) Metzmacher wrote:
> > > Volker Lendecke schrieb:
> > > > Hi!
> > > >
> > > > Just did a setpassword on my old, poor 1.6GHz dual-core
> > > > laptop:
> > > >
> > > > vlendec at delphin:~/git/s4-work/source4> time setup/setpassword vl --newpassword=foo
> > > >
> > > > real 0m2.941s
> > > > user 0m2.552s
> > > > sys 0m0.020s
> > >
> > > I think loading the schema is what makes it so slow.
> >
> > Correct. I hope to look into this, and tridge was similarly interested
> > in chasing this down. Perhaps we might store a linearised copy of the
> > in-memory schema as a cache.
>
> Wouldn't it be simpler to require the server to run and use samr/ldap
> operations ?
No, we have to look into the startup cost issue regardless, it's just
inefficient at present.
The script could be modified to also work against remote LDAP - but
other tools (net) do this operations over SAMR already, so there is
little need.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Red Hat Inc. http://redhat.com
More information about the samba-technical
mailing list