From 873e090be37a3128f73d87988c2981dbfcee6601 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Thu, 20 Mar 2003 01:05:22 +0000 Subject: Merge of compiler warning fixups. (This used to be commit 0308a0a11265050f53fc7e8e03f8e17b04adb45d) --- source3/python/py_winbind.c | 190 ++++++++++++++++++++++---------------------- 1 file changed, 95 insertions(+), 95 deletions(-) (limited to 'source3/python/py_winbind.c') 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 -- cgit