1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00

28 Commits

Author SHA1 Message Date
Gerald Carter
05ba38f754 r18747: replace rpccli_lsa_close() with rpccli_lsa_Close()
(This used to be commit 50d74ce0488a9bd0980cdc6d523a210f6238ef74)
2007-10-10 12:00:54 -05:00
Gerald Carter
2b27c93a9a r18271: Big change:
* autogenerate lsa ndr code
* rename 'enum SID_NAME_USE' to 'enum lsa_SidType'
* merge a log more security descriptor functions from
  gen_ndr/ndr_security.c in SAMBA_4_0

The most embarassing thing is the "#define strlen_m strlen"
We need a real implementation in SAMBA_3_0 which I'll work on
after this code is in.
(This used to be commit 3da9f80c28b1e75ef6d46d38fbb81ade6b9fa951)
2007-10-10 11:51:18 -05:00
Jeremy Allison
2b8abc030b r16644: Fix bug #3887 reported by jason@ncac.gwu.edu
by converting the lookup_XX functions to correctly
return SID_NAME_TYPE enums.
Jeremy.
(This used to be commit ee2b2d96b60c668e37592c79e86c2fd851e15f69)
2007-10-10 11:19:05 -05:00
Deryck Hodge
aee979faaa r15385: Some work to bring the python code up to date with the
rpc client rewrite.
(This used to be commit fd5bcecceb518d0683f400a61e11ce37f3d52d42)
2007-10-10 11:16:38 -05:00
Gerald Carter
0af1500fc0 r13316: Let the carnage begin....
Sync with trunk as off r13315
(This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
2007-10-10 11:06:23 -05:00
Jeremy Allison
5b32737374 r10802: Janitor for tpot - remember to keep 3.0 in sync.
Jeremy.
(This used to be commit 4b7a60e95e8f972df05d162769f0c441a4442e56)
2007-10-10 11:04:54 -05:00
Gerald Carter
3c181a88c6 r6678: fix python python after talloc() shakeup
(This used to be commit f629bffb1a6b8c2ea54fcfe33865b43559abbc77)
2007-10-10 10:56:50 -05:00
Tim Potter
babd291eb1 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.
(This used to be commit 9c3cffaf22c69b8c7fae12adf02aa1679de546b3)
2007-10-10 10:53:03 -05:00
Tim Potter
5216cb0f36 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)
(This used to be commit 98cac74c67c454f636df5c1ea2baa029c482e402)
2003-08-04 00:50:00 +00:00
Tim Potter
17c6789df1 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.
(This used to be commit 3cb39ddee456f55b96e593c67c86082bbd590d86)
2003-07-29 00:08:05 +00:00
Tim Potter
873e090be3 Merge of compiler warning fixups.
(This used to be commit 0308a0a11265050f53fc7e8e03f8e17b04adb45d)
2003-03-20 01:05:22 +00:00
Martin Pool
185d858dd2 Check return code of string_to_sid. (Merge from HEAD)
(This used to be commit 606bb47f241d2916d039b38f48b50474a3e0dadc)
2003-02-18 07:15:52 +00:00
Jeremy Allison
98ac4503ac Finish adding strings to all talloc_init() calls.
Jeremy.
(This used to be commit aa8439a49ec4b9f433745fefa1e769e45398f4df)
2002-12-23 23:54:10 +00:00
Tim Potter
ea6d5bc48b Sync with HEAD.
(This used to be commit 0310e539bb41f569c7ae77b2d131e966adefa27b)
2002-11-04 20:33:16 +00:00
Tim Potter
269c713edf Compile fix for new cli_lsa_enum_trust_dom() argument list.
(This used to be commit 2f46bdeb4fa1d32fe948af5d7fa80480ff2d2c86)
2002-08-06 01:07:07 +00:00
Tim Potter
6aaaa165b7 Raise a ValueError if server name isn't given in UNC format.
(This used to be commit 77be88668d9669a0aaa331c4bbb0faad978f0990)
2002-05-28 03:14:28 +00:00
Tim Potter
d21f10d3e6 Allow None to be used as a valid credential in open_policy.
Added {get,set}_debuglevel() and setup_logging() functions.
(This used to be commit b6e860546a622e6da238faf56d7c1567c6cf63a5)
2002-05-28 02:08:39 +00:00
Tim Potter
343751ca95 Use new version of open_pipe_creds() function.
A compile fix for enumerating trusted domains.
(This used to be commit fc75c3ccc3bc45ab72db85d46dbedbbdb0e2dff7)
2002-05-27 06:34:13 +00:00
Tim Potter
6a663f5a2a Compile fix for enum trust dom wrapper.
(This used to be commit 63e2c7c5fe6eca86222a7a76d81ce1ee93ebde22)
2002-05-23 22:53:59 +00:00
Tim Potter
70da1dec97 Shorten some debug messages.
(This used to be commit 179c68bd0db7c2631fcf052a746acacedf3c47ac)
2002-05-16 05:13:50 +00:00
Tim Potter
286d3a80fd 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
(This used to be commit d35cad359df3bd53e6bb49f6655d4c7b9993abb0)
2002-05-16 04:00:31 +00:00
Tim Potter
ce03ce2e56 Refactored open_pipe_creds() function to remove unused parameter.
(This used to be commit 36ed06cb5078429445f3bbb0f69baa2e0f8356a4)
2002-05-16 02:24:22 +00:00
Tim Potter
520b40e423 General cleanup of compiler warnings etc.
(This used to be commit 18aeadc591b69bbbd874b7285ecaed50ff587e68)
2002-05-14 02:37:47 +00:00
Tim Potter
202341dbce Allow lookup_sids() and lookup_names() to take either a list of strings or
just a single string.
(This used to be commit 775549b70e1d2770619c2fe1ed39418a8788dbfe)
2002-05-06 04:53:44 +00:00
Tim Potter
8d680f8796 Added enumerate trusted domains.
(This used to be commit 3a11ce31ca3eed23f3bf82c46b2ebd2423be737d)
2002-04-14 12:26:09 +00:00
Tim Potter
f143cb6144 Added copyright.
Added lookup_names() and lookup_sids() functions.
(This used to be commit 2d2c925014374605b29e052729e959c0fd690586)
2002-04-14 09:00:13 +00:00
Tim Potter
54bda76922 More open_pipe_creds() refactoring.
(This used to be commit 7f2c814237f1df7008c9a91b7cf3b1de01e6ed87)
2002-04-14 00:59:50 +00:00
Tim Potter
d07cc9d8a1 Initial version.
(This used to be commit d35770d06f7bc396cf32337a4e1104b5fe8a3ca8)
2002-03-20 03:29:03 +00:00