[Samba] Enhancement of wbinfo in samba2.2.6pre2
Nir Soffer
nirs at exanet.com
Sun Sep 1 02:05:01 GMT 2002
>
> Patrik Gustavsson PS Sweden Senior Technical Consultant wrote:
> >
> > Hi,
> >
> > Most of the samba-commands takes a option for smb.conf file
> > exept for wbinfo.
> > It should be nice to have that functionallity in wbinfo also.
>
> Actually, we should work to remove the need for wbinfo to use smb.conf
> at all.
>
> Why do you need this?
I don't know why the first poster needed it, but I know I need such an
option (and writing a patch for it is on my todo list, really, it is!),
because my smb.conf is in nonstandard locations.
As for removing smb.conf dependance altogether - I see the following
snippets in the code:
--
if (winbindd_request(WINBINDD_INFO, NULL, &response) !=
NSS_STATUS_SUCCESS) {
printf("could not obtain winbind separator!\n");
/* HACK: (this module should not call lp_ funtions) */
return *lp_winbind_separator();
}
--
if (!sep) {
printf("winbind separator was NULL!\n");
/* HACK: (this module should not call lp_ funtions) */
sep = *lp_winbind_separator();
}
--
if (winbindd_request(WINBINDD_DOMAIN_NAME, NULL, &response) !=
NSS_STATUS_SUCCESS) {
printf("could not obtain winbind domain name!\n");
/* HACK: (this module should not call lp_ funtions) */
return lp_workgroup();
}
--
codepage_initialise(lp_client_code_page());
--
So I understand wbinfo wants the workgroup and the seperator, and the
client code page. Where can I get it besides smb.conf, as a commandline
paramater?
Nir.
--
Nir Soffer -=- Software Engineer, Exanet Inc. -=-
"Father, why are all the children weeping? / They are merely crying son
O, are they merely crying, father? / Yes, true weeping is yet to come"
-- Nick Cave and the Bad Seeds, The Weeping Song
More information about the samba
mailing list