Rework our SAMR test and SAMR server.
authorAndrew Bartlett <abartlet@samba.org>
Fri, 14 Mar 2008 01:26:03 +0000 (12:26 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 14 Mar 2008 01:26:03 +0000 (12:26 +1100)
commit353bb79f568f20c8469cb9458f7b14c24612ad23
treeb134d30c1f6fbb7e2e1f798900494b3c2ebf0d61
parente7afb31df1f12a3cd39ed9b95d76edc6ff0d6a70
Rework our SAMR test and SAMR server.

Now that we don't create users/domain groups/aliases in the builtin
domain, we hit some bugs in the server-side implementation of the
enumeration functions.

In essence, it turns out to be: don't treat 0 as a special case.

Also, fix up the PDC name to always be returned.  I'm sure nothing
actually uses it, particularly for BUILTIN...

Andrew Bartlett
source/rpc_server/samr/dcesrv_samr.c
source/rpc_server/samr/dcesrv_samr.h
source/torture/rpc/samr.c