pdb dependencies in RPC_PARSE objects

Simo Sorce simo.sorce at polimi.it
Wed Dec 13 09:51:07 GMT 2000


On Wed, 13 Dec 2000, Tim Potter wrote:

> Is it possible to break the dependency between PASSDB_OBJ and
> RPC_PARSE?  The chain goes like this: RPC_PARSE -> parse_samr.c
> -> pdb_*() -> PASSDB_OBJ.
>
> It seems a bit unecessary to have to link in the passdb objects
> to use the rpc parsing routines when all I want to do is marshall
> and unmarshall some lsa functions.
>
> I got the impression that the init_xyz_info123() functions in
> parse_xyz.c would in general take data passed to the function and
> pack it into the XYZ_INFO_123 structure, rather than actually
> generate the data inside the function.
>
> Anyone up for an argument?  (-:

parse_net.c
It seem that pdb_* functions are called only within init_net_user_info3()
function and that this function is called only by api_net_sam_logon() in
srv_netlog.c (rpc_server)

parse_samr.c
It seem that pdb_* functions are called only within init_sam_user_info21()
function and that this function is called only by get_user_info_21() in
srv_samr.c (rpc_server)

no other parse_*.c file calls pdb_* functions and no other functions in
parse_*.c call the init_xyz_info_X

moving the away? (in rpc_server?)

just my 2c,
Simo.

-- 
Simo Sorce - Integrazione Sistemi Unix/Windows - Politecnico di Milano
E-mail: simo.sorce at polimi.it
Tel.int: 02 2399 2425 - Fax.int. 02 2399 2451
-----------------------------------------------------------------
Be happy, use Linux!





More information about the samba-technical mailing list