|
libsmbclient
|
Functions | |
| SMBCCTX * | smbc_new_context (void) |
| int | smbc_free_context (SMBCCTX *context, int shutdown_ctx) |
| void | smbc_option_set (SMBCCTX *context, char *option_name,...) |
| SMBCCTX * | smbc_init_context (SMBCCTX *context) |
| int | smbc_init (smbc_get_auth_data_fn fn, int debug) |
| SMBCCTX * | smbc_set_context (SMBCCTX *new_context) |
| void | smbc_set_credentials (const char *workgroup, const char *user, const char *password, smbc_bool use_kerberos, const char *signing_state) |
Functions that don't fit in to other categories
| int smbc_free_context | ( | SMBCCTX * | context, |
| int | shutdown_ctx | ||
| ) |
Delete a SBMCCTX (a context) acquired from smbc_new_context().
The context will be deleted if possible.
| context | A pointer to a SMBCCTX obtained from smbc_new_context() |
| shutdown_ctx | If 1, all connections and files will be closed even if they are busy. |
| int smbc_init | ( | smbc_get_auth_data_fn | fn, |
| int | debug | ||
| ) |
Initialize the samba client library.
Must be called before using any of the smbclient API function
| fn | The function that will be called to obtaion authentication credentials. |
| debug | Allows caller to set the debug level. Can be changed in smb.conf file. Allows caller to set debugging if no smb.conf. |
Initialize a SBMCCTX (a context).
Must be called before using any SMBCCTX API function
| context | A pointer to a SMBCCTX obtained from smbc_new_context() |
| SMBCCTX* smbc_new_context | ( | void | ) |
Create a new SBMCCTX (a context).
Must be called before the context is passed to smbc_context_init()
| void smbc_option_set | ( | SMBCCTX * | context, |
| char * | option_name, | ||
| ... | |||
| ) |
Set or retrieve the compatibility library's context pointer
| context | New context to use, or NULL. If a new context is provided, it must have allocated with smbc_new_context() and initialized with smbc_init_context(), followed, optionally, by some manual changes to some of the non-internal fields. |
| void smbc_set_credentials | ( | const char * | workgroup, |
| const char * | user, | ||
| const char * | password, | ||
| smbc_bool | use_kerberos, | ||
| const char * | signing_state | ||
| ) |
Set the users credentials globally so they can be used for DFS referrals. Probably best to use this function in the smbc_get_auth_data_fn callback.
| workgroup | Workgroup of the user. |
| user | Username of user. |
| password | Password of user. |
| use_kerberos | Whether to use Kerberos |
| signing_state | One of these strings (all equivalents on same line): "off", "no", "false" "on", "yes", "true", "auto" "force", "required", "forced" |
1.7.4