1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-18 17:57:55 +03:00

18 Commits

Author SHA1 Message Date
Tim Potter
4580e16908 Fixed some globals that escaped the recent globalcide. -
Jim McDonough
a9f632ed5d Add extra parm to cli_full_connection call. Tim, you should probably look at this. -
Tim Potter
cfb0c12eb6 Fix for new arguments of cli_nt_session_open() -
Tim Potter
fff081d344 Check no extra fields are present when parsing credentials. -
Tim Potter
63e59b0b73 Fix transposed args in open_pipe_creds() function. -
Tim Potter
10889241d5 Broke out unpacking of a username/password stored in a Python
dictionary into a separate function.
-
Tim Potter
802f30a1b3 Compile fix for flags field to cli_full_connection() -
Tim Potter
0d05c8ce54 Compile fix for new arguments to cli_full_connection() -
Tim Potter
6f269de03e Separate error handling for cli_full_connection() and cli_nt_session_open() -
Tim Potter
e5dcd3c7cc Convert open_pipe_creds() to use new cli_full_connection() interface.
Initialise global_myname in py_samba_init() function.
-
Tim Potter
4cafbcb205 Added a utility function to extract the info key from a dictionary. -
Tim Potter
d35cad359d More cleanups.
- removed dodgy fprintf() error handling

 - return an error string from open_pipe_creds() so the appropriate
   exception can be raised by the caller

 - reformatting
-
Tim Potter
36ed06cb50 Refactored open_pipe_creds() function to remove unused parameter. -
Tim Potter
45cb1fed49 Explicitly return a list in py_ntstatus_tuple() and py_werror_typle(). Not
sure whether these should really be tuples or lists.

In open_pipe_creds() raise PyExc_RuntimeError exceptions if the pipe
connect function returns an error.
-
Tim Potter
14e4d889a2 Moved open_pipe_creds() function to common file. -
Tim Potter
6c7b5e15c2 Implemented a setup_logging() function that takes two keywords:
interactive and logfilename.  These can be used to send Samba DEBUG()
output to stdout or to a logfile which makes automated testing much
funkier.

Also added get_debuglevel() and set_debuglevel() functions.
-
Tim Potter
cb243e2766 Added functions to return Python tuples (error code, error string)
corresponding to NT and DOS errors.
-
Tim Potter
d35770d06f Initial version. -