Architcecture for winbindd client character conversion.

Jeremy Allison jra at samba.org
Tue Aug 28 01:30:14 GMT 2007


Hi all,

	Just wanted to give you a heads up that I'm working
on an architecture for winbindd client character set conversion
for strings crossing the client <--> winbindd boundary.

Each client will do a WINBINDD_SETLOCALE call after
initial connection to the winbindd socket. This will
be associated with the internal state of that fd, and
a new type of conversion, CH_WB_CLIENT, will be used
so we can re-use all our existing charset conversion
code. The pointers for this conversion will be swapped
in by an internal set_current_wb_client_charset() call
made from the parent winbindd once the data is read
from the client and before dispatch. Each dispatch
function will then call a winbindd_client_str_pull()
winbindd_client_str_push() function when reading/returning
the data structure to the client.

These functions will be reference counted and cached
so we're not constantly re-opening the iconv handles.

Thoughts ? Comments ?

Jeremy.


More information about the samba-technical mailing list