Getting pdc name

Richard Renard rrenard at idealx.com
Thu Dec 11 22:19:13 GMT 2003


On Thu, Dec 11, 2003 at 12:41:35PM -0600, Gerald (Jerry) Carter wrote:
> | when looking around in namequery[_dc].c i see 2 functions
> | which can be useful
> | - get_dc_list
> | - nam_status_find
> |
> | they are used in rpc_dc_name, but there are 2 problems with
> | this function
> | - i cant call it whithin nmbd
> | - i cant force it to "use_pdc_only"
> 
> You already have the IP?  Then just call name_status_find() on it.
> 
> If not, then write a simple function taht calls get_pdc_ip()
> and then call name_status_find().
>
thanks for your fast reply,

i wrote the function and it works.

--
Richard Renard
rrenard at idealx.com
 


More information about the samba-technical mailing list