libwbclient - wbcLogoffUser() & wbcLookupDomainController

Gerald (Jerry) Carter jerry at samba.org
Mon May 5 20:21:21 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Metze,

Here's what I'm proposing for the two calls discussed on IRC

1. wbcErr wbcLogoffUser(const char *username,
                         const char *ccfilename);

Some explanations.  There is no current LogonUser pipe call.
This is implicit in the Authenticate call.  So I've not added
a wbcLogonUser().  I debated dropping the cred cache pathood
and having the library look up the default. This might still
be a good idea to help relieve the burden on the application
developer.  But it can bet set to NULL to it's not that bad.


2.  wbcErr wbcLookupDomainController(const char *domain,
                                struct wbcDomainControllerInfo *dc_info);


Here's we currently only return the char* name of the DC
but I expect that other information would be useful.
Looking at the this from netlogon.h, I think something similar
would be a good idea as an info structure.  At least the
name, address, and site information.

struct netr_DsRGetDCNameInfo {
        const char *dc_unc;/* [unique,charset(UTF16)] */
        const char *dc_address;/* [unique,charset(UTF16)] */
        enum netr_DsRGetDCNameInfo_AddressType dc_address_type;
        struct GUID domain_guid;
        const char *domain_name;/* [unique,charset(UTF16)] */
        const char *forest_name;/* [unique,charset(UTF16)] */
        uint32_t dc_flags;
        const char *dc_site_name;/* [unique,charset(UTF16)] */
        const char *client_site_name;/* [unique,charset(UTF16)] */
}/* [public] */;

Comments?





cheers, jerry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIH2xBIR7qMdg1EfYRAjnbAKDDSi2H4QNPMoV7ZySDLsBGCrhVXQCfa6ac
gnTbPxoJQQ0vTOJqxJ3ZZoo=
=ZplL
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list