Getting pdc name
Gerald (Jerry) Carter
jerry at samba.org
Thu Dec 11 18:41:35 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Richard Renard 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().
cheers, jerry
~ ----------------------------------------------------------------------
~ Hewlett-Packard ------------------------- http://www.hp.com
~ SAMBA Team ---------------------- http://www.samba.org
~ GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc
~ "If we're adding to the noise, turn off this song" --Switchfoot (2003)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE/2LpfIR7qMdg1EfYRAthSAJ9TQ6P40mk/ikoQpMPmlJYGdV55jQCgjqZA
e1Lp8q2BVMDc55GlsvFqMWc=
=Lu6l
-----END PGP SIGNATURE-----
More information about the samba-technical
mailing list