[Samba 4] Difference between userman.c and libnet_user.c

Rafal Szczesniak mimir at samba.org
Sun Sep 2 17:21:04 GMT 2007


Matthias,

On Sat, Sep 01, 2007 at 01:36:16PM +0200, Matthias Dieter Walln?fer wrote:
> I didn't find out, because in SAMBA 4 exist two modules that seem to handle 
> nearly the same tasks. What are the differences between them?

userman.c implements lower level functions designed to operate on already
opened and authenticateed dcerpc pipe. libnet_user.c extends it to the
"official" api functions which make sure everything is set up correctly
before actually doing the work (like looking for remote server, opening
domain with certain access level). They also do a little clean up and
copy the results to the structure and memory context you provide.

If you look closer you'll find that, for instance, at some stage
libnet_CreateUser calls libnet_rpc_useradd_send.

Originally, userinfo.c and userman.c contained first implementation of
composite async functions making rpc calls.


cheers,
-- 
Rafal Szczesniak
Samba Team member  http://www.samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20070902/e8e7ece1/attachment.bin


More information about the samba-technical mailing list