diff options
-rw-r--r-- | source3/python/py_lsa.c | 40 | ||||
-rw-r--r-- | source3/python/py_spoolss.c | 163 | ||||
-rw-r--r-- | source3/python/py_srvsvc.c | 40 | ||||
-rw-r--r-- | source3/python/py_tdbpack.c | 178 | ||||
-rw-r--r-- | source3/python/py_winbind.c | 190 |
5 files changed, 304 insertions, 307 deletions
diff --git a/source3/python/py_lsa.c b/source3/python/py_lsa.c index 22db29665a..c063dcba81 100644 --- a/source3/python/py_lsa.c +++ b/source3/python/py_lsa.c @@ -383,32 +383,32 @@ static PyMethodDef lsa_methods[] = { { "setup_logging", (PyCFunction)py_setup_logging, METH_VARARGS | METH_KEYWORDS, - "Set up debug logging. - -Initialises Samba's debug logging system. One argument is expected which -is a boolean specifying whether debugging is interactive and sent to stdout -or logged to a file. - -Example: - ->>> spoolss.setup_logging(interactive = 1)" }, + "Set up debug logging.\n" +"\n" +"Initialises Samba's debug logging system. One argument is expected which\n" +"is a boolean specifying whether debugging is interactive and sent to stdout\n" +"or logged to a file.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.setup_logging(interactive = 1)" }, { "get_debuglevel", (PyCFunction)get_debuglevel, METH_VARARGS, - "Set the current debug level. - -Example: - ->>> spoolss.get_debuglevel() -0" }, + "Set the current debug level.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.get_debuglevel()\n" +"0" }, { "set_debuglevel", (PyCFunction)set_debuglevel, METH_VARARGS, - "Get the current debug level. - -Example: - ->>> spoolss.set_debuglevel(10)" }, + "Get the current debug level.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.set_debuglevel(10)" }, { NULL } }; diff --git a/source3/python/py_spoolss.c b/source3/python/py_spoolss.c index 7b0a102b31..b8df5cbf11 100644 --- a/source3/python/py_spoolss.c +++ b/source3/python/py_spoolss.c @@ -33,22 +33,22 @@ static PyMethodDef spoolss_methods[] = { /* Open/close printer handles */ { "openprinter", (PyCFunction)spoolss_openprinter, METH_VARARGS | METH_KEYWORDS, - "Open a printer by name in UNC format. - -Optionally a dictionary of (domain, username, password) may be given in -which case they are used when opening the RPC pipe. An access mask may -also be given which defaults to MAXIMUM_ALLOWED_ACCESS. - -Example: - ->>> hnd = spoolss.openprinter(\"\\\\\\\\NPSD-PDC2\\\\meanie\")"}, + "Open a printer by name in UNC format.\n" +"\n" +"Optionally a dictionary of (domain, username, password) may be given in\n" +"which case they are used when opening the RPC pipe. An access mask may\n" +"also be given which defaults to MAXIMUM_ALLOWED_ACCESS.\n" +"\n" +"Example:\n" +"\n" +">>> hnd = spoolss.openprinter(\"\\\\\\\\NPSD-PDC2\\\\meanie\")"}, { "closeprinter", spoolss_closeprinter, METH_VARARGS, - "Close a printer handle opened with openprinter or addprinter. - -Example: - ->>> spoolss.closeprinter(hnd)"}, + "Close a printer handle opened with openprinter or addprinter.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.closeprinter(hnd)"}, { "addprinterex", (PyCFunction)spoolss_addprinterex, METH_VARARGS, "addprinterex()"}, @@ -57,76 +57,77 @@ Example: { "enumprinters", (PyCFunction)spoolss_enumprinters, METH_VARARGS | METH_KEYWORDS, - "Enumerate printers on a print server. - -Return a list of printers on a print server. The credentials, info level -and flags may be specified as keyword arguments. - -Example: - ->>> print spoolss.enumprinters(\"\\\\\\\\npsd-pdc2\") -[{'comment': 'i am a comment', 'printer_name': 'meanie', 'flags': 8388608, - 'description': 'meanie,Generic / Text Only,i am a location'}, - {'comment': '', 'printer_name': 'fileprint', 'flags': 8388608, - 'description': 'fileprint,Generic / Text Only,'}]"}, + "Enumerate printers on a print server.\n" +"\n" +"Return a list of printers on a print server. The credentials, info level\n" +"and flags may be specified as keyword arguments.\n" +"\n" +"Example:\n" +"\n" +">>> print spoolss.enumprinters(\"\\\\\\\\npsd-pdc2\")\n" +"[{'comment': 'i am a comment', 'printer_name': 'meanie', 'flags': 8388608, \n" +" 'description': 'meanie,Generic / Text Only,i am a location'}, \n" +" {'comment': '', 'printer_name': 'fileprint', 'flags': 8388608, \n" +" 'description': 'fileprint,Generic / Text Only,'}]"}, { "enumports", (PyCFunction)spoolss_enumports, METH_VARARGS | METH_KEYWORDS, - "Enumerate ports on a print server. - -Return a list of ports on a print server. - -Example: - ->>> print spoolss.enumports(\"\\\\\\\\npsd-pdc2\") -[{'name': 'LPT1:'}, {'name': 'LPT2:'}, {'name': 'COM1:'}, {'name': 'COM2:'}, - {'name': 'FILE:'}, {'name': '\\\\nautilus1\\zpekt3r'}]"}, + "Enumerate ports on a print server.\n" +"\n" +"Return a list of ports on a print server.\n" +"\n" +"Example:\n" +"\n" +">>> print spoolss.enumports(\"\\\\\\\\npsd-pdc2\")\n" +"[{'name': 'LPT1:'}, {'name': 'LPT2:'}, {'name': 'COM1:'}, \n" +"{'name': 'COM2:'}, {'name': 'FILE:'}, {'name': '\\\\nautilus1\\zpekt3r'}]"}, { "enumprinterdrivers", (PyCFunction)spoolss_enumprinterdrivers, METH_VARARGS | METH_KEYWORDS, - "Enumerate printer drivers on a print server. + "Enumerate printer drivers on a print server.\n" +"\n" +"Return a list of printer drivers."}, -Return a list of printer drivers."}, /* Miscellaneous other commands */ { "getprinterdriverdir", (PyCFunction)spoolss_getprinterdriverdir, METH_VARARGS | METH_KEYWORDS, - "Return printer driver directory. - -Return the printer driver directory for a given architecture. The -architecture defaults to \"Windows NT x86\"."}, + "Return printer driver directory.\n" +"\n" +"Return the printer driver directory for a given architecture. The\n" +"architecture defaults to \"Windows NT x86\"."}, /* Other stuff - this should really go into a samba config module but for the moment let's leave it here. */ { "setup_logging", (PyCFunction)py_setup_logging, METH_VARARGS | METH_KEYWORDS, - "Set up debug logging. - -Initialises Samba's debug logging system. One argument is expected which -is a boolean specifying whether debugging is interactive and sent to stdout -or logged to a file. - -Example: - ->>> spoolss.setup_logging(interactive = 1)" }, + "Set up debug logging.\n" +"\n" +"Initialises Samba's debug logging system. One argument is expected which\n" +"is a boolean specifying whether debugging is interactive and sent to stdout\n" +"or logged to a file.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.setup_logging(interactive = 1)" }, { "get_debuglevel", (PyCFunction)get_debuglevel, METH_VARARGS, - "Set the current debug level. - -Example: - ->>> spoolss.get_debuglevel() -0" }, + "Set the current debug level.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.get_debuglevel()\n" +"0" }, { "set_debuglevel", (PyCFunction)set_debuglevel, METH_VARARGS, - "Get the current debug level. - -Example: - ->>> spoolss.set_debuglevel(10)" }, + "Get the current debug level.\n" +"\n" +"Example:\n" +"\n" +">>> spoolss.set_debuglevel(10)" }, /* Printer driver routines */ @@ -157,16 +158,16 @@ static PyMethodDef spoolss_hnd_methods[] = { { "getprinter", (PyCFunction)spoolss_hnd_getprinter, METH_VARARGS | METH_KEYWORDS, - "Get printer information. - -Return a dictionary of print information. The info level defaults to 1. - -Example: - ->>> hnd.getprinter() -{'comment': 'i am a comment', 'printer_name': '\\\\NPSD-PDC2\\meanie', - 'description': '\\\\NPSD-PDC2\\meanie,Generic / Text Only,i am a location', - 'flags': 8388608}"}, + "Get printer information.\n" +"\n" +"Return a dictionary of print information. The info level defaults to 1.\n" +"\n" +"Example:\n" +"\n" +">>> hnd.getprinter()\n" +"{'comment': 'i am a comment', 'printer_name': '\\\\NPSD-PDC2\\meanie',\n" +" 'description': '\\\\NPSD-PDC2\\meanie,Generic / Text Only,i am a location',\n" +" 'flags': 8388608}"}, { "setprinter", (PyCFunction)spoolss_hnd_setprinter, METH_VARARGS | METH_KEYWORDS, @@ -176,24 +177,24 @@ Example: { "getprinterdriver", (PyCFunction)spoolss_hnd_getprinterdriver, METH_VARARGS | METH_KEYWORDS, - "Return printer driver information. - -Return a dictionary of printer driver information for the printer driver -bound to this printer."}, + "Return printer driver information.\n" +"\n" +"Return a dictionary of printer driver information for the printer driver\n" +"bound to this printer."}, /* Forms */ { "enumforms", (PyCFunction)spoolss_hnd_enumforms, METH_VARARGS | METH_KEYWORDS, - "Enumerate supported forms. - -Return a list of forms supported by this printer or print server."}, + "Enumerate supported forms.\n" +"\n" +"Return a list of forms supported by this printer or print server."}, { "setform", (PyCFunction)spoolss_hnd_setform, METH_VARARGS | METH_KEYWORDS, - "Set form data. - -Set the form given by the dictionary argument."}, + "Set form data.\n" +"\n" +"Set the form given by the dictionary argument."}, { "addform", (PyCFunction)spoolss_hnd_addform, METH_VARARGS | METH_KEYWORDS, diff --git a/source3/python/py_srvsvc.c b/source3/python/py_srvsvc.c index 8ec2430285..3e5a42be23 100644 --- a/source3/python/py_srvsvc.c +++ b/source3/python/py_srvsvc.c @@ -158,32 +158,32 @@ static PyMethodDef srvsvc_methods[] = { { "setup_logging", (PyCFunction)py_setup_logging, METH_VARARGS | METH_KEYWORDS, - "Set up debug logging. - -Initialises Samba's debug logging system. One argument is expected which -is a boolean specifying whether debugging is interactive and sent to stdout -or logged to a file. - -Example: - ->>> srvsvc.setup_logging(interactive = 1)" }, + "Set up debug logging.\n" +"\n" +"Initialises Samba's debug logging system. One argument is expected which\n" +"is a boolean specifying whether debugging is interactive and sent to stdout\n" +"or logged to a file.\n" +"\n" +"Example:\n" +"\n" +">>> srvsvc.setup_logging(interactive = 1)" }, { "get_debuglevel", (PyCFunction)get_debuglevel, METH_VARARGS, - "Set the current debug level. - -Example: - ->>> srvsvc.get_debuglevel() -0" }, + "Set the current debug level.\n" +"\n" +"Example:\n" +"\n" +">>> srvsvc.get_debuglevel()\n" +"0" }, { "set_debuglevel", (PyCFunction)set_debuglevel, METH_VARARGS, - "Get the current debug level. - -Example: - ->>> srvsvc.set_debuglevel(10)" }, + "Get the current debug level.\n" +"\n" +"Example:\n" +"\n" +">>> srvsvc.set_debuglevel(10)" }, { NULL } }; diff --git a/source3/python/py_tdbpack.c b/source3/python/py_tdbpack.c index f0718b717e..4fa97af8a3 100644 --- a/source3/python/py_tdbpack.c +++ b/source3/python/py_tdbpack.c @@ -66,102 +66,98 @@ static PyObject *pytdbpack_bad_type(char ch, PyObject *val_obj); static const char * pytdbpack_docstring = -"Convert between Python values and Samba binary encodings. - -This module is conceptually similar to the standard 'struct' module, but it -uses both a different binary format and a different description string. - -Samba's encoding is based on that used inside DCE-RPC and SMB: a -little-endian, unpadded, non-self-describing binary format. It is intended -that these functions be as similar as possible to the routines in Samba's -tdb/tdbutil module, with appropriate adjustments for Python datatypes. - -Python strings are used to specify the format of data to be packed or -unpacked. - -String encodings are implied by the database format: they may be either DOS -codepage (currently hardcoded to 850), or Unix codepage (currently hardcoded -to be the same as the default Python encoding). - -tdbpack format strings: - - 'f': NUL-terminated string in codepage iso8859-1 - - 'P': same as 'f' - - 'F': NUL-terminated string in iso-8859-1 - - 'd': 4 byte little-endian unsigned number - - 'w': 2 byte little-endian unsigned number - - 'P': \"Pointer\" value -- in the subset of DCERPC used by Samba, this is - really just an \"exists\" or \"does not exist\" flag. The boolean - value of the Python object is used. - - 'B': 4-byte LE length, followed by that many bytes of binary data. - Corresponds to a Python integer giving the length, followed by a byte - string of the appropriate length. - - '$': Special flag indicating that the preceding format code should be - repeated while data remains. This is only supported for unpacking. - - Every code corresponds to a single Python object, except 'B' which - corresponds to two values (length and contents), and '$', which produces - however many make sense. -"; - +"Convert between Python values and Samba binary encodings.\n" +"\n" +"This module is conceptually similar to the standard 'struct' module, but it\n" +"uses both a different binary format and a different description string.\n" +"\n" +"Samba's encoding is based on that used inside DCE-RPC and SMB: a\n" +"little-endian, unpadded, non-self-describing binary format. It is intended\n" +"that these functions be as similar as possible to the routines in Samba's\n" +"tdb/tdbutil module, with appropriate adjustments for Python datatypes.\n" +"\n" +"Python strings are used to specify the format of data to be packed or\n" +"unpacked.\n" +"\n" +"String encodings are implied by the database format: they may be either DOS\n" +"codepage (currently hardcoded to 850), or Unix codepage (currently hardcoded\n" +"to be the same as the default Python encoding).\n" +"\n" +"tdbpack format strings:\n" +"\n" +" 'f': NUL-terminated string in codepage iso8859-1\n" +" \n" +" 'P': same as 'f'\n" +"\n" +" 'F': NUL-terminated string in iso-8859-1\n" +"\n" +" 'd': 4 byte little-endian unsigned number\n" +"\n" +" 'w': 2 byte little-endian unsigned number\n" +"\n" +" 'P': \"Pointer\" value -- in the subset of DCERPC used by Samba, this is\n" +" really just an \"exists\" or \"does not exist\" flag. The boolean\n" +" value of the Python object is used.\n" +" \n" +" 'B': 4-byte LE length, followed by that many bytes of binary data.\n" +" Corresponds to a Python integer giving the length, followed by a byte\n" +" string of the appropriate length.\n" +"\n" +" '$': Special flag indicating that the preceding format code should be\n" +" repeated while data remains. This is only supported for unpacking.\n" +"\n" +" Every code corresponds to a single Python object, except 'B' which\n" +" corresponds to two values (length and contents), and '$', which produces\n" +" however many make sense.\n"; static char const pytdbpack_doc[] = -"pack(format, values) -> buffer -Pack Python objects into Samba binary format according to format string. - -arguments: - format -- string of tdbpack format characters - values -- sequence of value objects corresponding 1:1 to format characters - -returns: - buffer -- string containing packed data - -raises: - IndexError -- if there are too few values for the format - ValueError -- if any of the format characters is illegal - TypeError -- if the format is not a string, or values is not a sequence, - or any of the values is of the wrong type for the corresponding - format character - -notes: - For historical reasons, it is not an error to pass more values than are consumed - by the format. -"; +"pack(format, values) -> buffer\n" +"Pack Python objects into Samba binary format according to format string.\n" +"\n" +"arguments:\n" +" format -- string of tdbpack format characters\n" +" values -- sequence of value objects corresponding 1:1 to format characters\n" +"\n" +"returns:\n" +" buffer -- string containing packed data\n" +"\n" +"raises:\n" +" IndexError -- if there are too few values for the format\n" +" ValueError -- if any of the format characters is illegal\n" +" TypeError -- if the format is not a string, or values is not a sequence,\n" +" or any of the values is of the wrong type for the corresponding\n" +" format character\n" +"\n" +"notes:\n" +" For historical reasons, it is not an error to pass more values than are consumed\n" +" by the format.\n"; static char const pytdbunpack_doc[] = -"unpack(format, buffer) -> (values, rest) -Unpack Samba binary data according to format string. - -arguments: - format -- string of tdbpack characters - buffer -- string of packed binary data - -returns: - 2-tuple of: - values -- sequence of values corresponding 1:1 to format characters - rest -- string containing data that was not decoded, or '' if the - whole string was consumed - -raises: - IndexError -- if there is insufficient data in the buffer for the - format (or if the data is corrupt and contains a variable-length - field extending past the end) - ValueError -- if any of the format characters is illegal - -notes: - Because unconsumed data is returned, you can feed it back in to the - unpacker to extract further fields. Alternatively, if you wish to modify - some fields near the start of the data, you may be able to save time by - only unpacking and repacking the necessary part. -"; +"unpack(format, buffer) -> (values, rest)\n" +"Unpack Samba binary data according to format string.\n" +"\n" +"arguments:\n" +" format -- string of tdbpack characters\n" +" buffer -- string of packed binary data\n" +"\n" +"returns:\n" +" 2-tuple of:\n" +" values -- sequence of values corresponding 1:1 to format characters\n" +" rest -- string containing data that was not decoded, or '' if the\n" +" whole string was consumed\n" +"\n" +"raises:\n" +" IndexError -- if there is insufficient data in the buffer for the\n" +" format (or if the data is corrupt and contains a variable-length\n" +" field extending past the end)\n" +" ValueError -- if any of the format characters is illegal\n" +"\n" +"notes:\n" +" Because unconsumed data is returned, you can feed it back in to the\n" +" unpacker to extract further fields. Alternatively, if you wish to modify\n" +" some fields near the start of the data, you may be able to save time by\n" +" only unpacking and repacking the necessary part.\n"; const char *pytdb_dos_encoding = "cp850"; diff --git a/source3/python/py_winbind.c b/source3/python/py_winbind.c index 20bbe9dba4..db66be2321 100644 --- a/source3/python/py_winbind.c +++ b/source3/python/py_winbind.c @@ -585,136 +585,136 @@ static PyMethodDef winbind_methods[] = { /* Name <-> SID conversion */ { "name_to_sid", (PyCFunction)py_name_to_sid, METH_VARARGS, - "name_to_sid(s) -> string - -Return the SID for a name. - -Example: - ->>> winbind.name_to_sid('FOO/Administrator') -'S-1-5-21-406022937-1377575209-526660263-500' " }, + "name_to_sid(s) -> string\n" +"\n" +"Return the SID for a name.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.name_to_sid('FOO/Administrator')\n" +"'S-1-5-21-406022937-1377575209-526660263-500' " }, { "sid_to_name", (PyCFunction)py_sid_to_name, METH_VARARGS, - "sid_to_name(s) -> string - -Return the name for a SID. - -Example: - ->>> import winbind ->>> winbind.sid_to_name('S-1-5-21-406022937-1377575209-526660263-500') -'FOO/Administrator' " }, + "sid_to_name(s) -> string\n" +"\n" +"Return the name for a SID.\n" +"\n" +"Example:\n" +"\n" +">>> import winbind\n" +">>> winbind.sid_to_name('S-1-5-21-406022937-1377575209-526660263-500')\n" +"'FOO/Administrator' " }, /* Enumerate users/groups */ { "enum_domain_users", (PyCFunction)py_enum_domain_users, METH_VARARGS, - "enum_domain_users() -> list of strings - -Return a list of domain users. - -Example: - ->>> winbind.enum_domain_users() -['FOO/Administrator', 'FOO/anna', 'FOO/Anne Elk', 'FOO/build', -'FOO/foo', 'FOO/foo2', 'FOO/foo3', 'FOO/Guest', 'FOO/user1', -'FOO/whoops-ptang'] " }, + "enum_domain_users() -> list of strings\n" +"\n" +"Return a list of domain users.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.enum_domain_users()\n" +"['FOO/Administrator', 'FOO/anna', 'FOO/Anne Elk', 'FOO/build', \n" +"'FOO/foo', 'FOO/foo2', 'FOO/foo3', 'FOO/Guest', 'FOO/user1', \n" +"'FOO/whoops-ptang'] " }, { "enum_domain_groups", (PyCFunction)py_enum_domain_groups, METH_VARARGS, - "enum_domain_groups() -> list of strings - -Return a list of domain groups. - -Example: - ->>> winbind.enum_domain_groups() -['FOO/cows', 'FOO/Domain Admins', 'FOO/Domain Guests', -'FOO/Domain Users'] " }, + "enum_domain_groups() -> list of strings\n" +"\n" +"Return a list of domain groups.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.enum_domain_groups()\n" +"['FOO/cows', 'FOO/Domain Admins', 'FOO/Domain Guests', \n" +"'FOO/Domain Users'] " }, /* ID mapping */ { "uid_to_sid", (PyCFunction)py_uid_to_sid, METH_VARARGS, - "uid_to_sid(int) -> string - -Return the SID for a UNIX uid. - -Example: - ->>> winbind.uid_to_sid(10000) -'S-1-5-21-406022937-1377575209-526660263-500' " }, + "uid_to_sid(int) -> string\n" +"\n" +"Return the SID for a UNIX uid.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.uid_to_sid(10000) \n" +"'S-1-5-21-406022937-1377575209-526660263-500' " }, { "gid_to_sid", (PyCFunction)py_gid_to_sid, METH_VARARGS, - "gid_to_sid(int) -> string - -Return the UNIX gid for a SID. - -Example: - ->>> winbind.gid_to_sid(10001) -'S-1-5-21-406022937-1377575209-526660263-512' " }, + "gid_to_sid(int) -> string\n" +"\n" +"Return the UNIX gid for a SID.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.gid_to_sid(10001)\n" +"'S-1-5-21-406022937-1377575209-526660263-512' " }, { "sid_to_uid", (PyCFunction)py_sid_to_uid, METH_VARARGS, - "sid_to_uid(string) -> int - -Return the UNIX uid for a SID. - -Example: - ->>> winbind.sid_to_uid('S-1-5-21-406022937-1377575209-526660263-500') -10000 " }, + "sid_to_uid(string) -> int\n" +"\n" +"Return the UNIX uid for a SID.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.sid_to_uid('S-1-5-21-406022937-1377575209-526660263-500')\n" +"10000 " }, { "sid_to_gid", (PyCFunction)py_sid_to_gid, METH_VARARGS, - "sid_to_gid(string) -> int - -Return the UNIX gid corresponding to a SID. - -Example: - ->>> winbind.sid_to_gid('S-1-5-21-406022937-1377575209-526660263-512') -10001 " }, + "sid_to_gid(string) -> int\n" +"\n" +"Return the UNIX gid corresponding to a SID.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.sid_to_gid('S-1-5-21-406022937-1377575209-526660263-512')\n" +"10001 " }, /* Miscellaneous */ { "check_secret", (PyCFunction)py_check_secret, METH_VARARGS, - "check_secret() -> int - -Check the machine trust account password. The NT status is returned -with zero indicating success. " }, + "check_secret() -> int\n" +"\n" +"Check the machine trust account password. The NT status is returned\n" +"with zero indicating success. " }, { "enum_trust_dom", (PyCFunction)py_enum_trust_dom, METH_VARARGS, - "enum_trust_dom() -> list of strings - -Return a list of trusted domains. The domain the server is a member -of is not included. - -Example: - ->>> winbind.enum_trust_dom() -['NPSD-TEST2', 'SP2NDOM'] " }, + "enum_trust_dom() -> list of strings\n" +"\n" +"Return a list of trusted domains. The domain the server is a member \n" +"of is not included.\n" +"\n" +"Example:\n" +"\n" +">>> winbind.enum_trust_dom()\n" +"['NPSD-TEST2', 'SP2NDOM'] " }, /* PAM authorisation functions */ { "auth_plaintext", (PyCFunction)py_auth_plaintext, METH_VARARGS, - "auth_plaintext(s, s) -> int - -Authenticate a username and password using plaintext authentication. -The NT status code is returned with zero indicating success." }, + "auth_plaintext(s, s) -> int\n" +"\n" +"Authenticate a username and password using plaintext authentication.\n" +"The NT status code is returned with zero indicating success." }, { "auth_crap", (PyCFunction)py_auth_crap, METH_VARARGS, - "auth_crap(s, s) -> int - -Authenticate a username and password using the challenge/response -protocol. The NT status code is returned with zero indicating -success." }, + "auth_crap(s, s) -> int\n" +"\n" +"Authenticate a username and password using the challenge/response\n" +"protocol. The NT status code is returned with zero indicating\n" +"success." }, #if 0 /* Include when smbd_auth merged to HEAD */ { "auth_smbd", (PyCFunction)py_auth_crap, METH_VARARGS, - "auth_smbd(s, s) -> int - -Authenticate a username and password using the challenge/response -protocol but using the domain secret to prove we are root. The NT -status code is returned with zero indicating success." }, + "auth_smbd(s, s) -> int\n" +"\n" +"Authenticate a username and password using the challenge/response\n" +"protocol but using the domain secret to prove we are root. The NT \n" +"status code is returned with zero indicating success." }, #endif |