search for: auth_fn

Displaying 18 results from an estimated 18 matches for "auth_fn".

2020 May 21
1
[v2v PATCH] libvirt: make use of libvirt's default auth handler (RHBZ#1838425)
...virt_utils.ml b/v2v/libvirt_utils.ml index 7df17b29..4d0b8639 100644 --- a/v2v/libvirt_utils.ml +++ b/v2v/libvirt_utils.ml @@ -33,10 +33,14 @@ let auth_for_password_file ?password_file () = ) creds in - { - Libvirt.Connect.credtype = [ Libvirt.Connect.CredentialPassphrase ]; - cb = auth_fn; - } + let base_auth = Libvirt.Connect.get_auth_default () in + + if password_file = None then + base_auth + else + { base_auth with + cb = auth_fn; + } let get_domain conn name = let dom = -- 2.25.4
2020 Aug 17
1
[v2v PATCH] libvirt: read password file outside libvirt auth callback
...b/v2v/libvirt_utils.ml index 4d0b8639..1a24b049 100644 --- a/v2v/libvirt_utils.ml +++ b/v2v/libvirt_utils.ml @@ -24,8 +24,8 @@ open Common_gettext.Gettext module. *) let auth_for_password_file ?password_file () = + let password = Option.map read_first_line_from_file password_file in let auth_fn creds = - let password = Option.map read_first_line_from_file password_file in List.map ( function | { Libvirt.Connect.typ = Libvirt.Connect.CredentialPassphrase } -> password -- 2.26.2
2002 Nov 03
0
libsmbclient bug ?
...debugging enabled) is: -------------------- Starting program: /.tmp/tst Program received signal SIGSEGV, Segmentation fault. 0x00000000 in ?? () (gdb) -------------------- The source file that causes this is: ---- tst.c ------------ #include <stdio.h> #include <libsmbclient.h> void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen, char *username, int unmaxlen, char *password, int pwmaxlen) { password[0] = 0; } int main() { struct stat stat_buf; if (0 > smbc_init(auth_fn, 0)) { perror(&...
2002 Nov 28
0
problem with smbc_init in libsmbclient
...the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <stdio.h> #include <errno.h> #include <string.h> #include <unistd.h> #include <libsmbclient.h> void auth_fn(const char *server, const char *share, char *workgroup, int wgmaxlen, char *username, int unmaxlen, char *password, int pwmaxlen) { char temp[128]; fprintf(stdout, "Need password for //%s/%s\n", server, share); fprintf(stdout, "Enter workgroup: [%s] ", workgr...
2008 Apr 25
3
[ANNOUNCE] Samba 3.2.0pre3
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 Apr 25
3
[ANNOUNCE] Samba 3.2.0pre3
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 Jun 10
4
[ANNOUNCE] Samba 3.2.0rc2
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 Jun 10
4
[ANNOUNCE] Samba 3.2.0rc2
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 May 23
4
[ANNOUNCE] Samba 3.2.0rc1
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 May 23
4
[ANNOUNCE] Samba 3.2.0rc1
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 Jul 01
13
[ANNOUNCE] Samba 3.2.0 Available for Download
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2008 Jul 01
13
[ANNOUNCE] Samba 3.2.0 Available for Download
...applicable to both files and directories Example changes that may be required to eliminate "deprecated" warnings: /* Set the debug level */ context->debug = 99; changes to: smbc_setDebug(context, 99); /* Specify the authentication callback function */ context->callbacks.auth_fn = auth_smbc_get_data; changes to: smbc_setFunctionAuthData(context, auth_smbc_get_data); /* Specify the new-style authentication callback with context parameter */ smbc_option_set("auth_function", auth_smbc_get_data_with_ctx); changes to: smbc_setFunctionAuthDataWithContext(conte...
2019 Apr 08
0
[PATCH v4 3/7] v2v: switch to ocaml-libvirt
...module. *) -external dumpxml : ?password:string -> ?conn:string -> string -> string = "v2v_dumpxml" -let dumpxml ?password_file = - let password = Option.map read_first_line_from_file password_file in - dumpxml ?password +let auth_for_password_file ?password_file () = + let auth_fn creds = + let password = Option.map read_first_line_from_file password_file in + List.map ( + function + | { Libvirt.Connect.typ = Libvirt.Connect.CredentialPassphrase } -> password + | _ -> None + ) creds + in -external pool_dumpxml : ?conn:string -> string -&gt...
2018 Aug 30
8
[PATCH 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2018 Nov 27
8
[PATCH v2 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 Jan 30
8
[PATCH v3 0/7] RFC: switch v2v to ocaml-libvirt
Hi, this is a mostly done attempt to switch to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not
2019 May 20
8
[PATCH v5 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all
2019 Apr 08
12
[PATCH 43 0/7] v2v: switch to ocaml-libvirt
Hi, this series switches virt-2v to ocaml-libvirt, embedding the latest version of it from git. This way, it is possible to improve the way v2v connects to libvirt for both input, and output modules, and interacts with libvirt (e.g. no more virsh calls needed in virt-v2v). As side effect, virt-v2v now requires libvirt, as keeping it optional would create too much burden. I could not test all