]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
pygensec: Fix method documentation
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 27 Apr 2021 23:07:22 +0000 (11:07 +1200)
committerJeremy Allison <jra@samba.org>
Wed, 19 May 2021 01:32:34 +0000 (01:32 +0000)
This changes the docstrings to use the correct method names.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
source4/auth/gensec/pygensec.c

index 75ce478d4c9d8ffb23d3f5183029b8da923e43d2..568fc7c8db75863a8f7fa1123e4947f26a5eea32 100644 (file)
@@ -654,13 +654,13 @@ static PyMethodDef py_gensec_security_methods[] = {
                METH_VARARGS|METH_KEYWORDS|METH_CLASS,
                "S.start_server(auth_ctx, settings) -> gensec" },
        { "set_credentials", (PyCFunction)py_gensec_set_credentials, METH_VARARGS, 
-               "S.start_client(credentials)" },
+               "S.set_credentials(credentials)" },
        { "set_target_hostname", (PyCFunction)py_gensec_set_target_hostname, METH_VARARGS, 
-               "S.start_target_hostname(target_hostname) \n This sets the Kerberos target hostname to obtain a ticket for." },
+               "S.set_target_hostname(target_hostname) \n This sets the Kerberos target hostname to obtain a ticket for." },
        { "set_target_service", (PyCFunction)py_gensec_set_target_service, METH_VARARGS, 
-               "S.start_target_service(target_service) \n This sets the Kerberos target service to obtain a ticket for.  The default value is 'host'" },
+               "S.set_target_service(target_service) \n This sets the Kerberos target service to obtain a ticket for.  The default value is 'host'" },
        { "set_target_service_description", (PyCFunction)py_gensec_set_target_service_description, METH_VARARGS,
-               "S.start_target_service_description(target_service_description) \n This description is set server-side and used in authentication and authorization logs.  The default value is that provided to set_target_service() or None."},
+               "S.set_target_service_description(target_service_description) \n This description is set server-side and used in authentication and authorization logs.  The default value is that provided to set_target_service() or None."},
        { "session_info", (PyCFunction)py_gensec_session_info, METH_NOARGS,
                "S.session_info() -> info" },
        { "session_key", (PyCFunction)py_gensec_session_key, METH_NOARGS,