1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-19 23:17:05 +03:00

25 Commits

Author SHA1 Message Date
Deryck Hodge
fd5bcecceb r15385: Some work to bring the python code up to date with the
rpc client rewrite.
2007-10-10 11:16:38 -05:00
Gerald Carter
17e63ac4ed r13316: Let the carnage begin....
Sync with trunk as off r13315
2007-10-10 11:06:23 -05:00
Jeremy Allison
4b7a60e95e r10802: Janitor for tpot - remember to keep 3.0 in sync.
Jeremy.
2007-10-10 11:04:54 -05:00
Gerald Carter
f629bffb1a r6678: fix python python after talloc() shakeup 2007-10-10 10:56:50 -05:00
Tim Potter
9c3cffaf22 r3228: Fix for bugzilla #1884 from Brett Funderburg. Use the value of
desired_access passed in to the lsa open policy routine.  Use a default
value that netapps and windows likes as well.
2007-10-10 10:53:03 -05:00
Tim Potter
98cac74c67 More patches from Brett:
- remove 'if(mem_ctx)' tests prior to 'talloc_destroy' call to make
consistent with other modules; 'talloc_destroy' already test for NULL
anyway.

  - initialize PyObject* result pointers to NULL in function
declarations; enables removal of redundant NULL assignments.

  - use local scope TALLOC_CTX in lsa_lookup_names to prevent unbounded
memory growth during python policy object lifetime.

  - change context name string used in lsa_lookup_sids from
'lsa_open_policy' to 'lsa_lookup_sids' (cut'npaste oversight from
previous patch)

  - change docstring to match module name (apparently another cut'npaste
situation)
-
Tim Potter
3cb39ddee4 Memory leak fixes from Brett A. Funderburg - don't use the connection talloc
context for data that is only needed on a per-call basis.
-
Tim Potter
0308a0a112 Merge of compiler warning fixups. -
Martin Pool
606bb47f24 Check return code of string_to_sid. (Merge from HEAD) -
Jeremy Allison
aa8439a49e Finish adding strings to all talloc_init() calls.
Jeremy.
-
Tim Potter
0310e539bb Sync with HEAD. -
Tim Potter
2f46bdeb4f Compile fix for new cli_lsa_enum_trust_dom() argument list. -
Tim Potter
77be88668d Raise a ValueError if server name isn't given in UNC format. -
Tim Potter
b6e860546a Allow None to be used as a valid credential in open_policy.
Added {get,set}_debuglevel() and setup_logging() functions.
-
Tim Potter
fc75c3ccc3 Use new version of open_pipe_creds() function.
A compile fix for enumerating trusted domains.
-
Tim Potter
63e2c7c5fe Compile fix for enum trust dom wrapper. -
Tim Potter
179c68bd0d Shorten some debug messages. -
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
18aeadc591 General cleanup of compiler warnings etc. -
Tim Potter
775549b70e Allow lookup_sids() and lookup_names() to take either a list of strings or
just a single string.
-
Tim Potter
3a11ce31ca Added enumerate trusted domains. -
Tim Potter
2d2c925014 Added copyright.
Added lookup_names() and lookup_sids() functions.
-
Tim Potter
7f2c814237 More open_pipe_creds() refactoring. -
Tim Potter
d35770d06f Initial version. -